Laying an underdog that pulled ahead at In-Play


The idea is to lay a horse which initially had low chances to win as soon as it pulls ahead after the start of the race (this also applies to any other type of sport where markets go In-Play). What you expect is that horse to lose anyway, but the temporary drop of its price will let you lay with a minimum laibility.

For the implementation of this plan, you pick the rank of the horse (its position in the list of horses sorted by their prices) which you think indicates its bad chances for winning. For example, the rank must not be less than 10 before the off (the rank of 1 belongs to the favourite). You also define the rank that the horse must drop to in order to qualify as pulling ahead, let's say, no higher than 3. As an additional condition, you may specify the price range for the lay bet.

All these factors can be adjusted in the constants inside the file.


Download the trigger file

Here are some settings you can adjust in the trigger file:

idle_rank The rank of the horse before the off
inplay_rank The rank of the horse at In-Play
range_min Minimum value of the price range at In-Play
range_max Maximum value of the price range at In-Play
bet_size Size of bet

Triggers in Action

The runner Hereford Boy gained speed for just a short period of time which gave the trigger an opportunity to lay at 5.0:

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-2023 WellDone Creative Software. All rights reserved. Terms and conditions.
BetFair® and the BetFair Logo are registered trade marks of Flutter Entertainment plc. Gamble responsibly.