Are you seeing that the orders are incorrectly reset when using the SampleOnOrderUpdate from the help guide? While I cannot debug your strategy for you I can try to address the question with our existing sample.
I look forward to being of further assistance.
Comment