I am trying to automate an in play L2B strategy.
Currently using Set Stored Values to read my selections from a CSV.
In that CSV I have a percentage figure that I use to calculate my entry point. I would like to be able to store the BSP which I know is possible, but then be able to re-read the CSV to grab the % and calculate BSP * % = entry point. A lay is then placed at those odds and I can trade out for X ticks profit and apply a stop loss.
I can’t seem to figure out how to do it or at all if this is even possible without Guardian.
Any help or pointers would be much appreciated
Store BSP and calculate bet using % in CSV
You are probably best off just reading the values from the CSV once, storing this in a SV at selection level, and then performing the calculations from within Guardian in your rules file when BSP is known.
So you’d have a rule to calculate STORED__%_VALUE * BSP. Store this as another value and then use it to place your lay bet at ‘Stored Value Price’.
Otherwise you need to do calculations on the fly outside of Guardian.
There will be other methods but I do similar things to this and it works well!
So you’d have a rule to calculate STORED__%_VALUE * BSP. Store this as another value and then use it to place your lay bet at ‘Stored Value Price’.
Otherwise you need to do calculations on the fly outside of Guardian.
There will be other methods but I do similar things to this and it works well!
-
delboy1234
- Posts: 8
- Joined: Wed Jul 22, 2020 2:04 pm
Amazing thanks for the quick reply. I will have a play now and see if I can get it to work
-
delboy1234
- Posts: 8
- Joined: Wed Jul 22, 2020 2:04 pm
Sorry if it’s obvious be how exactly do I set a rule to calculate Stored Value % * BSP? I have tried all sorts but I just cannot seem to figure it out
BSP isnt known till after the off, so you'd have to wait till then to do the calcsdelboy1234 wrote: ↑Wed Feb 18, 2026 8:17 pmSorry if it’s obvious be how exactly do I set a rule to calculate Stored Value % * BSP? I have tried all sorts but I just cannot seem to figure it out
-
delboy1234
- Posts: 8
- Joined: Wed Jul 22, 2020 2:04 pm
-
delboy1234
- Posts: 8
- Joined: Wed Jul 22, 2020 2:04 pm
Just following up here instead of starting a new thread.
Thanks to tommyc333 Guardian is doing the required calculation fine and placing the required lay bet.
Under conditions I have set a fixed odds condition of lay price greater than 1.5. It was designed to stop any 1.01 bets being offered to the market even if thats what my calculation suggested. But for some reason it is still placing 1.01 lays at large liability. Thankfully only in practice mode at the minute to iron out these problems. I cannot see why it is still placing them
Thanks to tommyc333 Guardian is doing the required calculation fine and placing the required lay bet.
Under conditions I have set a fixed odds condition of lay price greater than 1.5. It was designed to stop any 1.01 bets being offered to the market even if thats what my calculation suggested. But for some reason it is still placing 1.01 lays at large liability. Thankfully only in practice mode at the minute to iron out these problems. I cannot see why it is still placing them
You do not have the required permissions to view the files attached to this post.
