- 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.

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
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