Hi
Not quite.
To summarise your objective in english:
stop loss to fire if current lay price is greater than 2 ticks against you
and only if there is no gap between current back and lay prices
Conditions:
selections back matched is greater than 0
selections back unmatched is equal to 0
selections lay price is greater than r_ticks(bm_backp,2)
selections trigger expression g_ticks(back_price,lay_price) is less than 2
that said, you have other options for stoploss:
the distribute loss action has a built-in option for stoploss ticks or percentage
settings, stoploss options, lets you set default stoploss options
please do read the Operators and Functions section of the manual to get a better understanding of how r_ticks and g_ticks works