Market Order Modify

 

Hello all,


I want to know, Is it possible to Modify Market Order Lot size with my expert adviser,

Let assumed, I Opened 1 Lot size buy Order and now I want to close 0.5 Lot size. 


If Possible Let me know


Thank you in advance 

 
So when you close, use the 0.5.
 

Hello sir, 

Thank you for your response, but i did not understand what u said

 
Megha Relan:

Hello all,

I want to know, Is it possible to Modify Market Order Lot size with my expert adviser,

Let assumed, I Opened 1 Lot size buy Order and now I want to close 0.5 Lot size. 

If Possible Let me know

Thank you in advance 

Use

PositionClosePartial

Partially closes a position on a specified symbol or having a specified ticket

Documentation on MQL5: Standard Library / Trade Classes / CTrade / PositionClosePartial
Documentation on MQL5: Standard Library / Trade Classes / CTrade / PositionClosePartial
  • www.mql5.com
PositionClosePartial(const string,const double,ulong) - CTrade - Trade Classes - Standard Library - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5