DOB with Moving Exit Guardian Automation Bot

Post Reply
JohnZet
Posts: 4
Joined: Sun Oct 25, 2020 11:09 am

Hi Dallas,
First time using an automation and picked this one up, learned a lot from just reading all the replays in here.
I've reduced DOB from 50% to 25% and applied 2 odds conditions on the "Back" rule so it triggers when the selection is between certain odds. The other rules are the same as in the initial file.
My question is, if I want to add 2 new conditions (attached) to act as stop loss, these should be set up under the "Back" rule or on the "Green Up" and these 2 should be in a specific order to trigger the stop loss? Maybe is a easier way to create the stop loss, I was thinking something like close trade profit with greening if the lay price hits 20 ticks above the initial Back price entry at any time in the race but I don't know how to set up ticks instead of amount.
Thank you!
You do not have the required permissions to view the files attached to this post.
User avatar
Dallas
Posts: 23474
Joined: Sun Aug 09, 2015 10:57 pm

JohnZet wrote:
Wed May 28, 2025 11:06 am
Hi Dallas,
First time using an automation and picked this one up, learned a lot from just reading all the replays in here.
I've reduced DOB from 50% to 25% and applied 2 odds conditions on the "Back" rule so it triggers when the selection is between certain odds. The other rules are the same as in the initial file.
My question is, if I want to add 2 new conditions (attached) to act as stop loss, these should be set up under the "Back" rule or on the "Green Up" and these 2 should be in a specific order to trigger the stop loss? Maybe is a easier way to create the stop loss, I was thinking something like close trade profit with greening if the lay price hits 20 ticks above the initial Back price entry at any time in the race but I don't know how to set up ticks instead of amount.
Thank you!
You would add a 'Close trade on Selection with Greening' rule (and apply it to the nominated selection)
I'd set it to trigger at least 3 times, re-arming every second and with the 'Add Betfairs market delay' box ticked

The 'Trade Profit with greening' condition in your image is configured correctly, but it needs to be added to the rule I've just mentioned rather than any of the existing rules
User avatar
ShaunWhite
Posts: 10354
Joined: Sat Sep 03, 2016 3:42 am

JohnZet wrote:
Wed May 28, 2025 11:06 am
Maybe is a easier way to create the stop loss, I was thinking something like close trade profit with greening if the lay price hits 20 ticks above the initial Back price entry at any time in the race
It's probably going to be more effective if you start to think in terms of probability rather than ticks, which don't tend to scale well over the whole price range. So rather than 20 ticks you could look for it being a percentage less (or more) likely to win. Eg you might back it at a 25% chance but want to bail out if it becomes a 20% chance, or from 90% to 80%, or whatever change in likelihood work for you. Betting is all about probability, 'ticks' are an artificial construct that can lead you to forget that.
JohnZet
Posts: 4
Joined: Sun Oct 25, 2020 11:09 am

Dallas wrote:
Wed May 28, 2025 3:27 pm
JohnZet wrote:
Wed May 28, 2025 11:06 am
Hi Dallas,
First time using an automation and picked this one up, learned a lot from just reading all the replays in here.
I've reduced DOB from 50% to 25% and applied 2 odds conditions on the "Back" rule so it triggers when the selection is between certain odds. The other rules are the same as in the initial file.
My question is, if I want to add 2 new conditions (attached) to act as stop loss, these should be set up under the "Back" rule or on the "Green Up" and these 2 should be in a specific order to trigger the stop loss? Maybe is a easier way to create the stop loss, I was thinking something like close trade profit with greening if the lay price hits 20 ticks above the initial Back price entry at any time in the race but I don't know how to set up ticks instead of amount.
Thank you!
You would add a 'Close trade on Selection with Greening' rule (and apply it to the nominated selection)
I'd set it to trigger at least 3 times, re-arming every second and with the 'Add Betfairs market delay' box ticked

The 'Trade Profit with greening' condition in your image is configured correctly, but it needs to be added to the rule I've just mentioned rather than any of the existing rules
Thank you for the replay, Dallas. Really appreciate the effort the help, I think I'm one step closer to what I'm looking for. I'm still trying to figure out how to set up a stop loss with greening instead of exit at a fix amount. I had an idea of creating a 2nd stored value on the "Back" rule of named "stop loss" set up like this to store a plus 10% value like this
Screenshot 2025-05-29 212939.png
and than used it as a condition on the "Close Trade With Greening" rule like this
Screenshot 2025-05-29 213017.png
triggering 3 times, 1 sec before rearming and ticked the Add market's betting delay.
Clearly I'm doing something wrong because this is not triggering the stop loss, tested in practice mode.

Added the log in here maybe it helps:

5/29/2025 21:43:47: Guardian has detected that the market is suspended
5/29/2025 21:43:48: Guardian has detected that the market is now unsuspended
5/29/2025 21:56:55: [G_Auto 1] : Store Value for Breathe Again: exit = 9.4 - 20% = 7.6
5/29/2025 21:56:55: [G_Auto 1] : Store Value for Breathe Again: stop loss = 9.8 + 10% = 11
5/29/2025 21:56:55: [G_Auto 1] : € 10.00 Back bet placed on Breathe Again at 9.2. Fully matched at 9.4. Ref: 10321
5/29/2025 22:00:55: Guardian has detected that the market is suspended
5/29/2025 22:00:57: Guardian has detected that the market is in-play
5/29/2025 22:00:57: Guardian has detected that the market is now unsuspended
5/29/2025 22:02:51: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 10 ticks = 1.11
5/29/2025 22:02:51: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:02:52: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:02:53: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:02:55: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:02:56: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:02:57: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:02:58: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:02:59: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:03:01: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:03:02: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:03:02: Guardian has detected that the market is suspended

When you have the time, could you please take a look ? Thank you!
You do not have the required permissions to view the files attached to this post.
Last edited by JohnZet on Fri May 30, 2025 6:29 am, edited 1 time in total.
JohnZet
Posts: 4
Joined: Sun Oct 25, 2020 11:09 am

ShaunWhite wrote:
Wed May 28, 2025 3:36 pm
JohnZet wrote:
Wed May 28, 2025 11:06 am
Maybe is a easier way to create the stop loss, I was thinking something like close trade profit with greening if the lay price hits 20 ticks above the initial Back price entry at any time in the race
It's probably going to be more effective if you start to think in terms of probability rather than ticks, which don't tend to scale well over the whole price range. So rather than 20 ticks you could look for it being a percentage less (or more) likely to win. Eg you might back it at a 25% chance but want to bail out if it becomes a 20% chance, or from 90% to 80%, or whatever change in likelihood work for you. Betting is all about probability, 'ticks' are an artificial construct that can lead you to forget that.
Thank you, ShaunWhite! Still learning, I'm at the noob level trying to find my edge, but you just made me thinking on how I can use that as a different approach. Appreciate the replay.
User avatar
Dallas
Posts: 23474
Joined: Sun Aug 09, 2015 10:57 pm

JohnZet wrote:
Thu May 29, 2025 8:07 pm
Dallas wrote:
Wed May 28, 2025 3:27 pm
JohnZet wrote:
Wed May 28, 2025 11:06 am
Hi Dallas,
First time using an automation and picked this one up, learned a lot from just reading all the replays in here.
I've reduced DOB from 50% to 25% and applied 2 odds conditions on the "Back" rule so it triggers when the selection is between certain odds. The other rules are the same as in the initial file.
My question is, if I want to add 2 new conditions (attached) to act as stop loss, these should be set up under the "Back" rule or on the "Green Up" and these 2 should be in a specific order to trigger the stop loss? Maybe is a easier way to create the stop loss, I was thinking something like close trade profit with greening if the lay price hits 20 ticks above the initial Back price entry at any time in the race but I don't know how to set up ticks instead of amount.
Thank you!
You would add a 'Close trade on Selection with Greening' rule (and apply it to the nominated selection)
I'd set it to trigger at least 3 times, re-arming every second and with the 'Add Betfairs market delay' box ticked

The 'Trade Profit with greening' condition in your image is configured correctly, but it needs to be added to the rule I've just mentioned rather than any of the existing rules
Thank you for the replay, Dallas. Really appreciate the effort the help, I think I'm one step closer to what I'm looking for. I'm still trying to figure out how to set up a stop loss with greening instead of exit at a fix amount. I had an idea of creating a 2nd stored value on the "Back" rule of named "stop loss" set up like this to store a plus 10% value like this

Screenshot 2025-05-29 212939.png

and than used it as a condition on the "Close Trade With Greening" rule like this

Screenshot 2025-05-29 213017.png

triggering 3 times, 1 sec before rearming and ticked the Add market's betting delay.
Clearly I'm doing something wrong because this is not triggering the stop loss, tested in practice mode.

Added the log in here maybe it helps:

5/29/2025 21:43:47: Guardian has detected that the market is suspended
5/29/2025 21:43:48: Guardian has detected that the market is now unsuspended
5/29/2025 21:56:55: [G_Auto 1] : Store Value for Breathe Again: exit = 9.4 - 20% = 7.6
5/29/2025 21:56:55: [G_Auto 1] : Store Value for Breathe Again: stop loss = 9.8 + 10% = 11
5/29/2025 21:56:55: [G_Auto 1] : € 10.00 Back bet placed on Breathe Again at 9.2. Fully matched at 9.4. Ref: 10321
5/29/2025 22:00:55: Guardian has detected that the market is suspended
5/29/2025 22:00:57: Guardian has detected that the market is in-play
5/29/2025 22:00:57: Guardian has detected that the market is now unsuspended
5/29/2025 22:02:51: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 10 ticks = 1.11
5/29/2025 22:02:51: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:02:52: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:02:53: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:02:55: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:02:56: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:02:57: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:02:58: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:02:59: [G_Auto 1] : Store Value for Breathe' Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:03:01: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:03:02: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:03:02: Guardian has detected that the market is suspended

When you have the time, could you please take a look ? Thank you!
The stop loss stored value you have created is for a price, notice in your log it says it will trigger if the price drifts above 11
But the close trade profit condition is testing for a P/L

Instead of using that condition add 'Stored Value Condition' to test
the lay price now
is greater than a stored value named 'stop 'loss'

and that will do it

One thing you might want to be careful of is the spread at the time you place the bet is not to big for the percentage you are using
In your log above your back bet was placed at 9.4 and the best lay price was 2 ticks higher at 9.8
However had the gap/spread to the best lay price been slightly larger say 12.5 (which would just 8 ticks higher), it would automatically have triggered your stop loss green up bet at the same time as it would have been greater than 10%
JohnZet
Posts: 4
Joined: Sun Oct 25, 2020 11:09 am

Dallas wrote:
Fri May 30, 2025 2:47 pm
JohnZet wrote:
Thu May 29, 2025 8:07 pm
Dallas wrote:
Wed May 28, 2025 3:27 pm


You would add a 'Close trade on Selection with Greening' rule (and apply it to the nominated selection)
I'd set it to trigger at least 3 times, re-arming every second and with the 'Add Betfairs market delay' box ticked

The 'Trade Profit with greening' condition in your image is configured correctly, but it needs to be added to the rule I've just mentioned rather than any of the existing rules
Thank you for the replay, Dallas. Really appreciate the effort the help, I think I'm one step closer to what I'm looking for. I'm still trying to figure out how to set up a stop loss with greening instead of exit at a fix amount. I had an idea of creating a 2nd stored value on the "Back" rule of named "stop loss" set up like this to store a plus 10% value like this

Screenshot 2025-05-29 212939.png

and than used it as a condition on the "Close Trade With Greening" rule like this

Screenshot 2025-05-29 213017.png

triggering 3 times, 1 sec before rearming and ticked the Add market's betting delay.
Clearly I'm doing something wrong because this is not triggering the stop loss, tested in practice mode.

Added the log in here maybe it helps:

5/29/2025 21:43:47: Guardian has detected that the market is suspended
5/29/2025 21:43:48: Guardian has detected that the market is now unsuspended
5/29/2025 21:56:55: [G_Auto 1] : Store Value for Breathe Again: exit = 9.4 - 20% = 7.6
5/29/2025 21:56:55: [G_Auto 1] : Store Value for Breathe Again: stop loss = 9.8 + 10% = 11
5/29/2025 21:56:55: [G_Auto 1] : € 10.00 Back bet placed on Breathe Again at 9.2. Fully matched at 9.4. Ref: 10321
5/29/2025 22:00:55: Guardian has detected that the market is suspended
5/29/2025 22:00:57: Guardian has detected that the market is in-play
5/29/2025 22:00:57: Guardian has detected that the market is now unsuspended
5/29/2025 22:02:51: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 10 ticks = 1.11
5/29/2025 22:02:51: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:02:52: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:02:53: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:02:55: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:02:56: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:02:57: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:02:58: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:02:59: [G_Auto 1] : Store Value for Breathe' Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:03:01: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:03:02: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:03:02: Guardian has detected that the market is suspended

When you have the time, could you please take a look ? Thank you!
The stop loss stored value you have created is for a price, notice in your log it says it will trigger if the price drifts above 11
But the close trade profit condition is testing for a P/L

Instead of using that condition add 'Stored Value Condition' to test
the lay price now
is greater than a stored value named 'stop 'loss'

and that will do it

One thing you might want to be careful of is the spread at the time you place the bet is not to big for the percentage you are using
In your log above your back bet was placed at 9.4 and the best lay price was 2 ticks higher at 9.8
However had the gap/spread to the best lay price been slightly larger say 12.5 (which would just 8 ticks higher), it would automatically have triggered your stop loss green up bet at the same time as it would have been greater than 10%
Thank you Dallas! Your help is much appreciated! I was trying this automation because it seemed close enough to what I was looking for but the stop loss is what I'm missing. What I was looking for I think is a even more basic automation that this. Essentially what I wanted to create and test was a B2L automation placing a bet with offset let's say 20 ticks below entry price and at the same time to place the stop loss 25 ticks above my entry point 5 sec before off time. So when the first offset level is reached in play either 20 ticks in profit or if it drifts 25 in a loss to green up /close the trade and cancel the other bet unmatched and kept in play as well. I think I'm overthinking and a simple "Offset bet with greening and Stop" for a nominated selection should be the option but I have to test it in practice mode first
User avatar
Dallas
Posts: 23474
Joined: Sun Aug 09, 2015 10:57 pm

JohnZet wrote:
Sat May 31, 2025 1:43 pm
Dallas wrote:
Fri May 30, 2025 2:47 pm
JohnZet wrote:
Thu May 29, 2025 8:07 pm


Thank you for the replay, Dallas. Really appreciate the effort the help, I think I'm one step closer to what I'm looking for. I'm still trying to figure out how to set up a stop loss with greening instead of exit at a fix amount. I had an idea of creating a 2nd stored value on the "Back" rule of named "stop loss" set up like this to store a plus 10% value like this

Screenshot 2025-05-29 212939.png

and than used it as a condition on the "Close Trade With Greening" rule like this

Screenshot 2025-05-29 213017.png

triggering 3 times, 1 sec before rearming and ticked the Add market's betting delay.
Clearly I'm doing something wrong because this is not triggering the stop loss, tested in practice mode.

Added the log in here maybe it helps:

5/29/2025 21:43:47: Guardian has detected that the market is suspended
5/29/2025 21:43:48: Guardian has detected that the market is now unsuspended
5/29/2025 21:56:55: [G_Auto 1] : Store Value for Breathe Again: exit = 9.4 - 20% = 7.6
5/29/2025 21:56:55: [G_Auto 1] : Store Value for Breathe Again: stop loss = 9.8 + 10% = 11
5/29/2025 21:56:55: [G_Auto 1] : € 10.00 Back bet placed on Breathe Again at 9.2. Fully matched at 9.4. Ref: 10321
5/29/2025 22:00:55: Guardian has detected that the market is suspended
5/29/2025 22:00:57: Guardian has detected that the market is in-play
5/29/2025 22:00:57: Guardian has detected that the market is now unsuspended
5/29/2025 22:02:51: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 10 ticks = 1.11
5/29/2025 22:02:51: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:02:52: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:02:53: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:02:55: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:02:56: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:02:57: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:02:58: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:02:59: [G_Auto 1] : Store Value for Breathe' Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:03:01: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:03:02: [G_Auto 1] : Store Value for Breathe Again: new exit = 0 + 5 ticks = 1.06
5/29/2025 22:03:02: Guardian has detected that the market is suspended

When you have the time, could you please take a look ? Thank you!
The stop loss stored value you have created is for a price, notice in your log it says it will trigger if the price drifts above 11
But the close trade profit condition is testing for a P/L

Instead of using that condition add 'Stored Value Condition' to test
the lay price now
is greater than a stored value named 'stop 'loss'

and that will do it

One thing you might want to be careful of is the spread at the time you place the bet is not to big for the percentage you are using
In your log above your back bet was placed at 9.4 and the best lay price was 2 ticks higher at 9.8
However had the gap/spread to the best lay price been slightly larger say 12.5 (which would just 8 ticks higher), it would automatically have triggered your stop loss green up bet at the same time as it would have been greater than 10%
Thank you Dallas! Your help is much appreciated! I was trying this automation because it seemed close enough to what I was looking for but the stop loss is what I'm missing. What I was looking for I think is a even more basic automation that this. Essentially what I wanted to create and test was a B2L automation placing a bet with offset let's say 20 ticks below entry price and at the same time to place the stop loss 25 ticks above my entry point 5 sec before off time. So when the first offset level is reached in play either 20 ticks in profit or if it drifts 25 in a loss to green up /close the trade and cancel the other bet unmatched and kept in play as well. I think I'm overthinking and a simple "Offset bet with greening and Stop" for a nominated selection should be the option but I have to test it in practice mode first
Yes, thats all you need to do for what you've just asked for
Post Reply

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