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!
 
Fernando Carreiro #:
Alternatively, set an Expiration time on the pending order for it to auto-cancel after that time!
When I export HTML report after backtesting a stop-order based strategy, all canceled orders are exported as well, resulting in very huge report files, with long generation time and long opening time.

Is there a way to completely remove / don't export all those canceled orders?

Thank you