CTrade Incorrect Market Closed message

 

Hi All,

My expert attempted to close a position however I received the following error:

2019.07.18 05:00:36.590 Botzilla (USDJPY,H4) CTrade::OrderSend: market sell 0.05 position #4386084 USDJPY [market closed]

2019.07.18 05:00:46.917 Botzilla (USDJPY,H4) OrderSend error 4756

2019.07.18 05:00:46.917 Botzilla (USDJPY,H4) OrderSend error 4756


It is my understanding that markets should not be closed in the middle of the week.



 
Depends on the broker. You need to check the symbol's contract specification about this.
 
Firefight:

Hi All,

My expert attempted to close a position however I received the following error:

2019.07.18 05:00:36.590 Botzilla (USDJPY,H4) CTrade::OrderSend: market sell 0.05 position #4386084 USDJPY [market closed]

2019.07.18 05:00:46.917 Botzilla (USDJPY,H4) OrderSend error 4756

2019.07.18 05:00:46.917 Botzilla (USDJPY,H4) OrderSend error 4756


It is my understanding that markets should not be closed in the middle of the week.



Some brokers are doing this around midnight (their server time). You have to deal with it.
Reason: