Author Topic: Cancelling a bet based on market length  (Read 2625 times)

Tags:
  • All members
  • Posts: 4
Cancelling a bet based on market length
« on: 25 Mar 2015, 11:14 »
Hi guys,

I have a horse racing trigger written that's 95% complete but am struggling with the final piece of the puzzle. I need MFP to be able to cancel any unmatched bets at different times depending on the length of the race, between 1-1.5m (60 seconds), 1.5-2m (75 seconds), 2m-2.5m (90 seconds), 2.5m-3m (105 seconds) and 3m upwards (120 seconds). Anything under a mile would not be bet.

How would I do this?

Thanks,
HW


  • All members
  • Posts: 4
Re: Cancelling a bet based on market length
« Reply #2 on: 25 Mar 2015, 11:53 »
Thanks for that londolozi - I think I understand. So something like this?

  • All members
  • Posts: 63
Re: Cancelling a bet based on market length
« Reply #3 on: 25 Mar 2015, 20:08 »
Use:
Minutes since the off is equal or greater than (market_length-980)/600*.6

This will activate your trigger 980 meters before the end (which is about 60 sec).

Important: Market should support In-Play!

  • Guest
Re: Cancelling a bet based on market length
« Reply #4 on: 25 Mar 2015, 20:37 »
0.16 is 10 seconds
0.32 is 20 seconds etc etc using the minute parameter, if that helps you

 

Please note, BetFair is seems to be currently OFFLINE