I am trying to create a automation of iron condor (below image is just CE side), once its triggered i buy the hedge first and then sell the short position, on reaching target or SL i want to roll this position up or down, the issue is when Target is reached it will close the short position but hedge remains open. i can use “close all positions” node as there is PE side to this as well. I also can’t use square off position based on strike as its opened based on price (plan to use delta once its available). Is there a way to close that hedge before i open my Target/SL rollover position?

