Help With Error Market is Closed During Backtest MT5
-
Hi' guys,
I just run into a problem when i do backtest on MT5. I never have this problem on MT4 previously.
So, the logic of my EA are the same both MT4 and MT5. As you can see my MT5 version here https://fxdreema.com/shared/wx9clD3Z
But when i do the backtest, it will run couple of minutes then on some point it'll give this error
"Closing position/trade error: Market is closed (10018)"
"failed market buy 0.09 AUDNZD_M1, close #34 sell 0.09 AUDNZD_M1 1.10725 [Market closed]"
And it just looping that error all the time.I did try to use different broker, but still have same issue. I did try to use Dukascopy data and still have the same issue.
Anyone have thought about this?
Regards,
-
The expert in MT5 is roar here. Maybe he can find an answer for you.
-
@everjn17 Hi! did you find out a solution? I have the same problem...
Thank you!
-
@everjn17 I have the same problem too, find you a solution?
-
@everjn17 I found a solution, I have changed the Close positions block to close and it works fine, it would be great to check the error of the close position block.

-
@plutofx Interesting. Could you please create a thread on the 'Bugs' forum explaining this. The admin looks at it more often than this.
-
@l-andorrà Done, thanks.
-
you're not alone...when everyone convinced me to switch, nobody gave me the disclaimer that the blocks aren't the same. lol! there was something else very important.....if I remember I'll let you know...but double check EVERY block doesn't have a more improved version in MT5.