there were times in the old builds, where 10000 retries were also for bad price error, and thus MQL code firing to a broker new orders, which cant be placed and this could lead to hyperactivity and some intervention from broker side
int retry_attempts = 10000; // general retry attempts
int retry_attempts_bad_price = 3; // retry attempts if the error is bad price
double sleep_time = 2.0;
double sleep_maximum = 20.0;
could the problem be solved trying to know if the market is open or closed before making the order, or after the first failed attempt for the closed market you could avoid having the operations repeated ...?
Status changed from New to Fixed
I suggest using OpenBarDelay parameter in your EA so it delays order execution on bar open.
It is useful in situations when the broker for example doesn't process orders a few minutes after midnight.
But keep in mind that in may have an impact on strategy's results and they may not match with SQ. It is useful only on higher timeframes.
Or a second option is to set Limit Time Range trading option so it trades only in a specified time range.
Hope it helps
Best regards,
Tomas