Download MetaTrader 5
To add comments, please log in or register
Trade with MetaTarder 5. Download it right now!
sorasit
358
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
358
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