I require a trigger to count from 0 to a divisor (in my case 20) <ctt> is the variable
A variable <rtt> is the time from bm_backmtime until event_start / 20
Every increment of ctt, I change the offered lay_price to r_ticks(backp,-ctt) Starting at -20 and stepping toward 0 (reverse for this part)
When now_time > bm_backmtime + (rtt*ctt) I cancel the lay and offer a new lay.
ctt increments again.
The old lay is cancelled and a new lay is offered.
By the time I reach event start I should be at the initial backp r_ticks(backp,0)
I want a counter for each individual market. It will only act once, after I have matched a particular horse with a specified amount.