I am live testing my Guardian Rule which essentially scalps the favourite with certain conditions. Essentially it triggers and places a back bet and offsets a greening lay bet on the selected horse.
I have run it in test mode and am now testing it live on $1 bets. It is MOSTLY working well and I am having good success with it to date, except for 1 hiccup.
File attached --> All the preset conditions for the trigger are met EXCEPT for the condition which limits the number of UNMATCHED bets in play. My goal is to have no more than 2 unmatched bets in play to stop the rule from going NUTS and place unlimited back bets before previous back bets are matched by the offset greening lay bet.
Conditions Rules below.

However, before being triggered, the condition on Back bets - is "unmatched bets on the current selection is < 3" ( have tried to change the "current selection" to current markets) does not seem to work. I was thinking that it would only trigger if there was less than 3 unmatched bets in play.
At times, I have had a lot more than 4 UNMATCHED bets in play and the rule STILL seems to trigger.

I am obviously doing something wrong, but I can't see it.
I would appreciate the help of someone with superior coding skills to me.
Many thanks
Bob