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

Slopey Peaky Bob
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5389
Page 73 of 83
Author:  dclayw [ Fri Jul 09, 2021 6:17 am ]
Post subject:  Slopey Peaky Bob

SPB has generally been used with basket TPs, I think with most traders treating all pairs as a (global) basket. As performance hasn't been all that good this past 12 months I'd like to look further into treating individual pairs as a basket. Would still trade on the D1 but with the view to taking profits more frequently. Hard to know without forward testing but I have a gut feeling that more frequent profits on individual pair baskets would work out better then more frequent profits on a global basket (by lowering the global basket TP)

For this to work I think best to have individual basket TP expressed as % of ATR, e.g 500% of ATR. While SPB can set up the trading grid based on ATR it doesn't cater for ATR based TPs on the basket. Some of Steve's earlier EAs had this built in, e.g. Holy Graily Bob 'n Dotty catered for ATR based basket TP with the UseAtrForBasketTP and TpPercentOfAtrToUse variables.

I think this EA still has too much potential to just drop it altogether and I'm prepared to keep looking. @Steve just wondering if you might consider slotting this functionality into SPB. I could have a crack at it but would likely take me a long time and I'd still cock it up.
Author:  SteveHopwood [ Fri Jul 09, 2021 8:41 pm ]
Post subject:  Slopey Peaky Bob

dclayw » Fri Jul 09, 2021 6:17 am wrote:SPB has generally been used with basket TPs, I think with most traders treating all pairs as a (global) basket. As performance hasn't been all that good this past 12 months I'd like to look further into treating individual pairs as a basket. Would still trade on the D1 but with the view to taking profits more frequently. Hard to know without forward testing but I have a gut feeling that more frequent profits on individual pair baskets would work out better then more frequent profits on a global basket (by lowering the global basket TP)

For this to work I think best to have individual basket TP expressed as % of ATR, e.g 500% of ATR. While SPB can set up the trading grid based on ATR it doesn't cater for ATR based TPs on the basket. Some of Steve's earlier EAs had this built in, e.g. Holy Graily Bob 'n Dotty catered for ATR based basket TP with the UseAtrForBasketTP and TpPercentOfAtrToUse variables.

I think this EA still has too much potential to just drop it altogether and I'm prepared to keep looking. @Steve just wondering if you might consider slotting this functionality into SPB. I could have a crack at it but would likely take me a long time and I'd still cock it up.
Great idea. I will look at this over the weekend with a view to uploading before the markets open. Feel free to try yourself, but no need to beat yourself up over something I can probably import within minutes. Spend your time being inventive with the trading and leave the mechanics to the grease monkey.

:xm: :rocket:
Author:  dclayw [ Sun Jul 11, 2021 2:29 am ]
Post subject:  Slopey Peaky Bob

That's great Steve, thanks for offering to add that functionality in. The underlying methodology in this EA is very sound and I think just a matter of time before we get something that will work long term across all pairs and market conditions. Was pretty close with some of the longer term testing by Thomas, yourself and others but this past 12 months has shown there is more to be done.
Author:  SteveHopwood [ Sun Jul 11, 2021 10:39 am ]
Post subject:  Slopey Peaky Bob

dclayw » Fri Jul 09, 2021 6:17 am wrote: For this to work I think best to have individual basket TP expressed as % of ATR, e.g 500% of ATR. While SPB can set up the trading grid based on ATR it doesn't cater for ATR based TPs on the basket. Some of Steve's earlier EAs had this built in, e.g. Holy Graily Bob 'n Dotty catered for ATR based basket TP with the UseAtrForBasketTP and TpPercentOfAtrToUse variables.
I cannot find anything with these variables. Do you have a version you can post?

:xm: :rocket:
Author:  Wavegarrick [ Sun Jul 11, 2021 2:00 pm ]
Post subject:  Slopey Peaky Bob

Hi Steve,
This version has the variables that Dclayw refers to.
Cheers
Leon
Author:  SteveHopwood [ Sun Jul 11, 2021 3:32 pm ]
Post subject:  Slopey Peaky Bob

Wavegarrick » Sun Jul 11, 2021 2:00 pm wrote:Hi Steve,
This version has the variables that Dclayw refers to.
Cheers
Leon
Thanks Leon

:xm: :rocket:
Author:  dclayw [ Mon Jul 12, 2021 6:44 am ]
Post subject:  Slopey Peaky Bob

Wavegarrick » Mon Jul 12, 2021 12:00 am wrote:Hi Steve,
This version has the variables that Dclayw refers to.
Cheers
Leon
Thanks Leon, beat me to it. Actually I had a hard time finding it myself.
Author:  SteveHopwood [ Wed Jul 14, 2021 10:45 am ]
Post subject:  Slopey Peaky Bob

dclayw » Fri Jul 09, 2021 6:17 am wrote:SPB has generally been used with basket TPs, I think with most traders treating all pairs as a (global) basket. As performance hasn't been all that good this past 12 months I'd like to look further into treating individual pairs as a basket. Would still trade on the D1 but with the view to taking profits more frequently. Hard to know without forward testing but I have a gut feeling that more frequent profits on individual pair baskets would work out better then more frequent profits on a global basket (by lowering the global basket TP)

For this to work I think best to have individual basket TP expressed as % of ATR, e.g 500% of ATR. While SPB can set up the trading grid based on ATR it doesn't cater for ATR based TPs on the basket. Some of Steve's earlier EAs had this built in, e.g. Holy Graily Bob 'n Dotty catered for ATR based basket TP with the UseAtrForBasketTP and TpPercentOfAtrToUse variables.

I think this EA still has too much potential to just drop it altogether and I'm prepared to keep looking. @Steve just wondering if you might consider slotting this functionality into SPB. I could have a crack at it but would likely take me a long time and I'd still cock it up.
V 2t along with the updated core library is in post 1, with this feature added.

To DIY, first go to the 'Basket trading' inputs and add these below extern bool LeaveIndividualBasketPendingsOpen=false;

Code: Select all

extern bool    UseAtrForBasketTP=false;
extern ENUM_TIMEFRAMES TpAtrTimeFrame=PERIOD_H4;
extern int     TpAtrPeriod=14;
extern double  TpPercentOfAtrToUse=100;
Then load up 'SPB core library.mqh' (Include folder) and add this to the top of bool canIndividualPairBasketBeClosed(string symbol, int pairIndex)

Code: Select all

   //Using ATR for individual pairs as a basket TP
   if (UseAtrForBasketTP)
   {
      double atrVal = getAtr(symbol, TpAtrTimeFrame, TpAtrPeriod, 0);
      IndividualBasketTargetPips = (int) (atrVal * (TpPercentOfAtrToUse / 100) );
   }//if (UseAtrForBasketTP)
Recompile SPB to avoid scaring yourself by trying to recompile from within the core library. :lol:

:xm: :rocket:
Author:  dclayw [ Wed Jul 14, 2021 11:24 pm ]
Post subject:  Slopey Peaky Bob

Thanks Steve. Will fire up a few more tests on fxtestify.
Author:  TonkaTuff [ Thu Jul 15, 2021 1:52 am ]
Post subject:  Slopey Peaky Bob

I have a VPS I can spin up 4-6 MT instances if you need any extra testers for fxtestify?

Cheers,
TT.
All times are UTC Page 73 of 83