Quote:
|
Originally Posted by waltini
The EA attached is my attempt to recreate a popular hedging ea. I am not a coder and the ea doesn't work properly. I have used IgorAD's MultiPositionExpert as a starting point. See this thread http://www.forex-tsd.com/expert-anal...ight=equity+ea
The aim of the ea is to open two opposing positions in two correlated currencies, wait till the correlation swings in your favour and the ea will close the two trades at a profit. The ea will detect that the positions have been closed and immediately re-open two new positions.
There are numerous strategies involving positive swap pairs and correlation indicators who will benefit from the ea. Johnboy suggested taking both sides of correlation, 1.buying GBPUSD selling EURUSD
2.selling GBPUSD buying EURUSD
so that the correlation swings back and forth you will be always making some pips.
If a coder amongst us could have a look at the code and make it work, hopefully any traders who like this style of trading will be able to benefit.
This is a link to an overlay chart of the GBPUSD & EURUSD(hourly) so you can get an idea how these two pairs look.
http://www.futuresource.com/charts/c...dium&b=bar&st=
waltini
|
I was testing HedgeMulti_v1.mq4 in my FXDD demo account.
I ran into an issue today. It hit the profit target I specified in the EA and closed the hedge like it should. It opened another hedge pair as it should, but then it closed that quickly. So then it opened another....and closed that too. It ended up closing a total of 4 hedges before it should, one after another. So I detached the EA from the chart to stop the cycle.
During the closing of each hedge (gbpusd & eurusd) it seemed to leave eurusd open last on each one. I had to manually close eurusd once because it stayed open for awhile and I didn't want it unhedged. Doing that just caused it to open a hedge. Anyway, maybe there is something wrong in the code that causes it to get caught in that cycle.
That's the only issue I have found so far.
BTW, I like the feature in this EA that shows the total $ and pips on the chart.
