'Evens' in horse race lingo is about 6secs/100m. So removing the outliers of <1100m and >3200m things usually start moving with 600m to go or maybe 800m in longer races. I mean thats when the horses are asked to sprint and finish off.
Try the condition : Minutes since the off is greater than (market_length-800)/600*.6
Where 800 can be your stop-loss distance from the end. Maybe 600m for shorter races.
Are you sure that this is the right formula:
(market_length-800)/600*.6
You said 6sec/100m which is 16.66m/s =>
formula should be: (market_length-800)/16.66/60 in seconds
16.66 should be the speed cause we need time which is S/V (from S=V*T)
or not?
I was able to calculate the average speed of the favourite for different race distances.
Since "minutes since the off" doesnt work when the market doesnt support In-Play, I created global variable "x" with value "(now_time-event_start)/0.00001157"
and then
Spead Loss if "x" is greater than (market_length-800)/HorseSpeed
Thanks for the idea. Lets see what happens