Is it a Pending Order?
ubzen:
Is it a Pending Order?
Is it a Pending Order?
No i's an open position.
JuergZimmermann:
No i's an open position.
No i's an open position.
Can't Delete an open order . . you have to use OrderClose (or some variant of OrderClose . . .)
https://docs.mql4.com/trading/OrderDelete https://docs.mql4.com/trading/OrderClose
RaptorUK:
Can't Delete an open order . . you have to use OrderClose (or some variant of OrderClose . . .)
https://docs.mql4.com/trading/OrderDelete https://docs.mql4.com/trading/OrderClose
I missed the word "pending" in the description.
OrderDelete for pending orders and OrderClose for open positions.
Thanks
What kind of error do you have? Pay attention to 145 and 139 errors.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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,
The above command delivers error 4108, invalid ticket.
Despite the Alert infront of the OrderDelete command displays the correct order ticket.
OrderTicket_TM is defined as INT.
Any idea?