stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

PIT BULL TRADER Indicators
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=321
Page 1 of 12
Author:  gaheitman [ Thu Feb 02, 2012 9:33 am ]
Post subject:  PIT BULL TRADER Indicators

This is a companion thread to Brijon's thread. This will allow me to attach new indicators to the first post to make sure everyone who is interested can easily get to the most recent versions.

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

The picture below shows the defaults settings as well as the effects of some of the other settings.
IMG_06.gif
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
Author:  FROGGY10 [ Thu Feb 02, 2012 10:18 am ]
Post subject:  Re: PIT BULL TRADER Indicators

wow, thank you very much George, it's becoming very interesting indeed. Thanks for your great work. Jean
Author:  mobthehop [ Thu Feb 02, 2012 10:20 am ]
Post subject:  Re: PIT BULL TRADER Indicators

George thanks for looking at the absolute time question of mine..... Just to repeat my question from Brian's thread.....

After seeing Brian's last references to 6pips EA I have a question - there is a limit of 7 (?) items in Empty4 arrays - would it be possible, on an hourly basis, to parse / extract the 2 most & two least profitable pairs from your indy / dashboard and plug them into the 6pips EA (obviously with a higher combined TP) (buy the profitable ones / sell the others)?
Author:  gaheitman [ Thu Feb 02, 2012 10:41 am ]
Post subject:  Re: PIT BULL TRADER Indicators

mobthehop wrote:George thanks for looking at the absolute time question of mine..... Just to repeat my question from Brian's thread.....

After seeing Brian's last references to 6pips EA I have a question - there is a limit of 7 (?) items in Empty4 arrays - would it be possible, on an hourly basis, to parse / extract the 2 most & two least profitable pairs from your indy / dashboard and plug them into the 6pips EA (obviously with a higher combined TP) (buy the profitable ones / sell the others)?
Your question is what prompted me to add the functionality to the indicator to limit the display to the best/worse performers. I'm sure it is possible, but the 6 pip EA is only trading three currencies. You probably want to ask Steve if he can write an ea that opens 4 positions at the top of the hour (of at x minute of the hour). It should sell the two currencies that moved down (in pips) the most in the last N (user specified minutes) and buy the ones that moved up the most. Once those are closed at a net profit, restart at the next hour + x minutes.

You'd probably want him to code the contrarian approach as well, and reverse the buy and sells if the user requests. If he is willing to write it, I'd be happy to provide him with these functions by modifying what I've already written:

Code: Select all

extern string ccys="AUDUSD,EURUSD,GBPUSD"  //user specified list of currencies

bool GetTwoBestPairs(string ccy_list;string ccy1;string ccy2; int N);
bool GetTwoWorstPairs(string ccy_list;string ccy1;string ccy2; int N);
George
Author:  JulesvH [ Thu Feb 02, 2012 6:23 pm ]
Post subject:  Re: PIT BULL TRADER Indicators

Thanks a lot George.

I ran into this indicator just the other night, but like it a lot. Nice piece of coding!
I'm playing with it and meanwhile reading Brijon's posts here, so to be continued....
Author:  brijon [ Thu Feb 02, 2012 7:19 pm ]
Post subject:  Re: PIT BULL TRADER Indicators

THANK YOU GEORGE , I INCLUDE LATEST COMPLETE PACKAGE
TOO


GOD BLESS
Author:  chips [ Fri Feb 03, 2012 8:50 pm ]
Post subject:  Re: PIT BULL TRADER Indicators

Thanks George for such fine work..
Author:  Bunker [ Fri Feb 03, 2012 10:19 pm ]
Post subject:  Re: PIT BULL TRADER Indicators

Thanks George for this amazing indi !

I have been following the pitbull method for quite a long time and I only started to get positive results after I start using the Orest EA. Using the 10 pairs as an indicator gives a good sense of what is happening “now” and the Orest gave me this extra confidence to trade by displaying what happened in the past.

Now your indi is much more convivial in addition to providing more info (swap) and using less cpu usage. I wish I could just use it instead of Orest, but the Orest has this “trend confirmation display” (short strong – long strong – long weak…) that definitely helps me trading.

Of course, only if you think that this is a feature that would also benefit others, I would be extremely grateful if such an option would be configured in the SHF-PitBullIndicator-v2.

Thank you in advance :D

Bunker
Author:  mobthehop [ Sat Feb 04, 2012 2:19 am ]
Post subject:  Re: PIT BULL TRADER Indicators

George, I second Bunkers request, if you are willing to look at this. I have attached the Pitbull version of Orest EA for reference

Cheers & have a great weekend everybody
Author:  gaheitman [ Sat Feb 04, 2012 1:09 pm ]
Post subject:  Re: PIT BULL TRADER Indicators

Bunker wrote:Thanks George for this amazing indi !

I have been following the pitbull method for quite a long time and I only started to get positive results after I start using the Orest EA. Using the 10 pairs as an indicator gives a good sense of what is happening “now” and the Orest gave me this extra confidence to trade by displaying what happened in the past.

Now your indi is much more convivial in addition to providing more info (swap) and using less cpu usage. I wish I could just use it instead of Orest, but the Orest has this “trend confirmation display” (short strong – long strong – long weak…) that definitely helps me trading.

Of course, only if you think that this is a feature that would also benefit others, I would be extremely grateful if such an option would be configured in the SHF-PitBullIndicator-v2.

Thank you in advance :D

Bunker
Looking at the code, I believe I have replicated the functionality. Could you take a look at the attached, kick the tires a bit when things go live next week and let me know? I'll repost to the top of the thread if/when you give the OK.

One difference in the calculations is that the Orest ea uses pips, where I use P/L. The value of a pip across the currencies is not equivalent, so it is possible we won't get the same results if the difference between the net buy positions and the net sell positions is small.
pic_06 2012-02-04 08.04.gif
George
All times are UTC Page 1 of 12