Download MetaTrader 5

How to delete pending order by magic number?

To add comments, please log in or register
sorasit
359
sorasit  

...

OrderSend(Symbol(),OP_BUYSTOP,0.1,BuyStopLevel,2,0,0,"BuyStop",1111,0,Lime);

OrderSend(Symbol(),OP_SELLSTOP,0.1SellStopLevel,2,0,0,"SellStop",22222,0,Red);

...

If buy order opened success.

How to delete sell stop order by magic number(22222)?


thank you

SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI  
OrderDelete(OrderTicket())
Include the code inside your for loop after checking magic number and pending order type.
sorasit
359
sorasit  
deysmacro:
Include the code inside your for loop after checking magic number and pending order type.

Thank you
To add comments, please log in or register