Download MetaTrader 5

Closing a portion of an Order

To add comments, please log in or register
marsrover
11
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?

whroeder1
15917
whroeder1  
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