Help with B2L taking SP

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

Hi Guys,

I'm trying to automate the following :-

I have a list of selected horses for the day. From this list (there may be 2 or more in one event) i want to back the selections at SP, then in running green up if the selection price goes down 15 ticks, or take a stop loss if the selection drifts 12 ticks.

Attached is the set of rules I created but I cant get this to work. Any help would be greatly appreciated

Thanks in advance
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

What stake size are you using?

The minimum SP stake Betfair will accept is £2
any orders below that will be rejected
delghisallo
Posts: 53
Joined: Mon Nov 18, 2013 8:45 pm

Dallas wrote:
Wed Mar 16, 2022 5:33 pm
What stake size are you using?

The minimum SP stake Betfair will accept is £2
any orders below that will be rejected
Thanks Dallas

For the purposes of testing the rules I was using 10p stakes. So I can increase that to £2. Did the way I have written the rules makes sense other than the staking?
britguy
Posts: 22
Joined: Fri Dec 08, 2017 4:44 pm

hi

Yes any SP bet below the minimum stake will be rejected by Betfair.

Dallas, I think the Betfair minimum back stake for an SP Bet is now £1.00 not £2.00.
It was reduced fairly recently.

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

britguy wrote:
Wed Mar 16, 2022 7:44 pm
hi

Yes any SP bet below the minimum stake will be rejected by Betfair.

Dallas, I think the Betfair minimum back stake for an SP Bet is now £1.00 not £2.00.
It was reduced fairly recently.

Regards
I know the regular min stake was reduced to £1 a few weeks back but wasn't sure if that applied to SP bets
User avatar
Dallas
Posts: 23597
Joined: Sun Aug 09, 2015 10:57 pm

delghisallo wrote:
Wed Mar 16, 2022 7:42 pm
Dallas wrote:
Wed Mar 16, 2022 5:33 pm
What stake size are you using?

The minimum SP stake Betfair will accept is £2
any orders below that will be rejected
Thanks Dallas

For the purposes of testing the rules I was using 10p stakes. So I can increase that to £2. Did the way I have written the rules makes sense other than the staking?
I haven't had chance to look at your file, it was just a guess from experience that when bets involving SP are not triggering 90% of the time its due to the stake not meeting Betfairs min requirement

If I remember i'll take a look in the morning while i'm getting set up, if I haven't posted back by lunchtime or if no one else has looked before then give the thread a nudge later in the afternoon and i'll look when i'm finished Chelt tomorrow
delghisallo
Posts: 53
Joined: Mon Nov 18, 2013 8:45 pm

Dallas wrote:
Wed Mar 16, 2022 9:43 pm
delghisallo wrote:
Wed Mar 16, 2022 7:42 pm
Dallas wrote:
Wed Mar 16, 2022 5:33 pm
What stake size are you using?

The minimum SP stake Betfair will accept is £2
any orders below that will be rejected
Thanks Dallas

For the purposes of testing the rules I was using 10p stakes. So I can increase that to £2. Did the way I have written the rules makes sense other than the staking?
I haven't had chance to look at your file, it was just a guess from experience that when bets involving SP are not triggering 90% of the time its due to the stake not meeting Betfairs min requirement

If I remember i'll take a look in the morning while i'm getting set up, if I haven't posted back by lunchtime or if no one else has looked before then give the thread a nudge later in the afternoon and i'll look when i'm finished Chelt tomorrow
Just sending a nudge as requested :)
User avatar
Dallas
Posts: 23597
Joined: Sun Aug 09, 2015 10:57 pm

delghisallo wrote:
Thu Mar 17, 2022 5:50 pm
Dallas wrote:
Wed Mar 16, 2022 9:43 pm
delghisallo wrote:
Wed Mar 16, 2022 7:42 pm


Thanks Dallas

For the purposes of testing the rules I was using 10p stakes. So I can increase that to £2. Did the way I have written the rules makes sense other than the staking?
I haven't had chance to look at your file, it was just a guess from experience that when bets involving SP are not triggering 90% of the time its due to the stake not meeting Betfairs min requirement

If I remember i'll take a look in the morning while i'm getting set up, if I haven't posted back by lunchtime or if no one else has looked before then give the thread a nudge later in the afternoon and i'll look when i'm finished Chelt tomorrow
Just sending a nudge as requested :)
Thanks

Just had a quick check and everything looks fine as far as I can see
The only thing I would possible change is the arm time of the stop bet rule to a min of 2 secs
That's just to prevent any false triggers when the market thins out as soon as it goes in-running, from 2 secs onwards it should have settled down
delghisallo
Posts: 53
Joined: Mon Nov 18, 2013 8:45 pm

Dallas wrote:
Thu Mar 17, 2022 6:30 pm
delghisallo wrote:
Thu Mar 17, 2022 5:50 pm
Dallas wrote:
Wed Mar 16, 2022 9:43 pm


I haven't had chance to look at your file, it was just a guess from experience that when bets involving SP are not triggering 90% of the time its due to the stake not meeting Betfairs min requirement

If I remember i'll take a look in the morning while i'm getting set up, if I haven't posted back by lunchtime or if no one else has looked before then give the thread a nudge later in the afternoon and i'll look when i'm finished Chelt tomorrow
Just sending a nudge as requested :)
Thanks

Just had a quick check and everything looks fine as far as I can see
The only thing I would possible change is the arm time of the stop bet rule to a min of 2 secs
That's just to prevent any false triggers when the market thins out as soon as it goes in-running, from 2 secs onwards it should have settled down
Brilliant thanks very much Dallas....I'll change the staking and arm time of the stop rule and give it a go in tomorrows market :)
delghisallo
Posts: 53
Joined: Mon Nov 18, 2013 8:45 pm

I'm not sure this is working correctly...heres the log for a market I tried it in.....

18/03/2022 13:29:01: [G_Auto 1] : £ 2.00 Back bet placed on Vauban at 250. Entirely unmatched when it initially reached the market. Ref: 261956889473
18/03/2022 13:29:50: [G_Auto 1] : Modify bet persistence 261956889473 from 'Cancel' to 'Take SP'


18/03/2022 13:31:59: Guardian has detected that the market is suspended
18/03/2022 13:32:02: Guardian has detected that the market is in-play
18/03/2022 13:32:03: Guardian has detected that the market is now unsuspended
18/03/2022 13:32:06: [G_Auto 1] : Placed closure bet with greening on Vauban by Laying 1.97 at 2.64
18/03/2022 13:32:09: [G_Auto 1] : Placed closure bet with greening on Vauban by Laying 1.95 at 2.66
18/03/2022 13:36:10: Guardian has detected that the market is suspended

My observations.....

It appears to be placing multiple lay bets 3 seconds after the market goes in-play rather than what I was hoping would happen, which was either a lay bet is placed if the odds move15 ticks below SP or a stop 12 ticks above the SP. In the above log the SP was 2.60

Also is there a way of canceling the original back bet if the SP is higher than say 10 or below 2? But takes SP if the odds are between the range?

thanks

Delghisallo
delghisallo
Posts: 53
Joined: Mon Nov 18, 2013 8:45 pm

delghisallo wrote:
Fri Mar 18, 2022 5:36 pm
I'm not sure this is working correctly...heres the log for a market I tried it in.....

18/03/2022 13:29:01: [G_Auto 1] : £ 2.00 Back bet placed on Vauban at 250. Entirely unmatched when it initially reached the market. Ref: 261956889473
18/03/2022 13:29:50: [G_Auto 1] : Modify bet persistence 261956889473 from 'Cancel' to 'Take SP'


18/03/2022 13:31:59: Guardian has detected that the market is suspended
18/03/2022 13:32:02: Guardian has detected that the market is in-play
18/03/2022 13:32:03: Guardian has detected that the market is now unsuspended
18/03/2022 13:32:06: [G_Auto 1] : Placed closure bet with greening on Vauban by Laying 1.97 at 2.64
18/03/2022 13:32:09: [G_Auto 1] : Placed closure bet with greening on Vauban by Laying 1.95 at 2.66
18/03/2022 13:36:10: Guardian has detected that the market is suspended

My observations.....

It appears to be placing multiple lay bets 3 seconds after the market goes in-play rather than what I was hoping would happen, which was either a lay bet is placed if the odds move15 ticks below SP or a stop 12 ticks above the SP. In the above log the SP was 2.60

Also is there a way of canceling the original back bet if the SP is higher than say 10 or below 2? But takes SP if the odds are between the range?

thanks

Delghisallo
Any chance someone could cast their eyes over this and see where I'm going wrong?

Thanks

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

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
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

delghisallo wrote:
Fri Mar 18, 2022 5:36 pm
Also is there a way of canceling the original back bet if the SP is higher than say 10 or below 2? But takes SP if the odds are between the range?
You obviously can't cancel a bet after its been matched as that would be kind of unfair on the person who'd matched it, but you can either choose to either place your sp bet (at 1000) or not place it/cancel it depending on what you estimate BSP will be. The way you'd do that would be to make an assumption that at any given time, if the race were to start, then the SP will most likely be in the current back/lay price spread. You'd then place or cancel your sp bet as that price moves in and out of your required price range.
delghisallo
Posts: 53
Joined: Mon Nov 18, 2013 8:45 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!!
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

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
Post Reply

Return to “Bet Angel - Automation”