Automating an odds range (Horse racing)

We were all new to Bet Angel once. Ask any question you like here and fellow forum members promise not to laugh. Betfair trading made simple.
Post Reply
JimmyH
Posts: 37
Joined: Wed Dec 26, 2018 1:48 pm

Hi all.

I am looking to automate every/a number horses in a race that fall within a particular odds range.

So when the market suspends at the off, I want to take the last traded price 15 seconds before the market suspended, on for example the 3rd to 5th favourites as long as the BSP odds for each horse are greater than or equal to say 4.0, but less than or equal to 8.0.

So if the 3rd favourites BSP was 3.0 no bet will be placed, 4th favourite BSP @ 5.0 bet placed and 5th Favourite BSP 9.0 not placed Etc.

I have been searching through the conditions etc, and I thought this could be done.
User avatar
Dallas
Posts: 23589
Joined: Sun Aug 09, 2015 10:57 pm

Use the 'Fixed Odds' condition to test the price is greater, less than or between two price
https://www.betangel.com/user-guide/fixed_odds.html

To use an historical price ie, one from 'X' seconds ago you'll first need to store that price as a stored value, by triggering a 'Set/Modify Stored Value' rule 15 second before the start time
https://www.betangel.com/user-guide/stored_values.html

Then have your bet 'Place at' the value held by that stored value
https://www.betangel.com/user-guide/pla ... ters_.html
JimmyH
Posts: 37
Joined: Wed Dec 26, 2018 1:48 pm

Dallas wrote:
Mon Aug 04, 2025 1:11 pm
Use the 'Fixed Odds' condition to test the price is greater, less than or between two price
https://www.betangel.com/user-guide/fixed_odds.html

To use an historical price ie, one from 'X' seconds ago you'll first need to store that price as a stored value, by triggering a 'Set/Modify Stored Value' rule 15 second before the start time
https://www.betangel.com/user-guide/stored_values.html

Then have your bet 'Place at' the value held by that stored value
https://www.betangel.com/user-guide/pla ... ters_.html
Thank you very much Dallas.
rkuk
Posts: 21
Joined: Sat Jun 28, 2025 8:29 pm

I came on here to ask something similar after watching one of Peter's videos where he ran automation on (I think) the first horse at values of 5. I was wondering how it was done as I am completely new to automation and thought this might be a good way to learn and see what results it returns.

Prior to coming on here I thought I would take a step by step approach on the process and I think I got a couple of the values correct but when I applied it today, nothing worked so I'm missing some stuff.

I was looking to trigger the rule 10 seconds before the race start to look for the first horse between certain values and place a bet with offset ticks and greening once in play in the hope that the orders will be filled and hedge the bet.

This is what I worked through:

General
Chose event start time and before event then the times 00:00:10 (for 10 secs before), and until 00:10:00 after event, but maybe I don't need this? It looks like some closing time values are needed though?

Allow rule to trigger up to 1 time.

Applies selection I chose 'in position 1 (sorted in order of favouritism), as I'm looking for the first horse between the values I chose.

Parameters
Fixed price - I picked some odds (but this might be wrong if I'm trying to select between a range?)
Stake fixed amount.
Global actions, offset with greening and a number of ticks

Conditions
Number of selections = 1 (guessing this would pick one horse)
Then my prices greater than X and less than Y

And I hoped that would do it but nothing worked. Clearly I have some things wrong.

I'm sure this is easy peasy stuff to the professionals, please feedback as though to a simpleton if anyone is able to help.

Thanks in advance :)
User avatar
jamesedwards
Posts: 4326
Joined: Wed Nov 21, 2018 6:16 pm

rkuk wrote:
Tue Sep 02, 2025 9:28 pm
I came on here to ask something similar after watching one of Peter's videos where he ran automation on (I think) the first horse at values of 5. I was wondering how it was done as I am completely new to automation and thought this might be a good way to learn and see what results it returns.

Prior to coming on here I thought I would take a step by step approach on the process and I think I got a couple of the values correct but when I applied it today, nothing worked so I'm missing some stuff.

I was looking to trigger the rule 10 seconds before the race start to look for the first horse between certain values and place a bet with offset ticks and greening once in play in the hope that the orders will be filled and hedge the bet.

This is what I worked through:

General
Chose event start time and before event then the times 00:00:10 (for 10 secs before), and until 00:10:00 after event, but maybe I don't need this? It looks like some closing time values are needed though?

Allow rule to trigger up to 1 time.

Applies selection I chose 'in position 1 (sorted in order of favouritism), as I'm looking for the first horse between the values I chose.

Parameters
Fixed price - I picked some odds (but this might be wrong if I'm trying to select between a range?)
Stake fixed amount.
Global actions, offset with greening and a number of ticks

Conditions
Number of selections = 1 (guessing this would pick one horse)
Then my prices greater than X and less than Y

And I hoped that would do it but nothing worked. Clearly I have some things wrong.

I'm sure this is easy peasy stuff to the professionals, please feedback as though to a simpleton if anyone is able to help.

Thanks in advance :)
Attach your rulefile here and someone will probably be able to spot the issue.
Post Reply

Return to “Bet Angel for newbies / Getting started”