Closing a portion of an Order

 

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?

 
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.
Reason: