If I get a partial fill on a exit order, I see in the sample code that the standard behavior is to set: stopOrder = null; targetOrder = null; from within OnExecution.
1) But what check should be done to pick up any open positions and deal with them?
2)Do I need to issue an additional exit order to close any positions that were left open by the partial fill?
3) If there is a partial fill on a target, why would you set its object reference (e.g. targetOrder) to null? Does this mean that once targetOrder has a status of Filled/PartFilled that the targetOrder has no further value, because I need to deal with the open position with a new order?
A sample strategy dealing with partial fills would be great!!
thanks

Comment