How can i take trade when leg 1 trade closed at take profit

lets say i have a open possition of 200 premium CE sell with TP of 55% and i want that when this position hit TP i want to enter (200 premium CE sell with sl 23% and 150 premium PE sell with sl of 32%)

not sure try this , let say first one is set1. set variable = 1 while exiting , use that variable in set 2 like if var = 1, enter position.