Download MetaTrader 5

How to delete pending order by magic number?

To add comments, please log in or register
Have you just installed MetaTrader 5? Learn it in details!
sorasit
359
sorasit 2014.04.19 01:43 

...

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 2014.04.19 02:33  
OrderDelete(OrderTicket())
Include the code inside your for loop after checking magic number and pending order type.
sorasit
359
sorasit 2014.04.21 04:58  
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