Holy Graily Bob's Candle Power

EA's inspired by nanningbob's work here, especially those based on his 240 Moving Average trend detection filter.
Post Reply
SWG123
Trader
Posts: 565
Joined: Wed Nov 16, 2011 3:02 pm
Location: Cape Town

Holy Graily Bob's Candle Power

Post by SWG123 »

Since the EA wasn't performing as intended - Steve only put out a patch for the trade bunching issue today - how can we draw any conclusions yet? The bunched trades contributed to to some pretty heavy drawdown and ate up margin but probably also helped it to recover quickly when the market turned. Of course the outcome might be different in another week.

I'm going to continue running on GBPJPY next week on M5 but will also add a nice ranger - EURGBP, AUDCAD or AUDNZD. I'm thinking to try both M5 and H1 timeframes.
User avatar
rapple
Trader
Posts: 277
Joined: Fri Feb 21, 2014 10:56 pm
Location: Sydney, Australia

Holy Graily Bob's Candle Power

Post by rapple »

Do we use another indicator to decide on how HGBCP should trade

CSS
TJF setfile trading when CSS is between -0.5 and 0.5
Hedging or offsetting when CSS is above or below these values

HGI
TJF setfile trading when ranging signal
Hedging or offsetting when trending signal

M5 maybe to volatile for this to work but way work on higher timeframe
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.

Holy Graily Bob's Candle Power

Post by SteveHopwood »

Lots of questions including several posed by me.

I am going to ask you guys to stop asking them for now, in light of another idea I had earlier. I might delete a fair few of the recent posts in the morning to reflect my latest thoughts but am hanging on for now as I have imbibed; imbibing and forum regulating do not often make comfortable bedfellows. I will sing out in the morning if I decide to delete the posts and no criticism whatsoever will be implied on the posters.

My other idea goes right back to the concept of what was originally Candle Power when I coded it as my own experiment:
  • send stop orders at the hilo of the preceding candle whenever a new candle forms.
  • allow stop orders to fill and close out the entire position whenever a basket take profit is hit.
Simple concept but a whole host of complications so I added to it as I experimented and these additions led to the bot I presented here.

I am going to add this feature for testing next week: once there is a user-defined trade imbalance, then revert to the original concept and look to close out at a pre-defined basket take profit.

We can move on from there if this does not help.

In the meantime, enjoy the profits from TJF's fantastic set file and close down entirely from time to time when you have made a decent profit for the week and do not like the way the market is moving against you.

:xm:
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
1Direction
Trader
Posts: 97
Joined: Sun Jan 29, 2017 8:37 pm
Location: London

Holy Graily Bob's Candle Power

Post by 1Direction »

Here the results for the week tested on gold as well as an index (dax). What to say, results are amazing drawdown was marginal compared to the profit generated.

Latest version in use with the no stop loss standard set file (TJF) on M5. No manual interventions.

As suggested by Steve I will try it on other time frames to compare.

Anyone would join a synchronized forward test?

Have a nice weekend
1D
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.

Holy Graily Bob's Candle Power

Post by SteveHopwood »

Great to see so many excellent results here. :clap: :clap: :clap: :clap: :clap: :clap: :clap:

I am doing a lot of work on CP this weekend. I have added code that identifies an unbalanced position, removes all stop losses and take profits then manages the basket through to our basket take profit. I am going to add offsetting both as a standard trade closure and to help deal with unbalanced positions.

Coenraad has just emailed me to say that Thomas has completely solved the distance between trades thingy in his Awesome Bells and Whistles code, so I will hack that as I am not certain that mine is watertight. I am going to write a user guide as well.

Good stuff on the way.

:xm:
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.
andwen
Trader
Posts: 62
Joined: Tue Jun 03, 2014 4:07 am
Location: Melbourne, Aust

Holy Graily Bob's Candle Power

Post by andwen »

Delivering the goods on a 10k a/c. after 3 days.

However the charts look unbelievably busy so trying to work out what the heck is going on......Perhaps it doesnt matter. Lots of exposure to USD.

5 min t/f

Global Prime - Empty4 4.png
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.

Holy Graily Bob's Candle Power

Post by SteveHopwood »

Ye Gods folks. I have the intellect of a low-flying dumpling. The code to enforce a minimum distance between trades is the simplest in the world. I cannot even begin to work out why I made it so complicated.

Here is the really worrying thingy: I was sober at the time. :oops:

:xm:
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
tomele
Administrator
Posts: 1208
Joined: Tue May 17, 2016 3:40 pm
Location: Germany, Forest of Odes, Defending the Limes

Holy Graily Bob's Candle Power

Post by tomele »

Hi Steve.

In Awesome-B&W we use this:

Code: Select all

bool DistanceOK(string symbol,int magic,double price,double distance)
{
   for (int cc=0; cc<OrdersTotal(); cc++)
   {
      //Ensure the trade is still open
      if (!OrderSelect(cc, SELECT_BY_POS, MODE_TRADES)) 
         continue;
      
      //Ensure the EA 'owns' this trade
      if (OrderSymbol()!=symbol) 
         continue;
      
      if (OrderMagicNumber()==magic && MathAbs(price-OrderOpenPrice())<distance)
         return false;
      
      if (OrderMagicNumber()!=magic && MathAbs(price-OrderOpenPrice())<MinTradeDistanceAcrossTimeframesPips/factor)
         return false;
   }
   
   return(true);
   
}//End bool DistanceOK(double distance)
It is called from LookForTradingOpportunities() like this:

Code: Select all

//Send the trade
if (SendTrade && DistanceOK(symbol,MagicNumbers[cc],price,DistanceBetweenTrades))
It seems to work.

Cheers, Thomas
Happy pippin, Thomas :-BD

It ain't what you don't know that gets you into trouble.
It's what you know for sure that just ain't so.
(Mark Twain)

Keep the coder going: Donate
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.

Holy Graily Bob's Candle Power

Post by SteveHopwood »

Cheers Thomas. I have simplified the routine.

:xm:
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
tomele
Administrator
Posts: 1208
Joined: Tue May 17, 2016 3:40 pm
Location: Germany, Forest of Odes, Defending the Limes

Holy Graily Bob's Candle Power

Post by tomele »

SteveHopwood » 23 Sep 2017, 15:31 wrote:Cheers Thomas. I have simplified the routine.

:xm:
Oh, I missed what you had written some posts before. Coenraad had already pointed you to it.
Happy pippin, Thomas :-BD

It ain't what you don't know that gets you into trouble.
It's what you know for sure that just ain't so.
(Mark Twain)

Keep the coder going: Donate
Post Reply

Return to “Thingy Bob EA's”