I have seen this problem earlier in the forum and understand how to keep the order alive. But I am seeing this behavior inconsistent now.
I have multiple Profit Booking Orders Created (Qty 1 each) along with one single SL Order (Qty 5)
Issue: On execution of first PB Order, everything gets cancelled immediately (remaining 4 PB order and the one SL order). And these get re-created on the start of the next candle. Problem with this is that multiple PBs do not get filled in one candle and also between this period my open position is unattended.
But then this does not happen all the time, sometime 1 PB cancels the other 4. But later 3PB doesn't cancel the remaining 2 (this is what I want).
The next time 1PB also doesn't cancel the other 4. But 4th fill cancels the 5th open PB order.
I checked my configuration multiple times. They are all identical. This is done through 5 different sets.
Here is the image of Do the Following. On the Conditions side, there are few common conditions. Then varying PositionQty as listed below.
I understand the part that Condition when becoming false, immediately cancels the other order. So PB1 execution invalidates the (Qty=5 condition) and that cancels the other open 4? But this doesn't happen all the time.
Any other suggested solution please ? I do not want the other orders to be "cancelled and recreated on the start of next candle".

Comment