See documentation https://docs.mql4.com/trading/OrderSend
The main function used to open a position or place a pending order. Returns number of the ticket assigned to the order by the trade server or -1 if it fails. To get additional error information, one has to call the GetLastError() function. |
---|
See also https://docs.mql4.com/trading/errors

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
I have an EA which gets different results in the backtester depending on if I handle OrderSend errors.