how to cancel sell and buy stop in EA

 

how to cancel sell and buy stop in EA. 

cancel buy and sell stop after some time . what is command or what changes may be needed.

thanks in advance

 
Abdul Salam: how to cancel sell and buy stop in EA. cancel buy and sell stop after some time . what is command or what changes may be needed.

thanks in advance

MQL5: OrderSend() with TRADE_ACTION_REMOVE
MQL4: OrderDelete()

 
You should get into the habit of doing a search or reading the manual! You will only benefit more in the future by gaining that habit!
 
Alternatively, set an Expiration time on the pending order for it to auto-cancel after that time!
Reason: