Identifying the UK All Weather races

Post Reply
routus2000
Posts: 16
Joined: Fri Mar 28, 2025 10:36 pm

Good morning all!

I'm a newbie to Bet Angel (since yesterday!), and am really enjoying exploring the software. I managed to implement one of my basic strategies after a couple of hours messing about with Guardian, but since then I've spent several hours trying to identify and (in this case) stop the automation loading All Weather races. This is a UK strategy, but I can't simply stop it loading the courses by name as some of them have more than one track.

I have my strategy only selecting Handicap races, and have a few other criteria working as well, and I tried the NOT approach; I suspect that I am using either the wrong angle of attack or the wrong code. Can someone please advise me, of the correct way to identify and eliminate JUST the All Weather races - I already have it loading the UK races and applying other filters, like Handicaps only, number of runners etc., but this has me stumped!

I would appreciate any help any of you are able to give, but ideally if you are able to give me a line of code and tell me where to put it (politely please, I'm a newbie :roll: ), that would be fantastic.

Thanks in anticipation
User avatar
Euler
Posts: 26194
Joined: Wed Nov 10, 2010 1:39 pm

Kempton, Lingfield, Newcastle, Wolverhampton, Great Leighs, Southwell are all AW courses when run over the Flat distances.
User avatar
jamesedwards
Posts: 3917
Joined: Wed Nov 21, 2018 6:16 pm

Also Dundalk in Ireland is AW.

Kempton, Lingfield, Newcastle, and Southwell also run NH races on turf. Lingfield is the only track that runs flat races on both turf and AW.
User avatar
Euler
Posts: 26194
Joined: Wed Nov 10, 2010 1:39 pm

I tend to use if AW track and distance <=2m then assume AW. Not perfect, but mainly gets the job done.
routus2000
Posts: 16
Joined: Fri Mar 28, 2025 10:36 pm

Thanks for the replies folks.

I know the course names (Great Leighs is no more, it is now Chelmsford City), my problem is that I have a handicap system which covers both Flat and NH races, so simply removing the course names (with the exception Chelmsford) would remove some significant racing (e.g. Kempton on Boxing Day).

Does anyone know if removing the surface type (Polytrack? Tapeta? Fibresand?) and / or the ground condition (Standard, Slow, Fast) would be a workable solution and, if it is, how would I implement it?

On the subject of going, or ground condition, I also want to remove races on heavy ground.

Cheers
routus2000
Posts: 16
Joined: Fri Mar 28, 2025 10:36 pm

Euler wrote:
Sat Mar 29, 2025 2:00 pm
I tend to use if AW track and distance <=2m then assume AW. Not perfect, but mainly gets the job done.
That suggests that simply using NOT AW might be a possibility, I will have a look at that and NOT (AW) when I can get a few minutes free; although I thought I had tried them already
User avatar
Euler
Posts: 26194
Joined: Wed Nov 10, 2010 1:39 pm

When I say AW, I'm searching and using text for the actual tracks. Hope that is clear?
User avatar
jamesedwards
Posts: 3917
Joined: Wed Nov 21, 2018 6:16 pm

You can use nested conditions so that it ignores races where the racecourse is X, Y, or Z, AND the race distance is <=2m.
routus2000
Posts: 16
Joined: Fri Mar 28, 2025 10:36 pm

Okay, so asking BA's own AI the question in different ways, here is the response:

"To refine your search to remove UK All Weather races while keeping only handicap races, you can combine your existing search term with additional 'NOT' terms. Assuming you have identified the specific terms Betfair uses for All Weather races, you can structure your search string as follows:

Hcap AND NOT [All Weather Term 1] AND NOT [All Weather Term 2]

Replace [All Weather Term 1] and [All Weather Term 2] with the actual terms Betfair uses to denote All Weather races. This will ensure that your search results include only handicap races and exclude any that are All Weather."

And this is what I have found:

Standard

Standard to slow

Standard to fast

Slow

Fast

So my plan is to use this format along with those terms (and add in Heavy)

Hopefully this will help someone else too
routus2000
Posts: 16
Joined: Fri Mar 28, 2025 10:36 pm

Thanks again for your responses.

Ignore my last post .... it doesn't work

I have to say that I'm disappointed that neither All Weather or "Going" can be filtered effectively; when I want to build my AW only strategy, it looks like that will be a hell of a lot of effort, if it's even possible.

With so much all weather racing now, surely there's a simple way to implement this effectively?
User avatar
jamesedwards
Posts: 3917
Joined: Wed Nov 21, 2018 6:16 pm

Try this (not tested).

The condition means a rule will only trigger if:
[the race is a handicap]
AND
([the racecourse is not one of the list above], OR [the race distance is >2m])..

Only issues would be Lingfield flat races on the turf, and occasional NH race running at 2m at those tracks might be excluded.

aw and hcap.baf
You do not have the required permissions to view the files attached to this post.
routus2000
Posts: 16
Joined: Fri Mar 28, 2025 10:36 pm

jamesedwards wrote:
Sat Mar 29, 2025 4:46 pm
Try this (not tested).

The condition means a rule will only trigger if the racecourse is [not one of the list above], OR [the race distance is >2m].

Only issues would be Lingfield flat races on the turf, and occasional NH race running at 2m at those tracks might be excluded.


aw and hcap.baf
Thank you for your time and effort, I really appreciate it!
User avatar
Dublin_Flyer
Posts: 839
Joined: Sat Feb 11, 2012 10:39 am

Along with jamesedwards baf you could include in the exclusions of named tracks that the Market Name does not contain Chs, Hrd, NHF just to be sure to be sure.
Could be worth excluding the rare races confined to Arab, and Charity too. As far as I know they're standard weight so non hcap but you can never be too sure.

Surely I've said the word sure too much in this post.

Yes I have, and don't call me Shirley :lol:
routus2000
Posts: 16
Joined: Fri Mar 28, 2025 10:36 pm

Dublin_Flyer wrote:
Sun Mar 30, 2025 2:03 am
Along with jamesedwards baf you could include in the exclusions of named tracks that the Market Name does not contain Chs, Hrd, NHF just to be sure to be sure.
Could be worth excluding the rare races confined to Arab, and Charity too. As far as I know they're standard weight so non hcap but you can never be too sure.

Surely I've said the word sure too much in this post.

Yes I have, and don't call me Shirley :lol:
Thanks for your input, I had already added the NH race types ..... to be sure Shirley :D
DanTheMan1
Posts: 65
Joined: Sun Feb 28, 2021 11:12 am

routus2000 wrote:
Sat Mar 29, 2025 3:59 pm
Thanks again for your responses.

Ignore my last post .... it doesn't work

I have to say that I'm disappointed that neither All Weather or "Going" can be filtered effectively; when I want to build my AW only strategy, it looks like that will be a hell of a lot of effort, if it's even possible.

With so much all weather racing now, surely there's a simple way to implement this effectively?
Import it in as a stored value
Post Reply

Return to “Bet Angel Automation - Horse racing - Pre off”