Hi
if you use and in that condition block, the trigger will never run, because there is no settled previous event
the first condition checks if the trigger has never run, and tells it to run
thereafter, the second condition checks for a previous settled event (for recovery).
try adding:
and selections lay matched is equal to 0
and selections lay unmatched is equal to 0
depending on your market refresh rate, you may need to increase the list of bets refresh rate
conditions are a filtering process, each subsequent condition is applied to the previous. trigger file is read from top downwards
in most cases, any order is ok, but here is an example for ordering for efficiency:
markets minutes before the off is less than 0.5 <--- this is the only condition that is checked until 30 secs before start
and selections back price is less than 2.00 <--- this condition filters only odds-on selections
and selections trigger expression g_ticks(back_price,lay_price) is equal to 1 <--- this condition filters odds-on selections with lowest price spread
etc...