The order should be checked for a partial fill as well as a filled state. You will see this being done in the SampleOnOrderUpdate method starting on line 141 in OnExecutionUpdate. First, the order is checked for a partial fill and the stop and target are set up for the filled portion of the order. The order is also checked for partial fill or full fill in OnOrderUpdate.
Kind regards.
Comment