bool OrderDelete(int ticket, color Color=CLR_NONE)
Deletes previously opened pending
order. If the function succeeds, the return value is true. If the function
fails, the return value is false. To get the detailed error information, call GetLastError().
Or, if the Pending order is no longer pending . . .
bool OrderClose( int ticket, double lots, double price, int slippage, color Color=CLR_NONE)
Closes opened order. If the function succeeds, the return value is true. If the function fails, the return value is false. To get the detailed error information, call GetLastError().
More info and bedtime reading . . . https://docs.mql4.com/trading
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
Is there a way to close a BUYSTOP or SELLSTOP via EA?
If yes may someone please provide an example?
Thank you.