Store BSP and calculate bet using % in CSV

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
delboy1234
Posts: 6
Joined: Wed Jul 22, 2020 2:04 pm

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
tommyc333
Posts: 69
Joined: Fri Feb 07, 2020 3:58 pm

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!
delboy1234
Posts: 6
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: 6
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
tommyc333
Posts: 69
Joined: Fri Feb 07, 2020 3:58 pm

Something like this would do it.

You need to store your new (calculated) stored value by multiplying your original stored value by the BSP.
You do not have the required permissions to view the files attached to this post.
Post Reply

Return to “Bet Angel - Automation”