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
Help with B2L taking SP
-
- Posts: 53
- Joined: Mon Nov 18, 2013 8:45 pm
You do not have the required permissions to view the files attached to this post.
-
- Posts: 53
- Joined: Mon Nov 18, 2013 8:45 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 know the regular min stake was reduced to £1 a few weeks back but wasn't sure if that applied to SP bets
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 requirementdelghisallo wrote: ↑Wed Mar 16, 2022 7:42 pmThanks 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?
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
-
- Posts: 53
- Joined: Mon Nov 18, 2013 8:45 pm
Just sending a nudge as requestedDallas wrote: ↑Wed Mar 16, 2022 9:43 pmI 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 requirementdelghisallo wrote: ↑Wed Mar 16, 2022 7:42 pmThanks 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?
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

Thanksdelghisallo wrote: ↑Thu Mar 17, 2022 5:50 pmJust sending a nudge as requestedDallas wrote: ↑Wed Mar 16, 2022 9:43 pmI 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 requirementdelghisallo 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?
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 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
-
- Posts: 53
- Joined: Mon Nov 18, 2013 8:45 pm
Brilliant thanks very much Dallas....I'll change the staking and arm time of the stop rule and give it a go in tomorrows marketDallas wrote: ↑Thu Mar 17, 2022 6:30 pmThanksdelghisallo wrote: ↑Thu Mar 17, 2022 5:50 pmJust sending a nudge as requestedDallas 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 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

-
- 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
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
-
- Posts: 53
- Joined: Mon Nov 18, 2013 8:45 pm
Any chance someone could cast their eyes over this and see where I'm going wrong?delghisallo wrote: ↑Fri Mar 18, 2022 5:36 pmI'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
Thanks
Delghisallo
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
Give that a go in PM and let me know if there's any problems
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
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.
- ShaunWhite
- Posts: 10576
- Joined: Sat Sep 03, 2016 3:42 am
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 wrote: ↑Fri Mar 18, 2022 5:36 pmAlso 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?
-
- Posts: 53
- Joined: Mon Nov 18, 2013 8:45 pm
Thanks Dallas,Dallas wrote: ↑Mon Mar 21, 2022 10:38 amSorry 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
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.
The 'Last Traded Price of a Selection' is under the 'Lay price of a selection' in your screen shotdelghisallo wrote: ↑Mon Mar 21, 2022 12:59 pmThanks Dallas,Dallas wrote: ↑Mon Mar 21, 2022 10:38 amSorry 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
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!!
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