Betting if the favourite changed several times

Description

The idea of a user who suggested this example is quite specific. He wants to bet in the market where the favourite changed 3 or more times over the given time.

So the triggers below will lay on the favourite if at least 2 other selections have been the favourites before. Example:

An event start at 16:18. The favoruite changes in the following manner:

Time 16:16:02, the favourite is Chesters Tiger

Time 16:16:14, the favourite is Tudor Tammy

Time 16:16:48, the favourite is Zulu Hondo, time to place a bet

 

Triggers

Download the trigger file.

The first trigger in the file remembers the current favourite repeatedly once in 5 seconds, until the time specified by the user comes (in this example, 30 sec. before the off). A special setting "Add new to already remembered" makes it so that if the favourite has changed, it will be added to the list, thus building a sequence of favourites in the market.

The other trigger, the one that executes something important, like a bet, checks whether the number of the remembered selections in the list is equal or greater than the value of another constant (in this example, 3).

Use constant mins_before_start to set the time before the start of the event when the counting of favourites will stop. The other constant, change_num sets the number of changes that trigger a bet.

 

If you have not heard of BetFair yet or do not have an account, register today and get £20 free. Use the link below:
New customers only, bet up to €/£20 on the Exchange and if your first bet loses, we’ll refund you €/£20 in Cash. Bet must be placed in first 7 days of account opening. T&Cs apply.
Gamble responsibly! Always be aware that betting is NOT risk-free. You must be 18+ years old before you try gambling, but even as an adult, withhold from spending money in an ill-judged manner. Our company does not encourage you to prefer gambling over other meaningful activities. If gambling is affecting your life or the lives of people close to you, please contact GamCare
 
© 2005-2024 WellDone Creative Software. All rights reserved. Terms and conditions.
BetFair® and the BetFair Logo are registered trade marks of Flutter Entertainment plc. Gamble responsibly.