Help with B2L taking SP

Advanced automation available in Guardian - Chat with others and share files here.
delghisallo
Posts: 53
Joined: Mon Nov 18, 2013 8:45 pm

Dallas wrote:
Mon Mar 21, 2022 1:12 pm
delghisallo wrote:
Mon Mar 21, 2022 12:59 pm
Dallas wrote:
Mon Mar 21, 2022 10:38 am
Sorry was a bit of a busy week last week and I never spotted it when I checked then but the condition on your close trade rule won't do what you expect

You can use one Close trade on selection with greening rule (set to trigger 3 times with a 3 sec rearm)
Then set the conditions like this

Capture.JPG


Give that a go in PM and let me know if there's any problems
Thanks Dallas,

Sorry I'm being a pain, but I cannot see "The Price of a Selection" I can only see "The back (or Lay) price of a selection". I'm sure this is something I'm doing wrong!!
The 'Last Traded Price of a Selection' is under the 'Lay price of a selection' in your screen shot

It looks slightly different in my image as I'm using the new V1.59 were as you must still be using V1.58 or lower
All that's changed here is all the 'Price of selection' options have been taken out the main list and now put in there own sub menu

You can update to V1.59 here if you want to
viewtopic.php?f=46&t=25251
Thanks Dallas / Shaun

Regarding taking SP between a price range......Presently the automation places an unmatched back bet at high odds and I only want it to keep this back bet and take SP if the price is between a certain range. I'm sure there would be a way of automating this, but not sure how? I've just tried adding a grouped condition to my "take SP All unmatched bets" rule that if the fixed odds of the back price are greater than 2 and less than 10, but this doesnt appear to have worked....any ideas anyone?

Thanks Delghisallo
User avatar
Dallas
Posts: 23597
Joined: Sun Aug 09, 2015 10:57 pm

delghisallo wrote:
Mon Mar 21, 2022 3:41 pm
Dallas wrote:
Mon Mar 21, 2022 1:12 pm
delghisallo wrote:
Mon Mar 21, 2022 12:59 pm


Thanks Dallas,

Sorry I'm being a pain, but I cannot see "The Price of a Selection" I can only see "The back (or Lay) price of a selection". I'm sure this is something I'm doing wrong!!
The 'Last Traded Price of a Selection' is under the 'Lay price of a selection' in your screen shot

It looks slightly different in my image as I'm using the new V1.59 were as you must still be using V1.58 or lower
All that's changed here is all the 'Price of selection' options have been taken out the main list and now put in there own sub menu

You can update to V1.59 here if you want to
viewtopic.php?f=46&t=25251
Thanks Dallas / Shaun

Regarding taking SP between a price range......Presently the automation places an unmatched back bet at high odds and I only want it to keep this back bet and take SP if the price is between a certain range. I'm sure there would be a way of automating this, but not sure how? I've just tried adding a grouped condition to my "take SP All unmatched bets" rule that if the fixed odds of the back price are greater than 2 and less than 10, but this doesnt appear to have worked....any ideas anyone?

Thanks Delghisallo
You can't automate it,
You can only test the price range of the SP once its reconciled/published by Betfair
To have the bet matched at SP it needs to be submitted before hand to be included

Your two options are
1) As shaun said test the bac/lay price and or the projected SP
2) Place the bet after the SP is known - but this carries the risk you don't get matched if the horse gets off to a good start and romps home
delghisallo
Posts: 53
Joined: Mon Nov 18, 2013 8:45 pm

Dallas wrote:
Mon Mar 21, 2022 6:29 pm
delghisallo wrote:
Mon Mar 21, 2022 3:41 pm
Dallas wrote:
Mon Mar 21, 2022 1:12 pm


The 'Last Traded Price of a Selection' is under the 'Lay price of a selection' in your screen shot

It looks slightly different in my image as I'm using the new V1.59 were as you must still be using V1.58 or lower
All that's changed here is all the 'Price of selection' options have been taken out the main list and now put in there own sub menu

You can update to V1.59 here if you want to
viewtopic.php?f=46&t=25251
Thanks Dallas / Shaun

Regarding taking SP between a price range......Presently the automation places an unmatched back bet at high odds and I only want it to keep this back bet and take SP if the price is between a certain range. I'm sure there would be a way of automating this, but not sure how? I've just tried adding a grouped condition to my "take SP All unmatched bets" rule that if the fixed odds of the back price are greater than 2 and less than 10, but this doesnt appear to have worked....any ideas anyone?

Thanks Delghisallo
You can't automate it,
You can only test the price range of the SP once its reconciled/published by Betfair
To have the bet matched at SP it needs to be submitted before hand to be included

Your two options are
1) As shaun said test the bac/lay price and or the projected SP
2) Place the bet after the SP is known - but this carries the risk you don't get matched if the horse gets off to a good start and romps home


I have tried to create option 1.

In order to do this I created two stored values one for min and one for max price
image (1).png
I then created two conditions (both which had to be true) where the projected SP value needs to be greater (or lower) than the min price (or max Price)
image (2).png
However this doesn't appeared to have worked, so I would be really grateful if some one could show me the error of my ways :)

thanks

Delghisallo
You do not have the required permissions to view the files attached to this post.
delghisallo
Posts: 53
Joined: Mon Nov 18, 2013 8:45 pm

delghisallo wrote:
Tue Mar 22, 2022 1:56 pm
Dallas wrote:
Mon Mar 21, 2022 6:29 pm
delghisallo wrote:
Mon Mar 21, 2022 3:41 pm


Thanks Dallas / Shaun

Regarding taking SP between a price range......Presently the automation places an unmatched back bet at high odds and I only want it to keep this back bet and take SP if the price is between a certain range. I'm sure there would be a way of automating this, but not sure how? I've just tried adding a grouped condition to my "take SP All unmatched bets" rule that if the fixed odds of the back price are greater than 2 and less than 10, but this doesnt appear to have worked....any ideas anyone?

Thanks Delghisallo
You can't automate it,
You can only test the price range of the SP once its reconciled/published by Betfair
To have the bet matched at SP it needs to be submitted before hand to be included

Your two options are
1) As shaun said test the bac/lay price and or the projected SP
2) Place the bet after the SP is known - but this carries the risk you don't get matched if the horse gets off to a good start and romps home


I have tried to create option 1.

In order to do this I created two stored values one for min and one for max price

image (1).png

I then created two conditions (both which had to be true) where the projected SP value needs to be greater (or lower) than the min price (or max Price)

image (2).png

However this doesn't appeared to have worked, so I would be really grateful if some one could show me the error of my ways :)

thanks

Delghisallo
Just nudging my last post :)
User avatar
Dallas
Posts: 23597
Joined: Sun Aug 09, 2015 10:57 pm

delghisallo wrote:
Thu Mar 24, 2022 12:56 pm
delghisallo wrote:
Tue Mar 22, 2022 1:56 pm
Dallas wrote:
Mon Mar 21, 2022 6:29 pm


You can't automate it,
You can only test the price range of the SP once its reconciled/published by Betfair
To have the bet matched at SP it needs to be submitted before hand to be included

Your two options are
1) As shaun said test the bac/lay price and or the projected SP
2) Place the bet after the SP is known - but this carries the risk you don't get matched if the horse gets off to a good start and romps home


I have tried to create option 1.

In order to do this I created two stored values one for min and one for max price

image (1).png

I then created two conditions (both which had to be true) where the projected SP value needs to be greater (or lower) than the min price (or max Price)

image (2).png

However this doesn't appeared to have worked, so I would be really grateful if some one could show me the error of my ways :)

thanks

Delghisallo
Just nudging my last post :)
The SV conditions need to test either the back price, lay price or projected SP price
The one set up below tests if the projected SP is between 2.0 - 8.0
Capture.JPG
You do not have the required permissions to view the files attached to this post.
delghisallo
Posts: 53
Joined: Mon Nov 18, 2013 8:45 pm

Dallas wrote:
Thu Mar 24, 2022 1:09 pm
delghisallo wrote:
Thu Mar 24, 2022 12:56 pm
delghisallo wrote:
Tue Mar 22, 2022 1:56 pm




I have tried to create option 1.

In order to do this I created two stored values one for min and one for max price

image (1).png

I then created two conditions (both which had to be true) where the projected SP value needs to be greater (or lower) than the min price (or max Price)

image (2).png

However this doesn't appeared to have worked, so I would be really grateful if some one could show me the error of my ways :)

thanks

Delghisallo
Just nudging my last post :)
The SV conditions need to test either the back price, lay price or projected SP price
The one set up below tests if the projected SP is between 2.0 - 8.0

Capture.JPG
Thanks Dallas,

I have applied the conditions you suggested (albeit >2 <10) when I tested this the automation was taking SP on two horses outside of SP (see below)

24/03/2022 15:30:01: [G_Auto 1] : £ 1.00 Back bet placed on Just Your Type at 750. Entirely unmatched when it initially reached the market. Ref: 10027
24/03/2022 15:30:01: [G_Auto 1] : £ 1.00 Back bet placed on Dancing Shadow at 750. Entirely unmatched when it initially reached the market. Ref: 10028
24/03/2022 15:30:01: [G_Auto 1] : £ 1.00 Back bet placed on Good And Hardy at 750. Entirely unmatched when it initially reached the market. Ref: 10029
24/03/2022 15:30:01: [G_Auto 1] : £ 1.00 Back bet placed on Tea Time On Mars at 750. Entirely unmatched when it initially reached the market. Ref: 10030
24/03/2022 15:30:50: [G_Auto 1] : Modify bet persistence 10027 from 'Cancel' to 'Take SP'

24/03/2022 15:30:50: [G_Auto 1] : Modify bet persistence 10028 from 'Cancel' to 'Take SP'

24/03/2022 15:30:50: [G_Auto 1] : Modify bet persistence 10029 from 'Cancel' to 'Take SP'

24/03/2022 15:30:50: [G_Auto 1] : Modify bet persistence 10030 from 'Cancel' to 'Take SP'


24/03/2022 15:33:18: Guardian has detected that the market is suspended
24/03/2022 15:33:19: Guardian has detected that the market is in-play
24/03/2022 15:33:19: Guardian has detected that the market is now unsuspended
24/03/2022 15:34:17: [G_Auto 1] : Placed closure bet with greening on Good And Hardy by Laying 0.67 at 19
24/03/2022 15:35:42: [G_Auto 1] : Placed closure bet with greening on Just Your Type by Laying 1.38 at 4.8
24/03/2022 15:35:45: [G_Auto 1] : Placed closure bet with greening on Just Your Type by Laying 0.02 at 4.7
24/03/2022 15:35:46: [G_Auto 1] : Cancelling bets 10035
24/03/2022 15:35:48: [G_Auto 1] : Placed closure bet with greening on Just Your Type by Laying 0.02 at 4.8
24/03/2022 15:35:55: [G_Auto 1] : Placed closure bet with greening on Dancing Shadow by Laying 0.67 at 11
24/03/2022 15:35:58: [G_Auto 1] : Placed closure bet with greening on Dancing Shadow by Laying 0.08 at 9.8
24/03/2022 15:36:08: [G_Auto 1] : Placed closure bet with greening on Tea Time On Mars by Laying 0.67 at 21
24/03/2022 15:36:10: [G_Auto 1] : Cancelling bets 10042
24/03/2022 15:36:11: [G_Auto 1] : Placed closure bet with greening on Tea Time On Mars by Laying 0.64 at 22
Screenshot 2022-03-24 154410.png
Is the reason for this because its predicated SP so never going to be 100% accurate, or is there something else wrong in my rules file?

Once again thanks for your patience!

Delghisallo
You do not have the required permissions to view the files attached to this post.
User avatar
ShaunWhite
Posts: 10576
Joined: Sat Sep 03, 2016 3:42 am

Projected SP is only updated by Betfair every 60s or so. You'd be better of using LTP. Best of all though is using the mid price between best back and best lay. That'll get you within about 0.25% of SP for iro 95% of runners and within 1% for over 99%.

(% expressed as implied chance)
Last edited by ShaunWhite on Thu Mar 24, 2022 4:54 pm, edited 1 time in total.
User avatar
ShaunWhite
Posts: 10576
Joined: Sat Sep 03, 2016 3:42 am

Dallas wrote:
Mon Mar 21, 2022 6:29 pm

1) As shaun said test the back/lay price and or the projected SP
I haven't looked at your rules file but to clarify, the situation is...

You can't predicted what the SP will be (I wish)
You can't tell with automation when the race will start.
SP will be for all intents and purposes the SP will be the last traded price.

So given those facts your automation needs to check the LTP every few seconds and either place or cancel(*) your SP bet dependent on the LTP. At some point the race will start, and you'll have either a bet or no bet in the market depending on what the LTP was a couple of seconds ago. That LTP is going to be within a gnats of the SP. It's not ideal but it's the best you can do.

* if one had been placed earlier.
delghisallo
Posts: 53
Joined: Mon Nov 18, 2013 8:45 pm

ShaunWhite wrote:
Thu Mar 24, 2022 4:49 pm
Dallas wrote:
Mon Mar 21, 2022 6:29 pm

1) As shaun said test the back/lay price and or the projected SP
I haven't looked at your rules file but to clarify, the situation is...

You can't predicted what the SP will be (I wish)
You can't tell with automation when the race will start.
SP will be for all intents and purposes the SP will be the last traded price.

So given those facts your automation needs to check the LTP every few seconds and either place or cancel(*) your SP bet dependent on the LTP. At some point the race will start, and you'll have either a bet or no bet in the market depending on what the LTP was a couple of seconds ago. That LTP is going to be within a gnats of the SP. It's not ideal but it's the best you can do.

* if one had been placed earlier.
Thanks Shaun,

Is the rule as simple as this......
Screenshot 2022-03-24 194922.png
Screenshot 2022-03-24 195002.png
Or am I totally missing something...being new to rule writting :oops: :roll:

Thanks

Delghisallo
You do not have the required permissions to view the files attached to this post.
User avatar
Dallas
Posts: 23597
Joined: Sun Aug 09, 2015 10:57 pm

The way Shaun has mentioned is still done the way I showed with the screen shot above, I used the Projected SP as an example but as per the message with the screenshot you can use any price you want ie, back, lay , ltp

So just swap out Projected SP where it's shown in the image for whichever price you want to test

Capture.JPG
You do not have the required permissions to view the files attached to this post.
User avatar
ShaunWhite
Posts: 10576
Joined: Sat Sep 03, 2016 3:42 am

I'll leave you in Dallas' capable hands but basically it's 3 rules.

One to place the SP bet if the price range is right AND no existing unmatched SP bet.
One to cancel any unmatched SP bets if the price is out of range.
One to turn any existing unmatched bets into 'take sp' bets.

These three rules should be configured to trigger repeatedly before the race starts so that at any given time you'll either have no bet, or an sp bet.

And then of course your rules for the in-play actions.
delghisallo
Posts: 53
Joined: Mon Nov 18, 2013 8:45 pm

Dallas wrote:
Thu Mar 24, 2022 8:42 pm
The way Shaun has mentioned is still done the way I showed with the screen shot above, I used the Projected SP as an example but as per the message with the screenshot you can use any price you want ie, back, lay , ltp

So just swap out Projected SP where it's shown in the image for whichever price you want to test


Capture.JPG

Sorry guys I'm still banging on about this one.....I'm having difficulty getting this to work they way I would expect it (thats probably down to my basic understanding of rules!!) I have set the condition to take SP if the last traded price is between 2 and 10 (I'm not sure how you get that to trigger repeatedly, I have it triggering 3 times in 12 seconds) However the rule seems to still take SP on the horse (Cuba Cigar) a long way outside the max price I set of 10.
Screenshot 2022-03-25 135731.png
Sorry I'm being a pain but I could do with some more help please, I've also attached the rule file
You do not have the required permissions to view the files attached to this post.
User avatar
ShaunWhite
Posts: 10576
Joined: Sat Sep 03, 2016 3:42 am

I've had a look at your file...I'll let you make the changes.

1. You have a rule to back at high odds which is fine, but it doesn't have a condition to only do so if the current price is in range, and an additional condition to only do so if the unmatched bets >0....without that you could get 100s of bets (make sure you use practice mode or just keep a small amount in your balance for testing) You also want to remove that list of runner names and use the 'Nominated' selection feature but we'll do that later.

2.The TakeSP rule should only have the condition that unmatched bets >0. I see you have the price conditions on that rule and those should be on the rule that places the bet instead.

3. There is no rule to cancel the SP bet if the price moves out of range.

On all of the above change the "allow rule to trigger up to xxx times" to be 999. You want those three rules to be tested over and over again until your "until" time of -15s.. The fact you said trigger it once is what probably saved you from getting 100s of bets. Unless you get it to trigger repeatedly you won't get the required placing/cancelling as the price moves around.

The Close seems ok but I didn't look closely.

The result of those changes should be as I said...
One to place the SP bet if the price range is right AND no existing unmatched SP bet.
One to cancel any unmatched SP bets if the price is out of range.
One to turn any existing unmatched bets into 'take sp' bets.


Hope it helps, I'm a bit rusty with Guardian and just trying to help Dallas out a bit really ;)
delghisallo
Posts: 53
Joined: Mon Nov 18, 2013 8:45 pm

ShaunWhite wrote:
Fri Mar 25, 2022 3:19 pm
I've had a look at your file...I'll let you make the changes.

1. You have a rule to back at high odds which is fine, but it doesn't have a condition to only do so if the current price is in range, and an additional condition to only do so if the unmatched bets >0....without that you could get 100s of bets (make sure you use practice mode or just keep a small amount in your balance for testing) You also want to remove that list of runner names and use the 'Nominated' selection feature but we'll do that later.

2.The TakeSP rule should only have the condition that unmatched bets >0. I see you have the price conditions on that rule and those should be on the rule that places the bet instead.

3. There is no rule to cancel the SP bet if the price moves out of range.

On all of the above change the "allow rule to trigger up to xxx times" to be 999. You want those three rules to be tested over and over again until your "until" time of -15s.. The fact you said trigger it once is what probably saved you from getting 100s of bets. Unless you get it to trigger repeatedly you won't get the required placing/cancelling as the price moves around.

The Close seems ok but I didn't look closely.

The result of those changes should be as I said...
One to place the SP bet if the price range is right AND no existing unmatched SP bet.
One to cancel any unmatched SP bets if the price is out of range.
One to turn any existing unmatched bets into 'take sp' bets.


Hope it helps, I'm a bit rusty with Guardian and just trying to help Dallas out a bit really ;)
Thanks Shaun I'll change the rules and test in todays markets and see how I get on :D
delghisallo
Posts: 53
Joined: Mon Nov 18, 2013 8:45 pm

As I have a large selection of potential runners, is there no way to have the rule work from a list of runners rather than nominating runners for each race/market?

thanks

Delghisallo
Post Reply

Return to “Bet Angel - Automation”