Thanks for your note.
It is possible that the strategy is resubmitting the orders at a new price level because the condition to place the orders again is becoming true.
You may use a bool to prevent the stop and target orders from being resubmitted. The example script attached in post # 20 and in post # 36 in this forum thread demonstrate using a bool to control when Exit orders are placed by the strategy.
Note in the sample script that we check if the bool is true in the condition to place the Exit order methods and the bool is flipped to false after the orders are submitted. By doing this the Exit orders would only be submitted when the bool is true. Since we are flipping the bool to false after the Exit orders are being placed, the Exit orders will not continue to be submitted until the bool is flipped to true again.
Please let me know if I may assist you further.
Comment