A while ago I was playing around with a betting strategy that required me to be able to reasonably accurately select a certain point in a horse race for placing bets. eg. 50% of the way through or 80% of the way through the race.
My strategy didn't work out, but I thought I would share how I made the calculation in-case anybody my need to do something similar, or maybe build a strategy around it.
So, simply specifying a fixed time after the off was no good as the races are all different lengths.
This calculation is for Australian Gallops, but you can convert it to any racing with a little bit of research and adjustment.
What I needed to do is work out how many Metres per Minute on average the horses covered. For Aussie gallops it's roughly .0009 of course this changes a bit if you compare a short race (800-1000 metres) with a longer race (2000+ metres) but the average was close enough for my needs.
I set a constant called mpm (minutes per metre) and set it to .0009
So if I wanted to determine when 80% of the race was for example, I would use the following trigger expression:
Market's Minutes since the off is greater than market_length*mpm*.8
Hope this is of help to somebody, not sure if this has been covered before as I am relatively new here.
If anybody manages to use this to make a killer trigger, then maybe share that with me..... Hahaha. Jokes...Not!
Later..
Dean