Closing BUYSTOP or SELLSTOP via EA
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
Is there a way to close a BUYSTOP or SELLSTOP via EA?
If yes may someone please provide an example?
Thank you.