Download MetaTrader 5

Mql5 open order lose trade whith magicnumber

To add comments, please log in or register
little1hu
8
little1hu  

Hi,

How to open-close order given magicnumber Mql5.

Mql4: Open   OrderSend(deviza,0,Lots,NULL,Slippage,0,0,IntegerToString(Magicnumber),Magicnumber,0,Green);

Close OrderClose(OrderTicket(),OrderLots(),OrderClosePrice(),Slippage,Violet);

Roberto Jacobs
48479
Roberto Jacobs  
little1hu:

Hi,

How to open-close order given magicnumber Mql5.

Mql4: Open   OrderSend(deviza,0,Lots,NULL,Slippage,0,0,IntegerToString(Magicnumber),Magicnumber,0,Green);

Close OrderClose(OrderTicket(),OrderLots(),OrderClosePrice(),Slippage,Violet);

You can solve your problem by reading the document
https://www.mql5.com/en/docs/trading/ordersendasync
Documentation on MQL5: Trade Functions / OrderSendAsync
Documentation on MQL5: Trade Functions / OrderSendAsync
  • www.mql5.com
Trade Functions / OrderSendAsync - Reference on algorithmic/automated trading language for MetaTrader 5
To add comments, please log in or register