B2L - Back at BSP and place 3 lay bets as price shortens

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
User avatar
flavenge
Posts: 13
Joined: Mon Aug 24, 2020 5:25 pm

Hi Dallas
I'm sure you can help so some guidance would be useful please. I can't find a template baf file for this, although I'd be surprised if it hasn't been done before...
I'd like to back a nominated horse at a certain price just before the start of the race, and then to lay the same horse in up to 3 separate bets at 10, 25 and 50 ticks below that back price.
So I back the chosen horse for £30, then I lay 10 ticks below the back price for £10, at 25 ticks below the back price for another £10 and at 50 ticks below the back price for the final £10.
I suspect I will need to store the value of the back bet, and then place 3 lays but clarification would really help.
If any or all of the lay bets don't match, then the relevant lay bet will lapse - obviously if the horse doesn't win the race and none of the lay bets match then I will lose £30.
Thank you
User avatar
Dallas
Posts: 23596
Joined: Sun Aug 09, 2015 10:57 pm

There is an example here which shows the general principal
viewtopic.php?f=56&t=12284

However as you can't use offset bets from a BSP bet you'll need to use Stored values as you suspected

So you'd start with a 'Place SP back bet rule'
On the stored value tab store the value of the selections Actual SP (with any name you want ie, offset_1)
minus 10 ticks
adjusted by rounding to the nearest vaild price

Then add another stored value to the same rule changing just the name (ie, offset_2)
this time minus 25 ticks

and do the same for the third

Then add 3 place lay bets rules, and for the first on the parameters tab for place at use
Stored value name offset_1 (or whatever name you used

on the second place lay bets rule, on the parameters tab for place at use
Stored value name offset_2 (or whatever name you used

than do the same for the 3rd
User avatar
flavenge
Posts: 13
Joined: Mon Aug 24, 2020 5:25 pm

Thanks Dallas! - I'll give it a try
User avatar
flavenge
Posts: 13
Joined: Mon Aug 24, 2020 5:25 pm

Dallas - I've been trialling this but the problem is that often the lay bets don't match at the specified number of ticks below BSP.
Is there a way of altering the automation (perhaps by changing the stored values?) so that each lay bet matches within a range, e.g., rather than laying at exactly 10 ticks below BSP, it could match at say 8-12 ticks below BSP?
Thank you.
User avatar
Dallas
Posts: 23596
Joined: Sun Aug 09, 2015 10:57 pm

flavenge wrote:
Sat Oct 21, 2023 11:07 am
Dallas - I've been trialling this but the problem is that often the lay bets don't match at the specified number of ticks below BSP.
Is there a way of altering the automation (perhaps by changing the stored values?) so that each lay bet matches within a range, e.g., rather than laying at exactly 10 ticks below BSP, it could match at say 8-12 ticks below BSP?
Thank you.
If the lay bets are placed at the stored value prices (ie, 10, 25, 50 ticks below BSP) they'll be matched at exactly those price

Its only if you use a Stored value condition on your lay bet rule and have it trigger when the price trades at or below the price held by the stored value, it will still be placed at the SV price but as Betfair will always match you at the best prices if it continues to shorten by the time the bet delay passes you could end up with the lay bet matched several ticks lower than it was placed at
Post Reply

Return to “Bet Angel - Automation”