How to enter in set 3

I have a set 4 strategy

S1 has ce position
S2 has pe position

S3 enter ce after pe sl hit but not execute s1
S4 enter pe after ce sl hit but not execute s2

I want a strategy that work one by one

I want crossover sets of supertrend
S1 is ce
S2 is pe
If s1 or s2 hits sl then active
S3 ce
S4 pe
One time one position ce or pe not reentry on same trend

One entry one trend then second trend second entry
With profit booking

Please help :pray: :pray: :pray: :pray: :pray: :pray: :pray: