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.
User avatar
jamesedwards
Posts: 4453
Joined: Wed Nov 21, 2018 6:16 pm

rkuk wrote:
Fri Sep 05, 2025 8:38 am
Thanks again James, reading back through the thread and your replies it looks like you told me that but I misunderstood as I clicked on the 'parameters' tab. Apols if it's a bit frustrating repeating.

Excited to giving it a go today and see what results I get.

Whilst I'm on, when I record the logs / excel files, they save as individual records (obviously), but does anyone know if there's a way that a master spreadsheet could look inside them all and report the results in one go for the day to save me manually going in and checking. Or perhaps there's another way that's even easier that I don't know about? Could anyone point me to anything?
The most common way to track profit by market is to use some extra rulelines in your rulesfile to keep track on the main Guardian screen. viewtopic.php?t=25455
rkuk
Posts: 29
Joined: Sat Jun 28, 2025 8:29 pm

Oh I'll take a look at that! Thanks James.

So bot attempt 3 is working - it fires the lay bet and I can see it in practice mode, but it doesn't look like it is placing the back bets to then 'green up'. I either win a straight full £10 or lose the liability if it runs on to win. Obviously the £10 is more fun! :D Something I'm realising about this though is: if I fix this bot to do as intended my wins are going to be tiny and my losses therefore massively amplified. Hmmm. Maybe I ignore the back bets on this strat then and look to see if I can improve the strike rate / occurrence as I'm either winning £10 or losing around £40....I guess it's just how many -£40's I hit! But then I might as well just pick the horse I want to lay and straight up gamble which isn't really trading.
User avatar
jamesedwards
Posts: 4453
Joined: Wed Nov 21, 2018 6:16 pm

rkuk wrote:
Fri Sep 05, 2025 2:59 pm
So bot attempt 3 is working - it fires the lay bet and I can see it in practice mode, but it doesn't look like it is placing the back bets to then 'green up'. I either win a straight full £10 or lose the liability if it runs on to win. Obviously the £10 is more fun! :D
I can't see anything obviously wrong with your offset settings, but I never use this functionality so I might be missing something.
rkuk wrote:
Fri Sep 05, 2025 2:59 pm
Something I'm realising about this though is: if I fix this bot to do as intended my wins are going to be tiny and my losses therefore massively amplified. Hmmm. Maybe I ignore the back bets on this strat then and look to see if I can improve the strike rate / occurrence as I'm either winning £10 or losing around £40....I guess it's just how many -£40's I hit! But then I might as well just pick the horse I want to lay and straight up gamble which isn't really trading.
People have different definitions of "trading". IMO trading doesn't mean greening up, it means actively entering and/or exiting a market at a price that delivers a long term positive expected value (+EV).

eg on a coin toss, entering with a back bet at 2.10 would be +EV. But exiting at 2.02 to green up would be -EV, and you wouldn't do it if your only focus was to maximise long term profitability. You would let the entry bet ride until you could green up at 1.99 or better.
rkuk
Posts: 29
Joined: Sat Jun 28, 2025 8:29 pm

Thanks James, I need to do a bit more learning on this one. Take your point on EV, and it makes perfect sense in many ways. Why am I risking circa £40 every time to hit £1 (don't get me wrong I'm sure there are loads of strats that do exactly that and more but the first few runs of it look to be in the negative and it would take a lot of those £1 wins to claw back a few losses!). I could look to learn to put in a stop loss to reduce the liability, but given I'm struggling to get the back bets to fire on automation I could be in for a lot of headaches trying to work it out.

Possibly back to the drawing board for me.
User avatar
jamesedwards
Posts: 4453
Joined: Wed Nov 21, 2018 6:16 pm

rkuk wrote:
Mon Sep 08, 2025 12:01 pm
Thanks James, I need to do a bit more learning on this one. Take your point on EV, and it makes perfect sense in many ways. Why am I risking circa £40 every time to hit £1 (don't get me wrong I'm sure there are loads of strats that do exactly that and more but the first few runs of it look to be in the negative and it would take a lot of those £1 wins to claw back a few losses!). I could look to learn to put in a stop loss to reduce the liability, but given I'm struggling to get the back bets to fire on automation I could be in for a lot of headaches trying to work it out.

Possibly back to the drawing board for me.
It's all relative. Laying £40 to win £1 is fine if you win >97.6% of the time, but a disaster if you win <97.5% of the time. Unfortunately it takes a very large base of historic data before you can gauge with any certainty which side of the fence your strategy falls.
stubowden
Posts: 3
Joined: Wed Sep 24, 2025 2:12 pm

Quick question on this looking to start getting involved and seeing a few youtube videos.

Will obviously be starting very small and building up some data but the question I have is lets say I wanted to set up an automated rule for all horse races in a particular day.

So example back the fav 1 min before the off time if the odds are between 4.0 and 7.0 for £1.00 stake (this is just purely an example). So lets say 7 meetings with 7 races each meeting my highest loss would be £49.00. Unlikely to be that high as not all favs will start as high as 4.0 but potentially possible.

I get that part and can see how I can add that automated rule the question is can I set a further rule to stop the automation if I hit a potential profit. So I know I can lose £49 that day however when the automation starts if at any point I get to £30 profit the rule stops.

Hope my question makes sense.
User avatar
Dallas
Posts: 23611
Joined: Sun Aug 09, 2015 10:57 pm

stubowden wrote:
Wed Sep 24, 2025 2:23 pm
Quick question on this looking to start getting involved and seeing a few youtube videos.

Will obviously be starting very small and building up some data but the question I have is lets say I wanted to set up an automated rule for all horse races in a particular day.

So example back the fav 1 min before the off time if the odds are between 4.0 and 7.0 for £1.00 stake (this is just purely an example). So lets say 7 meetings with 7 races each meeting my highest loss would be £49.00. Unlikely to be that high as not all favs will start as high as 4.0 but potentially possible.

I get that part and can see how I can add that automated rule the question is can I set a further rule to stop the automation if I hit a potential profit. So I know I can lose £49 that day however when the automation starts if at any point I get to £30 profit the rule stops.

Hope my question makes sense.
Yes, it can be done
There is an example automation file which you can download here which tracks your daily P/L
viewtopic.php?t=25455

All you need to do is add a Stored Value condition to the back bet rule you want to stop
https://www.betangel.com/user-guide/stored_value.html

and configure it to test the
Store Value (Shared)
for Bet Angel
named Total_Profit
is less than £30
stubowden
Posts: 3
Joined: Wed Sep 24, 2025 2:12 pm

Brill testing it in practice environment on a number of races how do I get the data for the day at the end of the day can it be easily seen in one place?
User avatar
ShaunWhite
Posts: 10589
Joined: Sat Sep 03, 2016 3:42 am

stubowden wrote:
Wed Sep 24, 2025 2:23 pm
I get that part and can see how I can add that automated rule the question is can I set a further rule to stop the automation if I hit a potential profit. So I know I can lose £49 that day however when the automation starts if at any point I get to £30 profit the rule stops.

Hope my question makes sense.
Makes no sense. You're keeping going while you're losing, but stop if the automation is making money.

The wider point is that you never actually stop because you start again the next day, so unless your automation especially doesn't like races later in the day, then why would it's likelihood of success in a race depend on what your balance was? Markets don't care about your bank, it's just either a profitable strategy, or not.
User avatar
jamesedwards
Posts: 4453
Joined: Wed Nov 21, 2018 6:16 pm

ShaunWhite wrote:
Wed Sep 24, 2025 5:12 pm

Makes no sense. You're keeping going while you're losing, but stop if the automation is making money.

The wider point is that you never actually stop because you start again the next day, so unless your automation especially doesn't like races later in the day, then why would it's likelihood of success in a race depend on what your balance was? Markets don't care about your bank, it's just either a profitable strategy, or not.
You can't resist yourself :mrgreen:
stubowden
Posts: 3
Joined: Wed Sep 24, 2025 2:12 pm

ShaunWhite wrote:
Wed Sep 24, 2025 5:12 pm
stubowden wrote:
Wed Sep 24, 2025 2:23 pm
I get that part and can see how I can add that automated rule the question is can I set a further rule to stop the automation if I hit a potential profit. So I know I can lose £49 that day however when the automation starts if at any point I get to £30 profit the rule stops.

Hope my question makes sense.
Makes no sense. You're keeping going while you're losing, but stop if the automation is making money.

The wider point is that you never actually stop because you start again the next day, so unless your automation especially doesn't like races later in the day, then why would it's likelihood of success in a race depend on what your balance was? Markets don't care about your bank, it's just either a profitable strategy, or not.
As I said in quotes this is purely an example I was trying to speak in as basic terms as possible in order to understand how to put a stop in at a certain profit point.
User avatar
ShaunWhite
Posts: 10589
Joined: Sat Sep 03, 2016 3:42 am

stubowden wrote:
Wed Sep 24, 2025 5:36 pm
in order to understand how to put a stop in at a certain profit point.
But why would you want to? If it's so you don't give profit back, then what's different about the next race today vs the first race the next day? Stop at a loss maybe incase it's all going wrong, but if you've got a decent strategy then leave it running.
User avatar
ShaunWhite
Posts: 10589
Joined: Sat Sep 03, 2016 3:42 am

jamesedwards wrote:
Wed Sep 24, 2025 5:21 pm
You can't resist yourself :mrgreen:
;) someone's got to say it.
Post Reply

Return to “Bet Angel for newbies / Getting started”