Slopey Peaky Bob

Post Reply
dclayw
Trader
Posts: 139
Joined: Wed Nov 13, 2013 6:53 am
Location: Australia

Slopey Peaky Bob

Post by dclayw »

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.
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Slopey Peaky Bob

Post by SteveHopwood »

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:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
dclayw
Trader
Posts: 139
Joined: Wed Nov 13, 2013 6:53 am
Location: Australia

Slopey Peaky Bob

Post by dclayw »

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.
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Slopey Peaky Bob

Post by SteveHopwood »

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:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
User avatar
Wavegarrick
Trader
Posts: 1172
Joined: Sun Dec 30, 2012 11:21 am
Location: South Africa

Slopey Peaky Bob

Post by Wavegarrick »

Hi Steve,
This version has the variables that Dclayw refers to.
Cheers
Leon
You do not have the required permissions to view the files attached to this post.
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Slopey Peaky Bob

Post by SteveHopwood »

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:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
dclayw
Trader
Posts: 139
Joined: Wed Nov 13, 2013 6:53 am
Location: Australia

Slopey Peaky Bob

Post by dclayw »

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.
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Slopey Peaky Bob

Post by SteveHopwood »

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:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
dclayw
Trader
Posts: 139
Joined: Wed Nov 13, 2013 6:53 am
Location: Australia

Slopey Peaky Bob

Post by dclayw »

Thanks Steve. Will fire up a few more tests on fxtestify.
User avatar
TonkaTuff
Trader
Posts: 74
Joined: Wed May 01, 2013 6:30 am
Location: Sydney, AUSTRALIA

Slopey Peaky Bob

Post by TonkaTuff »

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

Cheers,
TT.
In theory, there is no difference between theory and practice. In practice, there is.
Post Reply

Return to “Super Slope EA's”