Holy Graily Bob in a different hedge

EA's inspired by nanningbob's work here, especially those based on his 240 Moving Average trend detection filter.
Post Reply
User avatar
SteveHopwood
Owner
Posts: 9754
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Holy Graily Bob in a different hedge

Post by SteveHopwood »

SERIOUS WARNING
  • Most Forex traders lose all their money.
  • Using the robot posted here in trading Forex does not guarantee success.
  • Trading this robot could lead to serious financial loss.
  • Trading this robot without understanding its underlying trading strategies guarantees traders will lose their money.
  • This is not a set-and-forget ea; there is no such thing and anyone who tries to claim there is, is either stupid or lying. This ea requires frequent manual intervention.
  • At best, a trading robot is only 90% as good as the manual strategy it trades. At best. At worst, it can be much less effective. If the strategy is rubbish, so is the robot.
  • To trade this robot, you have to understand:
    • How to use EA's.
    • Bob's HGI indi
MAKE SURE YOU READ THIS POST http://www.stevehopwoodforex.com/phpBB3 ... 41#p111241 There was a Forex bloodbath on Jan 15th 2015 that you need to know about.

I have stuffed poor Bob into yet another hedge. :smile:

You need Bob's Holy Grail Indicator. Download Bob's zipfile from http://www.stevehopwoodforex.com/phpBB3 ... 45#p105045. You need a version of HGI in your Indicators Folder - the latest version is attached to Bob's post 1. Remember to change "Holy Graily Bob in a different hedge" HGI_Name input to the name of the version you are using.

I shall call the bot HGB from here on.

I always include this link at the bottom of each post 1: Masterly summary of hedging: http://www.forexfactory.com/showthread. ... ost4977179
It is a post easily read. The gist of what he is saying is:
  • Don not hedge in blind panic.
  • Hedge buy trades with sell trades when your system generates a sell signal.
  • Hedge sell trades with buy trades when your system generates a buy signal.
  • Close the successful side of the hedge, if there is one, when your system generates a signal that would usually cause you to close those trades i.e.
    • Buys are profitable and your system generates a sell signal.
    • Sells are profitable and your system generates a buy signal.
HGB works by sending an initial hedge of one buy and one sell, so long as the previous candle closed without a confirmed HGI trend arrow or blue wave. He examines the closed state of the previous candle for an HGI signal that remained in place at the close. Taking a buy blue wave or uptrend arrow and assuming the sell trade is cash-profitable he will:
  • close the sell trade.
  • go into a modified form of Recovery buy adding new buys each time there is a new buy signal:
    • the market must have fallen since the previous trade was sent.
    • there must be < MaxTradesAllowed trades already open.
  • close the basket of buy trades when:
    • the combined profits reach the value in the UnHedgedCashProfitTarget input.
    • optional - close the basket if it is in profit and a yellow range wave appears.
The idea is to profit on the initial trade closure and then from whatever basket of trades is created by new HGI signals in the direction of the remaining trade.

This will be successful until we hit a leaky toilet. This bot's ultimate success will depend on whether we can find ways of dealing with it. Let us just play with it first and see what it does.

:xm:

Matters of general interest
Go here to download and run the script that will fill your platform's missing chart history: http://www.stevehopwoodforex.com/phpBB3 ... f=15&t=254
Read this post:
http://www.stevehopwoodforex.com/phpBB3 ... p?f=6&t=78 Newbie traders, read this for inspiration and warning. Those of you who have suffered losses, read it for inspiration.

Masterly summary of hedging: http://www.forexfactory.com/showthread. ... ost4977179

EA coding
I receive may requests to code EA's. Traders, if I code your EA for free, then I will share it here. If you want me to code your EA without sharing, then my fee is $100 payable into my paypal account. I explain why at http://www.stevehopwoodforex.com/phpBB3 ... ?f=15&t=79, at the bottom of the post.

Useful utilities/EA's/scripts -

-
You do not have the required permissions to view the files attached to this post.
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. [email protected] 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: 1166
Joined: Tue May 17, 2016 3:40 pm
Location: Germany, Forest of Odes, Defending the Limes

Holy Graily Bob in a different hedge

Post by tomele »

Great. Thank you Steve. :clap: :clap: :clap:

Will demo this ceteris paribus with HGBnG and DottyBot on the majors this week. Lets see how they battle in adverse conditions. :smile:

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

Holy Graily Bob in a different hedge

Post by tomele »

Hello Steve,

there are some observations:

1. Screen snapshots are not taken. Maybe there is a copy/paste error in line 1269.

2. As soon as trading hours started, the EA immediately took two opposite positions in every pair except EJ. EJ is the only pair that showed a signal (blue wave) on the previous candle.

3. EJ shows 2x "HGI signal status Yellow Range wave" and "We have a buy signal". UJ shows 2x "HGI signal status Big red down Trend arrow" and "No trade signal".

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

Holy Graily Bob in a different hedge

Post by SteveHopwood »

Thanks Thomas.

V 1a is in post 1. I have removed chart snapshots - we do not need them and I can replace them in 5 minutes if events show differently.

I have added some extra code so that HGB 'knows' it has just sent the initial hedge trades as soon as they are sent. This should prevent the double trading.

: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. [email protected] 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: 1166
Joined: Tue May 17, 2016 3:40 pm
Location: Germany, Forest of Odes, Defending the Limes

Holy Graily Bob in a different hedge

Post by tomele »

Hi Steve,

I had the EA running OOTB and handsfree on the major H4 charts this week. It was running fine with low drawdown until Thursday/Friday, when it got in trouble as expected. I left the positions open over the weekend, just to see what will happen.
BiadH.png
HGBnG c.p. behaved similar: http://www.stevehopwoodforex.com/phpBB3 ... 36#p142436

And Dottybot was a big surprise: http://www.stevehopwoodforex.com/phpBB3 ... 35#p142435

Cheers, Thomas
You do not have the required permissions to view the files attached to this post.
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
acostafulano
Trader
Posts: 243
Joined: Tue Dec 06, 2011 3:40 pm

Holy Graily Bob in a different hedge

Post by acostafulano »

Hello Steve and Everyone,

Reporting my results so far (1 week more or less) with this EA, as per the following setfile:
1G HGB Diff Hedge H1.set
https://www.myfxbook.com/members/acosta ... ff/1679082

I had, additionally, another demo trading basically EXACTLY the same setfile, but on the M15. This configuration proved to be WAY too active and led me to large drawdowns very fast, so I'm sticking with H1 for further testing as I think this gives sufficient amount of 0.01 closures + additional positions entries (unhedged)

My observations so far:
- as said above, Sticking to H1 for now on. May add an H4 one as well if this proves to be too unstable

- I'm keeping this demo running exactly as it is, for now, but Perhaps it's a better idea NOT to limit the max number of trades, as additional entries obviously reduced the retracement required to go back into profit. I will add now an additional demo in H1 that does not limit the max number of trades, for comparison sake.

- That being said, I think it's necesary some form of drawdown control mechanism as to not get in our usual game of eternal drawdowns. I was thinking some sort of per-pair Basket SL (similar to the Unhedgedcashprofittarget, but as a stop loss). Otherwise we may get inifite additional entries with no limit to the losses we're willing to take. I'm trying to find an EA that does this (Managing Basket TP/SL but FOR EACH PAIR AS A BASKET). To my knowledge, MPTM cannot do this, so any suggestions are welcome or if Steve sees any value in this, maybe add it as an option to the EA.
You do not have the required permissions to view the files attached to this post.
acostafulano
Trader
Posts: 243
Joined: Tue Dec 06, 2011 3:40 pm

Holy Graily Bob in a different hedge

Post by acostafulano »

acostafulano » Thu Jun 30, 2016 6:29 am wrote:Hello Steve and Everyone,

Reporting my results so far (1 week more or less) with this EA, as per the following setfile:



https://www.myfxbook.com/members/acosta ... ff/1679082

I had, additionally, another demo trading basically EXACTLY the same setfile, but on the M15. This configuration proved to be WAY too active and led me to large drawdowns very fast, so I'm sticking with H1 for further testing as I think this gives sufficient amount of 0.01 closures + additional positions entries (unhedged)

My observations so far:
- as said above, Sticking to H1 for now on. May add an H4 one as well if this proves to be too unstable

- I'm keeping this demo running exactly as it is, for now, but Perhaps it's a better idea NOT to limit the max number of trades, as additional entries obviously reduced the retracement required to go back into profit. I will add now an additional demo in H1 that does not limit the max number of trades, for comparison sake.

- That being said, I think it's necesary some form of drawdown control mechanism as to not get in our usual game of eternal drawdowns. I was thinking some sort of per-pair Basket SL (similar to the Unhedgedcashprofittarget, but as a stop loss). Otherwise we may get inifite additional entries with no limit to the losses we're willing to take. I'm trying to find an EA that does this (Managing Basket TP/SL but FOR EACH PAIR AS A BASKET). To my knowledge, MPTM cannot do this, so any suggestions are welcome or if Steve sees any value in this, maybe add it as an option to the EA.
- Additionally, it might be valuable some sort of MinDistanceBetweenTrades setting as to avoid situations like this:
Captura.PNG
Maybe to something small like 10 or 15 pips, but that still will enforce some further movement before allowing additional entries.
You do not have the required permissions to view the files attached to this post.
Post Reply

Return to “Thingy Bob EA's”