Market closed - ERROR
-
Hi. I am having trouble back testing my EAs, suddenly back test stops working. On journal in MT5 I can see that EA is trying to open new position or close one and is having a problem because Market is closed. I tried to use time filter to not trade between 22:00 and 02:00, but it still crashes after 2-3 months of back testing.
How do you guys fix this problem? Is there a block "Check if market is open"? -
Time filter and weekday filter TOGETHER should work fine. Be careful that you have to filter not only trade openings, but also closings, placing pending orders, everything that involves an operation on the market. Eg.: if you have a rule of two MA cross => close trade, it will not be executed if the market is closed