Here instead you will see an error, at some point the EA does not place the pending order and the sequence stops because the EA no longer places any positions
As you can see, the indicator opens the first position and at the same time a pending order is placed with a lot increase, as soon as it is hit, a second pending order is placed, etc. all with SL and TP. When the price exits the channel and hits SL and TP it closes everything and starts again. The only mistake is separate TP and SL. Being overlapped, the TP will always be closed after the SL because the spread increases it by about 10 points, so to close all the first SL that the price hits must close everything! Also the positions where instead of the SL corresponds a TP.
Apart from the first position, which if it reaches a TP must close from the second onwards the SL commands! Regardless of the SL of any position, the first one touched closes and deletes everything!