The first indicator (and perhaps only) is the SHF-PitbullIndicator. It shows the simulated effect of taking a position in a basket of currencies over a user defined time period. The time of the simulated entries can either be an absolute date time ("2012-01-30 00:00" or just "07:00") or it can be specified as a relative number of minutes ago.
The currency pairs are entered as a comma-delimited list of separate buy and sell currency pairs.
The display shows a sorted list of the pairs, the worst performing at the top. Each currency pair will display the following information:
Pair (Dir SwapBuy/SwapSell) P/L [Optional Pips]
The SwapBuy/SwapSell just shows the positive or negative impact of daily swap. It's in there because some day we'll all have real interest rates again.
The settings:
Code: Select all
//--- input parameters
extern string UniqueIdentifier=""; //used to set a unique label for objects
// -- absolute mode
extern string AbsoluteTime="00:00"; //server time
// -- relative mode
extern bool RelativeMode=false; //use minutes back instead of absolute time
extern int RelativeMinutes=1440;
//lot size
extern double Lots=0.01;
extern bool NormalizeLotSize=false;
extern bool ShowPips=true;
extern int PipDecimalPoints=0;
//currencies
extern string BuyCcy="CADJPY,AUDUSD,USDJPY,EURUSD,EURCHF,GBPJPY,USDCAD";
extern string SellCcy="GBPUSD,EURGBP,GBPCHF,CHFJPY,AUDJPY,EURJPY,USDCHF";
//display variables
extern int ShowTopBottomNumber=0; //set to zero to show all
extern bool ShowNumericStrength=false; //display numeric strength
extern bool ShowZeroLine=false; //display numeric strength
extern string FontName = "Courier New";
extern int FontSize = 10; //not too many sizes make sense...
extern color BoxClr = Black; //color of Movement Square
extern color TitleClr = Black; //color of the title
extern color BuyClr = Green; //color of buy pairs
extern color SellClr = Red; //color or sell pairs
extern bool UsePLColors=false; //use different colors for +/- PL
extern color ProfitClr = Green; //Positive PL color
extern color LossClr = Red; //Negative PL color
You can reposition the indicator by selecting the square in the top left of the display area and moving it around the screen. The text will follow around as ticks come in.
George
Update: Added ability to highlight the P/L and Pips values for currency pairs that have moved more than a user specified number of pips. Options to control this are:
Code: Select all
extern bool UseHighLightPips=true; //show p/l and pips in different color
extern double HighLightPipMove=20; //when they have moved greater than this many pips + or -
extern color PipMoveClr= Blue; //Color of highlighted P/L and Pips