Download MetaTrader 5
To add comments, please log in or register
No time to learn MQL5? Order your application from a developer!
marsrover
11
marsrover 2014.08.01 16:35 

Is it possible in MT4 to close a portion of an order?  For example, for an order that has 10 Lots, is it possible to close 8 Lots and leave the remaining 2 Lots?

whroeder1
13641
whroeder1 2014.08.01 17:38  
marsrover: Is it possible in MT4 to close a portion of an order?  For example, for an order that has 10 Lots, is it possible to close 8 Lots and leave the remaining 2 Lots?
Of course. See OrderClose The lots must be a multiple of lotstep and at least minlot. The remaining must also be at least minlot.
See also my code.
/
To add comments, please log in or register