Page 1 of 1

MT5 backtest problem - Market closed

Posted: Tue Jan 05, 2021 4:58 pm
by thiagompereira
I am backtesting an EA using MT5 and the TickStory database.
I downloaded 2015 history until December 28, 2020.
The problem is that in May the EA tries to open orders and the history says that the market is closed and the backtest stops.


I am attaching the Metatrader image as an attachment.

Error_TickStory.png

Re: MT5 backtest problem - Market closed

Posted: Wed Jan 06, 2021 11:13 pm
by tickstory
Hi Thiagompereira

This seems to be an MT5-specific error that has been raised in a few MQL threads such as:

https://www.mql5.com/en/forum/355734
https://www.mql5.com/en/forum/347212

I would suspect it has something to do with the setup of the custom symbol in MT5. Maybe try copying the symbol from a working one if you haven't done so already. It might also have something to do with making sure session times are 24 hours.

Hope this helps.