- Context busy hasn't been necessary since MT4 went from one to 8 contexts. (MT5 already had 8.)
- Sending failed sounds like a network problem. Log it, return, wait for the next tick, retry.
Thank you for your quick reply. I get this error in backtest sometimes, but I have not yet had it during my tests with a demo
account.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello,
How to obtain in MQL5 the equivalent of the IsTradeContextBusy() function that there was in MQL4?
This is to avoid 4756 (Trade request sending failed) errors that happen from time to time with trade.PositionClose(position_ticket, slippage)
Thanks