Back and Lay Runners Depending on their Recent Form / Finishing Positions Guardian Automation Bot

Post Reply
User avatar
Dallas
Posts: 22673
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

This is a basic Guardian automation rule for use on In-Running horse racing markets

The bot will place back and lay bets on runners depending on their form (previous finishing positions), I've included three 'sample' rules which will do the following;
Back the Fav if it Won its Last Race
Back the Fav if it was Unplaced in its Last Three Races
Lay Any Runner if it was Unplaced in its Last Three Races


For this example I've created rules to store the three most recent finishing positions for every runner from their form this season and extracted these to individual values so you can test any combination of those (you can add further rules if you want to check more finishing positions from the form)

If a runner has not ran three races this season no bets will trigger on it
If its fell, pulled up, unseated or brought down (F, P, U, B) these are converted into a value of 0 so will still be counted as a recent run


How it works and using the Rules File
Once you have it imported into your Guardian you can edit those (or any other parts of the file) anyway you want or remove them and add your own rules to use the recent form very easily by clicking on "Edit Rules File".

Please refer to the 'Note' tab for a more detailed explanation on how each rule works and how it may be connected/linked to other rules within the file

Notes.JPG
**As with any automation bot always run in practice mode first to ensure everything is working fine, and repeat this each time you make any changes**


Please note you will need to be using at least V1.57 to use this file, if you are using a older version you can download V1.57 from here
viewtopic.php?f=46&t=24292


Downloading and Importing the Files
To use the file just click on the Back and Lay Depending on Recent Form.baf' link below and that will download it to your computer, then with guardian open on the "Automation" tab click "Import a Rules File" as shown in the image, once imported it will now appear in the pick list area just above, you can now apply it to any markets you have added into guardian.

To see a video tutorial on how to download and import an automation file into your Bet Angel please see this link
https://www.youtube.com/watch?v=g7Im4pj683g
You do not have the required permissions to view the files attached to this post.
User avatar
bigpapaperry
Posts: 18
Joined: Sat Feb 13, 2021 1:18 pm

Hello
is there anyway to make this work with greyhounds?
I have tried to run this but as form isnt loaded like horses i wondered if there was a way to find the dog form

It works perfect for horses but could i change it to look for days since last run?

Many Thanks as always for you help
Last edited by bigpapaperry on Wed Apr 06, 2022 3:53 pm, edited 1 time in total.
User avatar
Dallas
Posts: 22673
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

bigpapaperry wrote:
Wed Apr 06, 2022 3:51 pm
Hello
is there anyway to make this work with greyhounds?
I have tried to run this but as form isnt loaded like horses i wondered if there was a way to find the form

Many Thanks as always for you help
Never looked at the form or whats available from GH markets but will check later and get back to you
User avatar
bigpapaperry
Posts: 18
Joined: Sat Feb 13, 2021 1:18 pm

thank you any prod in the right direction would be most appreciated
User avatar
Dallas
Posts: 22673
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

bigpapaperry wrote:
Mon Apr 11, 2022 5:57 pm
thank you any prod in the right direction would be most appreciated
Sorry forgot all about this by getting distracted with Aintree last week

I'll try and take a look tomorrow evening, but if I haven't replied by Wednesday lunchtime bump the thread again to remind me
User avatar
bigpapaperry
Posts: 18
Joined: Sat Feb 13, 2021 1:18 pm

any luck finding dog form?
User avatar
Dallas
Posts: 22673
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

bigpapaperry wrote:
Thu Apr 14, 2022 5:19 pm
any luck finding dog form?
I just quickly checked a Greyhound market on Betfair and it doesn't look like they have the form for Greyhound markets, that'll be why Bet Angel isn't able to retrieve or use as part of a rule like this one
tony63
Posts: 22
Joined: Wed Mar 16, 2016 12:14 pm

Hi

I downloaded this file as it interested me but it doesn't appear to be working as described and there are no notes on the version I have.

The particular problem relates to the last 3 runs. In the description it says if there aren't 3 runs this season the rule for that horse won't trigger.

I am finding that the rules always trigger regardless of the number of runs - even if the horse has never run before. It appears that anything apart from the defined values convert to 0 and so for example a horse that has only run once will have a recent of 1 and a second and third recent of 0. This will mean the back bet will trigger.

I have done other things to force the 3 positions but I put a new text comparison condition in that says form does not contain -. This however stops the rule from triggering even when form does not contain a "-".

It's as though the text comparison condition doesn't recognise alpha numeric characters. Any ideas? Eg should the - be in quotes?

I'm using BA 1.59.0_b1 on Windows 11.
User avatar
Dallas
Posts: 22673
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

tony63 wrote:
Fri Jun 24, 2022 5:04 pm
Hi

I downloaded this file as it interested me but it doesn't appear to be working as described and there are no notes on the version I have.

The particular problem relates to the last 3 runs. In the description it says if there aren't 3 runs this season the rule for that horse won't trigger.

I am finding that the rules always trigger regardless of the number of runs - even if the horse has never run before. It appears that anything apart from the defined values convert to 0 and so for example a horse that has only run once will have a recent of 1 and a second and third recent of 0. This will mean the back bet will trigger.

I have done other things to force the 3 positions but I put a new text comparison condition in that says form does not contain -. This however stops the rule from triggering even when form does not contain a "-".

It's as though the text comparison condition doesn't recognise alpha numeric characters. Any ideas? Eg should the - be in quotes?

I'm using BA 1.59.0_b1 on Windows 11.
Just had a quick test of this on the last two races and from what I can see I think BF have changed the form string and now use a zero in place of a blank space when a horse hasn't run before since this file was created

I'll have to do some more testing over the next few days but will
User avatar
Dallas
Posts: 22673
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

Dallas wrote:
Fri Jun 24, 2022 6:12 pm
tony63 wrote:
Fri Jun 24, 2022 5:04 pm
Hi

I downloaded this file as it interested me but it doesn't appear to be working as described and there are no notes on the version I have.

The particular problem relates to the last 3 runs. In the description it says if there aren't 3 runs this season the rule for that horse won't trigger.

I am finding that the rules always trigger regardless of the number of runs - even if the horse has never run before. It appears that anything apart from the defined values convert to 0 and so for example a horse that has only run once will have a recent of 1 and a second and third recent of 0. This will mean the back bet will trigger.

I have done other things to force the 3 positions but I put a new text comparison condition in that says form does not contain -. This however stops the rule from triggering even when form does not contain a "-".

It's as though the text comparison condition doesn't recognise alpha numeric characters. Any ideas? Eg should the - be in quotes?

I'm using BA 1.59.0_b1 on Windows 11.
Just had a quick test of this on the last two races and from what I can see I think BF have changed the form string and now use a zero in place of a blank space when a horse hasn't run before since this file was created

I'll have to do some more testing over the next few days but will

Can you try this version
Back and Lay Depending on Recent Form.baf

It looks like it's now working but obviously hasn't covered all situations yet so i'll continue to test over the next few days as well
You do not have the required permissions to view the files attached to this post.
tony63
Posts: 22
Joined: Wed Mar 16, 2016 12:14 pm

Thanks Dallas. I'll start testing on todays races. If I hit any problems I'll let you know.
tony63
Posts: 22
Joined: Wed Mar 16, 2016 12:14 pm

Hi Dallas.

Better but still occasionally triggering when it shouldn't. The 1st season runs appear to be sorted out but the "-" still seems to be a problem.

25/6 13:40 Windsor. Last 3 of the form of Shut Up And Dance was 4-1 which according to the notes means that it shouldn't trigger but it did.

25/06/2022 13:39:32: [G_Auto 2] : Store Value (Shared) for market: FavOdds = 2.18
25/06/2022 13:39:40: [G_Auto 1] : Store Text Value for Shut Up And Dance: form = 4-1
25/06/2022 13:39:40: [G_Auto 1] : Store Value for Shut Up And Dance: recent = 1
25/06/2022 13:39:40: [G_Auto 1] : Store Value for Shut Up And Dance: second_recent = 0
25/06/2022 13:39:40: [G_Auto 1] : Store Value for Shut Up And Dance: third_recent = 4
25/06/2022 13:39:40: [G_Auto 1] : Store Text Value for Executive Pool: form = 9-1
25/06/2022 13:39:40: [G_Auto 1] : Store Value for Executive Pool: recent = 1
25/06/2022 13:39:40: [G_Auto 1] : Store Value for Executive Pool: second_recent = 0
25/06/2022 13:39:40: [G_Auto 1] : Store Value for Executive Pool: third_recent = 9
25/06/2022 13:39:40: [G_Auto 1] : Store Text Value for Kharshuf: form = 954
25/06/2022 13:39:40: [G_Auto 1] : Store Value for Kharshuf: recent = 4
25/06/2022 13:39:40: [G_Auto 1] : Store Value for Kharshuf: second_recent = 5
25/06/2022 13:39:40: [G_Auto 1] : Store Value for Kharshuf: third_recent = 9
25/06/2022 13:39:40: [G_Auto 1] : Store Text Value for Miss Metropolitan: form = 685
25/06/2022 13:39:40: [G_Auto 1] : Store Value for Miss Metropolitan: recent = 5
25/06/2022 13:39:40: [G_Auto 1] : Store Value for Miss Metropolitan: second_recent = 8
25/06/2022 13:39:40: [G_Auto 1] : Store Value for Miss Metropolitan: third_recent = 6
25/06/2022 13:39:40: [G_Auto 1] : Store Text Value for Joanies Girl: form = 959
25/06/2022 13:39:40: [G_Auto 1] : Store Value for Joanies Girl: recent = 9
25/06/2022 13:39:40: [G_Auto 1] : Store Value for Joanies Girl: second_recent = 5
25/06/2022 13:39:40: [G_Auto 1] : Store Value for Joanies Girl: third_recent = 9
25/06/2022 13:39:40: [G_Auto 1] : Store Text Value for Just An Inkling: form = 500
25/06/2022 13:39:40: [G_Auto 1] : Store Value for Just An Inkling: recent = 0
25/06/2022 13:39:40: [G_Auto 1] : Store Value for Just An Inkling: second_recent = 0
25/06/2022 13:39:40: [G_Auto 1] : Store Value for Just An Inkling: third_recent = 5
25/06/2022 13:39:50: [G_Auto 1] : £ 5.00 Back bet placed on Shut Up And Dance at 2.12. Fully matched at 2.12. Ref: 10004
25/06/2022 13:39:50: [G_Auto 1] : £ 5.00 Back bet placed on Shut Up And Dance at 2.12. Fully matched at 2.12. Ref: 10005
25/06/2022 13:39:50: [G_Auto 1] : £ 1.35 Lay bet placed on Kharshuf at 19.5. Fully matched at 19.5. Ref: 10006
25/06/2022 13:39:50: [G_Auto 1] : £ 1.19 Lay bet placed on Miss Metropolitan at 22. Fully matched at 22. Ref: 10007
25/06/2022 13:39:50: [G_Auto 1] : £ 0.58 Lay bet placed on Joanies Girl at 44. Fully matched at 44. Ref: 10008
25/06/2022 13:39:50: [G_Auto 1] : £ 0.28 Lay bet placed on Just An Inkling at 90. Fully matched at 90. Ref: 10009
25/06/2022 13:40:33: Guardian has detected that the market is suspended
25/06/2022 13:40:34: Guardian has detected that the market is in-play
25/06/2022 13:40:35: Guardian has detected that the market is now unsuspended
25/06/2022 13:40:36: [G_Auto 2] : Automation Signal for market: unsuspended = 1
25/06/2022 13:43:02: Guardian has detected that the market is suspended
tony63
Posts: 22
Joined: Wed Mar 16, 2016 12:14 pm

Hi Dallas.

Another problem identified.

If a horse has never run before the "Back if favourite placed last time out" is triggering.
User avatar
Dallas
Posts: 22673
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

tony63 wrote:
Sun Jun 26, 2022 2:02 pm
Hi Dallas.

Another problem identified.

If a horse has never run before the "Back if favourite placed last time out" is triggering.
That should be easy enough to fix

On the two back fav rules add another SV condition the same as it has but change is to 'Greater than 0'
So effectively you create a range 1-3 for it to trigger in
tony63
Posts: 22
Joined: Wed Mar 16, 2016 12:14 pm

Hi Dallas.

Thanks for that. I'll continue testing it.

I have also implemented a fix for the other problem which appears to be working. No doubt not as elegant that you would do but at the moment it appears to be working.
Post Reply

Return to “Bet Angel Automation - Horse racing - In-running”