How do i get open position for each set

I have 2 sets in my strategy. Both sets are working independently. When first set has made entry, set2 is not able to take entry as i am checking open position in set 2.

I have also tried position Details, but I am not able to find the way which I can find open position for specific set.

Please help.

Put this in the first set.
Put this in the second set. This is for Nifty with Lot size 75.