Hi Everyone, I'm hoping a wise fxdreema out there can help me with an issue I'm having.
So on a demo account I've recently started forward testing an EA I made that hedges. As a quick overview, if there is only 1 trade, it waits for that trade to hit X-pips profit and then closes, simple. If that trade goes into Y-pips loss, it places a trade of the opposite kind. It then waits for price to exceed the last buy or sell by Z-pips and then places another trade of that kind. It continues in this way until the profit from one 'side' (buy or sells) exceeds the loss of the other by a certain amount and then closes everything, leaving it clear to open another single trade and the system effectively restarts.
It works great in backtesting, I've tried it on lots of different markets and timeframes and it always performs well but I've had it on forward testing for a couple of weeks now and it's not functioning the way it should, it doesn't place hedging trades when it should, it enters hedging trades randomly in the middle of existing hedges, its crazy! I've rebuilt the system in a couple of different ways, e.g. instead of using 'pips away from' blocks I tried making it draw a horizontal line and then wait for market price to cross over/below that, but still coming up with the same issues.
What I don't get is why it works perfectly in backtesting but then goes haywire on forward testing! To be clear its not a performance/profitability issue I'm running into, its the fact that it seems to stop following the same rules and conditions when I put it on 'live' market data. Like I say I've backtested thoroughly, for 14 years on some pairs, so there is no way this fault can be occurring in the tests otherwise it would wipe out any account very quickly, its just on the forward testing.
Has anyone come across this kind of thing before? Weird behaviour where an EA works just how its intended in back tests but then is all over the place on actual markets?
I did notice most of the issues seemed to appear on Monday morning when I switched my computer back on after the weekend. I've seen stuff online about people's chart objects vanishing randomly when they come back to their terminal after shutting down the computer, is there possibly some bug in MT4/broker which is causing this?
Any suggestions on fixes that I can try would be much appreciated!
Thanks in advance.