// Resets the entryOrder object to null after the order has been filled or partially filled.
if (execution.Order.OrderState != OrderState.PartFilled)
{
entryOrder = null;
}
The comment does not seem to match the conditional logic.
In any event it seems to me that this conditional could never become true since it is contained within another conditional that has 'execution.Order.OrderState == OrderState.PartFilled' OR'd with other contitions.
Am I missing something?

Comment