Page 1 of 1

Market is closed (10018)

Posted: Mon Jun 01, 2020 10:24 am
by afgmarkets
Hi people,

I'm having an issue only when I use Tickstory imported data. After few seconds of testing the MT5 journal tab start a loop with this log:

2020.06.01 11:49:43.083 Core 1 2010.11.14 23:50:00 Closing position/trade error: Market is closed (10018)

I´m using a +1 time shift. Do you know a solution for this?

Thank you very much.

Re: Market is closed (10018)

Posted: Tue Jun 02, 2020 1:00 am
by tickstory
Hello,

This is a Metatrader error which I believe you will need to change your EA to accommodate (i.e. Check to see if market is open before making a trade).

Hope this helps.

Re: Market is closed (10018)

Posted: Tue Jun 02, 2020 7:34 am
by afgmarkets
Hello,

Yes, I know, but it only happens when using Tickstory data. I´ve tried to make the same backtest in the same period of time with both data (broker and Tickstory), I´ve also tried to download again the data without time shift, but it doesn't help...

Thank you.

Re: Market is closed (10018)

Posted: Tue Jun 02, 2020 10:37 am
by tickstory
Hello,

The data exported from Tickstory only contains the tick/pricing data for the instrument and nothing else. This data alone would not have any affect on MT5's "Market closed" message.

Reading the MQL forums, perhaps the symbol you created/copied in MT5 when setting up your test symbol does not have any trading sessions? That, or the session is not trading for the day you are testing?

Thanks.

Re: Market is closed (10018)

Posted: Tue Mar 23, 2021 9:19 pm
by LukeRobbo
Hello,

I am having the same trouble now and have tried the same things.
The data stops the test EXACTLY on three months. I can then restart the period within three months and it finishes the test, anything longer and the EA stops. It seems to be again the same issue in that it is only happening like this with this tick data, what can be the solution?

Thanks