Close all error 4051 when backtest
- If the orderSelect fails so does the rest of the code - What are Function return values ? How do I use them ? - MQL4 forum
- Loops and Closing or Deleting Orders - MQL4 forum
- You don't need to check the order type, just use OrderClosePrice() instead of Bid/Ask.
Hi all,
I write some codes on my EA to close all my order after 12:00 EST. But when i backtest my EA, i get message error below.
EURUSD,M5: invalid ticket for OrderClose function
EURUSD,M5: invalid ticket for OrderClose function
Please help me to fix this error .
Thank you,
Bizu