Same condition but different entry postion

Hi Team,
have a created a stratergy, where condition for two different sets are same but the postion will be CE in set 1 and PE in set 2. when the trade is executed. i can see both CE and PE are getting exected.
how can i avoid this. if CE condition is true then CE postion should execute not the PE one.
how to query that.
Thanks and regards,
Saravana

When the conditions in both sets are same, then both sets will get executed. Isn’t that as expected ?