Lay the First to Trade at 2.0 Guardian Automation Bot

Post Reply
harryefc84
Posts: 18
Joined: Sat Sep 04, 2021 8:52 pm

That's brilliant Dallas, that helps me a lot.

I'll create some separate rules for each race distance.

Thanks again for your time and help
Bet79
Posts: 42
Joined: Mon May 08, 2023 10:05 pm

Hi Dallas
Is it possible to alter this bot so it monitors the horse that reaches 2 first , waits a few seconds to see the direction of its odds and then places a back or lay bet depending which way they are heading?
User avatar
Dallas
Posts: 22729
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

Bet79 wrote:
Wed Jun 28, 2023 9:13 pm
Hi Dallas
Is it possible to alter this bot so it monitors the horse that reaches 2 first , waits a few seconds to see the direction of its odds and then places a back or lay bet depending which way they are heading?
Yes, that can be done

But what happens if it just breaks through 2.0 for a fraction of a second then drifts back out do you still want to place a bet then?
Bet79
Posts: 42
Joined: Mon May 08, 2023 10:05 pm

I was thinking after hitting 2 it would then place a lay if it drifted by 10ticks or placed a back bet if it came in by 20 ticks, something like that that I could adjust to see if there was a sweet spot
User avatar
Dallas
Posts: 22729
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

Bet79 wrote:
Thu Jun 29, 2023 8:48 pm
I was thinking after hitting 2 it would then place a lay if it drifted by 10ticks or placed a back bet if it came in by 20 ticks, something like that that I could adjust to see if there was a sweet spot
For something like that you'd do the following

Change the current lay rule type to a 'Set/Modify Signal' rule
and on the Signal tab set a signal on the selection (give it any name and value) ie, armed

Then add a 'place back bet' rule with the following three conditions
Fixed Odds Condition - price is less than 1.80
Signal set condition - to test the signal named 'armed' (or whatever you called it) is set with a value
Number of place bet triggers condition - on selection is equal to 0

Then add a 'place lay bet' rule with the following three conditions
Fixed Odds Condition - price is greater than 2.20
Signal set condition - to test the signal named 'armed' (or whatever you called it) is set with a value
Number of place bet triggers condition - on selection is equal to 0

and that will do it
Bet79
Posts: 42
Joined: Mon May 08, 2023 10:05 pm

That’s amazing, thank you!
User avatar
Dallas
Posts: 22729
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

Bet79 wrote:
Fri Jun 30, 2023 3:25 pm
That’s amazing, thank you!
No probs
Bet79
Posts: 42
Joined: Mon May 08, 2023 10:05 pm

Had some good results from a variation of this bot, had a full loss on this though with no stop bets placed even though it looks like the stop was triggered, is this just down to bets not getting matched in time and if so is there a way to avoid it?

26/07/2023 15:44:20: Guardian has detected that the market is suspended
26/07/2023 15:44:21: Guardian has detected that the market is in-play
26/07/2023 15:44:21: Guardian has detected that the market is now unsuspended
26/07/2023 15:45:10: [G_Auto 1] : £ 2.72 Lay bet placed on Delagate This Lord at 2.84. Entirely unmatched when it initially reached the market. Ref: 314788877830 ( Fill or kill bet with 1 seconds delay. Offsetting by 15 ticks with greening. Stop at 15 ticks. Place stop at 20 ticks )
26/07/2023 15:45:14: [G_Auto 1] : £ 2.72 of unmatched bet (Ref:314788877830) was filled before remainder was killed.
26/07/2023 15:45:15: [G_Auto 1] : £ 2.31 Back bet placed on Delagate This Lord at 3.35. Entirely unmatched when it initially reached the market. Ref: 314788889433
26/07/2023 15:45:19: Stop triggered. Modify bet 314788889433 from 2.31 @ 3.35 to 3.04 @ 2.44 New Ref: 314788894914 and Additional £ 0.73 bet placed as Ref: 314788891817

26/07/2023 15:45:19: Stop triggered. Modify bet 314788891817 from 0.73 @ 3.35 to 0.73 @ 2.44 New Ref: 314788894915
26/07/2023 15:45:30: Guardian has detected that the market is suspended
User avatar
Dallas
Posts: 22729
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

Bet79 wrote:
Wed Jul 26, 2023 9:27 pm
Had some good results from a variation of this bot, had a full loss on this though with no stop bets placed even though it looks like the stop was triggered, is this just down to bets not getting matched in time and if so is there a way to avoid it?

26/07/2023 15:44:20: Guardian has detected that the market is suspended
26/07/2023 15:44:21: Guardian has detected that the market is in-play
26/07/2023 15:44:21: Guardian has detected that the market is now unsuspended
26/07/2023 15:45:10: [G_Auto 1] : £ 2.72 Lay bet placed on Delagate This Lord at 2.84. Entirely unmatched when it initially reached the market. Ref: 314788877830 ( Fill or kill bet with 1 seconds delay. Offsetting by 15 ticks with greening. Stop at 15 ticks. Place stop at 20 ticks )
26/07/2023 15:45:14: [G_Auto 1] : £ 2.72 of unmatched bet (Ref:314788877830) was filled before remainder was killed.
26/07/2023 15:45:15: [G_Auto 1] : £ 2.31 Back bet placed on Delagate This Lord at 3.35. Entirely unmatched when it initially reached the market. Ref: 314788889433
26/07/2023 15:45:19: Stop triggered. Modify bet 314788889433 from 2.31 @ 3.35 to 3.04 @ 2.44 New Ref: 314788894914 and Additional £ 0.73 bet placed as Ref: 314788891817

26/07/2023 15:45:19: Stop triggered. Modify bet 314788891817 from 0.73 @ 3.35 to 0.73 @ 2.44 New Ref: 314788894915
26/07/2023 15:45:30: Guardian has detected that the market is suspended
The stop was placed at 15:45:19 but just not matched

Like any bet it's impossible to ensure it's always matched especially as the race get near the end and the volatility increases with prices jumping about all over the place
Also you need to factor in Betfair's 1-second in-play bet delay so by the time the stop hits the market the runners price might be dozens of ticks away
Bet79
Posts: 42
Joined: Mon May 08, 2023 10:05 pm

thanks
User avatar
sIGNAL
Posts: 96
Joined: Sun Aug 06, 2023 5:32 am

Fairly new to BA and automation. Just wanted to say a big thanks for all the help you give Dallas. This thread is awesome and there are plenty of gold nuggets hidden amongst all the posts from Dallas and various other users. I must of read this whole thread 4 or 5 times over the past few days and it's helped me so much. So if your new just take your time and read what's being said and think about it in more detail.

I've actually reversed the bot and have added a green up and stop loss, and it's working well.
I'm now looking at adding some more rules to filter races and to also minimise losses, I've seen that the WOM rule has been suggested a few times in this thread so that's my plan for tomorrow to have a look at that and possible add that to the automation.

As I'm using Back instead of lay am I correct in using the WOM rule to allow the rule to trigger if the book % is less than 99.5%? Is that part correct?

I just found this thread about WOM so will read up on that as that seems to be pretty relevant to what I'm looking at.
viewtopic.php?t=15391
User avatar
Dallas
Posts: 22729
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

sIGNAL wrote:
Thu Sep 07, 2023 11:45 pm
Fairly new to BA and automation. Just wanted to say a big thanks for all the help you give Dallas. This thread is awesome and there are plenty of gold nuggets hidden amongst all the posts from Dallas and various other users. I must of read this whole thread 4 or 5 times over the past few days and it's helped me so much. So if your new just take your time and read what's being said and think about it in more detail.

I've actually reversed the bot and have added a green up and stop loss, and it's working well.
I'm now looking at adding some more rules to filter races and to also minimise losses, I've seen that the WOM rule has been suggested a few times in this thread so that's my plan for tomorrow to have a look at that and possible add that to the automation.

As I'm using Back instead of lay am I correct in using the WOM rule to allow the rule to trigger if the book % is less than 99.5%? Is that part correct?

I just found this thread about WOM so will read up on that as that seems to be pretty relevant to what I'm looking at.
viewtopic.php?t=15391
Thanks, i'm glad you are finding the examples useful, and yes there is often a lot of useful chat and suggestions on the threads.

Just to clarify your question though, the WOM (weight of money) and the book% are two different things
WOM is the amount waiting to be matched at the best 3 prices on each side of the book

Book% is a selection implied percentage (ie, a horse priced at 2.0 has an implied percentage of 50%, a horse priced at 6.0 has a implied percentage of 16.6 %
By adding the implied percentage of each selection you get the over all book%
User avatar
sIGNAL
Posts: 96
Joined: Sun Aug 06, 2023 5:32 am

Dallas wrote:
Fri Sep 08, 2023 10:24 am
sIGNAL wrote:
Thu Sep 07, 2023 11:45 pm
Fairly new to BA and automation. Just wanted to say a big thanks for all the help you give Dallas. This thread is awesome and there are plenty of gold nuggets hidden amongst all the posts from Dallas and various other users. I must of read this whole thread 4 or 5 times over the past few days and it's helped me so much. So if your new just take your time and read what's being said and think about it in more detail.

I've actually reversed the bot and have added a green up and stop loss, and it's working well.
I'm now looking at adding some more rules to filter races and to also minimise losses, I've seen that the WOM rule has been suggested a few times in this thread so that's my plan for tomorrow to have a look at that and possible add that to the automation.

As I'm using Back instead of lay am I correct in using the WOM rule to allow the rule to trigger if the book % is less than 99.5%? Is that part correct?

I just found this thread about WOM so will read up on that as that seems to be pretty relevant to what I'm looking at.
viewtopic.php?t=15391
Thanks, i'm glad you are finding the examples useful, and yes there is often a lot of useful chat and suggestions on the threads.

Just to clarify your question though, the WOM (weight of money) and the book% are two different things
WOM is the amount waiting to be matched at the best 3 prices on each side of the book

Book% is a selection implied percentage (ie, a horse priced at 2.0 has an implied percentage of 50%, a horse priced at 6.0 has a implied percentage of 16.6 %
By adding the implied percentage of each selection you get the over all book%
OK I think I understand now. So if i was to add a WOM rule to my automation, which is based on a BACK bet, would i be correct is saying that the WOM rule should be "Less Than 50%" as i am looking for the selection to shorten for me to make a profit ? so WOM <50%

See screenshot and is 20% about right as a basic start or should i make it higher around 33% ? I suppose anything less than 50% is in the right direction but its then how far do you take it, and that Im guessing is where I have to test to find out.
You do not have the required permissions to view the files attached to this post.
User avatar
Dallas
Posts: 22729
Joined: Sun Aug 09, 2015 10:57 pm
Location: Working From Home

sIGNAL wrote:
Fri Sep 08, 2023 12:24 pm
Dallas wrote:
Fri Sep 08, 2023 10:24 am
sIGNAL wrote:
Thu Sep 07, 2023 11:45 pm
Fairly new to BA and automation. Just wanted to say a big thanks for all the help you give Dallas. This thread is awesome and there are plenty of gold nuggets hidden amongst all the posts from Dallas and various other users. I must of read this whole thread 4 or 5 times over the past few days and it's helped me so much. So if your new just take your time and read what's being said and think about it in more detail.

I've actually reversed the bot and have added a green up and stop loss, and it's working well.
I'm now looking at adding some more rules to filter races and to also minimise losses, I've seen that the WOM rule has been suggested a few times in this thread so that's my plan for tomorrow to have a look at that and possible add that to the automation.

As I'm using Back instead of lay am I correct in using the WOM rule to allow the rule to trigger if the book % is less than 99.5%? Is that part correct?

I just found this thread about WOM so will read up on that as that seems to be pretty relevant to what I'm looking at.
viewtopic.php?t=15391
Thanks, i'm glad you are finding the examples useful, and yes there is often a lot of useful chat and suggestions on the threads.

Just to clarify your question though, the WOM (weight of money) and the book% are two different things
WOM is the amount waiting to be matched at the best 3 prices on each side of the book

Book% is a selection implied percentage (ie, a horse priced at 2.0 has an implied percentage of 50%, a horse priced at 6.0 has a implied percentage of 16.6 %
By adding the implied percentage of each selection you get the over all book%
OK I think I understand now. So if i was to add a WOM rule to my automation, which is based on a BACK bet, would i be correct is saying that the WOM rule should be "Less Than 50%" as i am looking for the selection to shorten for me to make a profit ? so WOM <50%

See screenshot and is 20% about right as a basic start or should i make it higher around 33% ? I suppose anything less than 50% is in the right direction but its then how far do you take it, and that Im guessing is where I have to test to find out.
Yes, that is correct, the WOM is always uses the lay side
So in the condition entering less than 20% is also saying the WOM on the back is side Greater than 80%
User avatar
sIGNAL
Posts: 96
Joined: Sun Aug 06, 2023 5:32 am

Dallas wrote:
Fri Sep 08, 2023 12:54 pm
sIGNAL wrote:
Fri Sep 08, 2023 12:24 pm
Dallas wrote:
Fri Sep 08, 2023 10:24 am


Thanks, i'm glad you are finding the examples useful, and yes there is often a lot of useful chat and suggestions on the threads.

Just to clarify your question though, the WOM (weight of money) and the book% are two different things
WOM is the amount waiting to be matched at the best 3 prices on each side of the book

Book% is a selection implied percentage (ie, a horse priced at 2.0 has an implied percentage of 50%, a horse priced at 6.0 has a implied percentage of 16.6 %
By adding the implied percentage of each selection you get the over all book%
OK I think I understand now. So if i was to add a WOM rule to my automation, which is based on a BACK bet, would i be correct is saying that the WOM rule should be "Less Than 50%" as i am looking for the selection to shorten for me to make a profit ? so WOM <50%

See screenshot and is 20% about right as a basic start or should i make it higher around 33% ? I suppose anything less than 50% is in the right direction but its then how far do you take it, and that Im guessing is where I have to test to find out.
Yes, that is correct, the WOM is always uses the lay side
So in the condition entering less than 20% is also saying the WOM on the back is side Greater than 80%
Thank you Dallas I will have a play about with it.
Post Reply

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