Recording selection prices

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
Goobs
Posts: 60
Joined: Thu Jul 10, 2025 4:01 pm

HI all,

I'm trying to get BA to record 2 prices of the top 3 horses. Taking the 1st price snapshot is easy, as I can sort by favouritism (top 3 by price), but how do I ensure my second set of prices is of the same selections, given that the odds could have moved significantly and the selections might not be in the same order now? :?:
User avatar
jamesedwards
Posts: 4580
Joined: Wed Nov 21, 2018 6:16 pm

Goobs wrote:
Fri Oct 10, 2025 2:27 pm
HI all,

I'm trying to get BA to record 2 prices of the top 3 horses. Taking the 1st price snapshot is easy, as I can sort by favouritism (top 3 by price), but how do I ensure my second set of prices is of the same selections, given that the odds could have moved significantly and the selections might not be in the same order now? :?:
Assuming you're saving the first set of prices as a stored value, use a condition on the second trigger that the original stored value on the selection has been set with a value.
Goobs
Posts: 60
Joined: Thu Jul 10, 2025 4:01 pm

Yes, I'm saving them as shared stored values.

If the original selections swap places in terms of odds, say 2nd and 3rd fave swap there will be no stored value for my origianl selection and it then wouldnt work?

Is there a way to store the horse name and select it for the second value based on that?
User avatar
jamesedwards
Posts: 4580
Joined: Wed Nov 21, 2018 6:16 pm

Goobs wrote:
Fri Oct 10, 2025 2:38 pm
Yes, I'm saving them as shared stored values.

If the original selections swap places in terms of odds, say 2nd and 3rd fave swap there will be no stored value for my origianl selection and it then wouldnt work?

Is there a way to store the horse name and select it for the second value based on that?
All you need to do is mark the top three horses with a signal or stored value at the same time as you capture the first set of prices. Then capture the second set of prices on 'every selection' based on the condition that they have the mark from the first capture.
Goobs
Posts: 60
Joined: Thu Jul 10, 2025 4:01 pm

ah nice, i'll try that out thanks!
Goobs
Posts: 60
Joined: Thu Jul 10, 2025 4:01 pm

I can't seem to get that to work, this also makes displaying the recorded odds in Guardian harder that requires a known selection etc....

Is there not a way to set the automation-nominated selections based on my first set of data capture?
User avatar
jamesedwards
Posts: 4580
Joined: Wed Nov 21, 2018 6:16 pm

Goobs wrote:
Fri Oct 10, 2025 4:13 pm
I can't seem to get that to work, this also makes displaying the recorded odds in Guardian harder that requires a known selection etc....

Is there not a way to set the automation-nominated selections based on my first set of data capture?
Another way to do it would be to use the 'fix the order of selections' just before the first set of data is taken.
Goobs
Posts: 60
Joined: Thu Jul 10, 2025 4:01 pm

Would that not fix them in the current betfair order and not in order of favouritism though...?
User avatar
jamesedwards
Posts: 4580
Joined: Wed Nov 21, 2018 6:16 pm

Goobs wrote:
Fri Oct 10, 2025 4:19 pm
Would that not fix them in the current betfair order and not in order of favouritism though...?
No.

But the best way to do it is the first way I mentioned.

Like this (not tested).
test 1.baf
You do not have the required permissions to view the files attached to this post.
Goobs
Posts: 60
Joined: Thu Jul 10, 2025 4:01 pm

thanks mate, just testing it out now
Goobs
Posts: 60
Joined: Thu Jul 10, 2025 4:01 pm

not sure why but it fired off the best back price collection twice, not sure why its only set to trigger once at 10 mins before start time?!

10/10/2025 16:55:00: [G_Auto 1] : Store Value (Shared) for The Electrical Kid: best back price = 1.85
10/10/2025 16:55:00: [G_Auto 1] : Store Value (Shared) for Seskin Flash: best back price = 7
10/10/2025 16:55:00: [G_Auto 1] : Store Value (Shared) for Tell Us This: best back price = 9
10/10/2025 17:03:17: [G_Auto 1] : Store Value (Shared) for The Electrical Kid: best back price = 2
10/10/2025 17:03:17: [G_Auto 1] : Store Value (Shared) for Tell Us This: best back price = 5.7
10/10/2025 17:03:17: [G_Auto 1] : Store Value (Shared) for Sophia Rose: best back price = 9.4
10/10/2025 17:04:50: [G_Auto 1] : Store Value (Shared) for The Electrical Kid: best back price 2 = 1.79
10/10/2025 17:04:50: [G_Auto 1] : Store Value (Shared) for Seskin Flash: best back price 2 = 10.5
10/10/2025 17:04:50: [G_Auto 1] : Store Value (Shared) for Tell Us This: best back price 2 = 7
10/10/2025 17:04:50: [G_Auto 1] : Store Value (Shared) for Sophia Rose: best back price 2 = 9
User avatar
jamesedwards
Posts: 4580
Joined: Wed Nov 21, 2018 6:16 pm

Goobs wrote:
Fri Oct 10, 2025 5:09 pm
not sure why but it fired off the best back price collection twice, not sure why its only set to trigger once at 10 mins before start time?!

10/10/2025 16:55:00: [G_Auto 1] : Store Value (Shared) for The Electrical Kid: best back price = 1.85
10/10/2025 16:55:00: [G_Auto 1] : Store Value (Shared) for Seskin Flash: best back price = 7
10/10/2025 16:55:00: [G_Auto 1] : Store Value (Shared) for Tell Us This: best back price = 9
10/10/2025 17:03:17: [G_Auto 1] : Store Value (Shared) for The Electrical Kid: best back price = 2
10/10/2025 17:03:17: [G_Auto 1] : Store Value (Shared) for Tell Us This: best back price = 5.7
10/10/2025 17:03:17: [G_Auto 1] : Store Value (Shared) for Sophia Rose: best back price = 9.4
10/10/2025 17:04:50: [G_Auto 1] : Store Value (Shared) for The Electrical Kid: best back price 2 = 1.79
10/10/2025 17:04:50: [G_Auto 1] : Store Value (Shared) for Seskin Flash: best back price 2 = 10.5
10/10/2025 17:04:50: [G_Auto 1] : Store Value (Shared) for Tell Us This: best back price 2 = 7
10/10/2025 17:04:50: [G_Auto 1] : Store Value (Shared) for Sophia Rose: best back price 2 = 9
It works fine for me. You must have changed something? Attach the rulefile you're using here.
User avatar
jamesedwards
Posts: 4580
Joined: Wed Nov 21, 2018 6:16 pm

jamesedwards wrote:
Fri Oct 10, 2025 5:14 pm
Goobs wrote:
Fri Oct 10, 2025 5:09 pm
not sure why but it fired off the best back price collection twice, not sure why its only set to trigger once at 10 mins before start time?!

10/10/2025 16:55:00: [G_Auto 1] : Store Value (Shared) for The Electrical Kid: best back price = 1.85
10/10/2025 16:55:00: [G_Auto 1] : Store Value (Shared) for Seskin Flash: best back price = 7
10/10/2025 16:55:00: [G_Auto 1] : Store Value (Shared) for Tell Us This: best back price = 9
10/10/2025 17:03:17: [G_Auto 1] : Store Value (Shared) for The Electrical Kid: best back price = 2
10/10/2025 17:03:17: [G_Auto 1] : Store Value (Shared) for Tell Us This: best back price = 5.7
10/10/2025 17:03:17: [G_Auto 1] : Store Value (Shared) for Sophia Rose: best back price = 9.4
10/10/2025 17:04:50: [G_Auto 1] : Store Value (Shared) for The Electrical Kid: best back price 2 = 1.79
10/10/2025 17:04:50: [G_Auto 1] : Store Value (Shared) for Seskin Flash: best back price 2 = 10.5
10/10/2025 17:04:50: [G_Auto 1] : Store Value (Shared) for Tell Us This: best back price 2 = 7
10/10/2025 17:04:50: [G_Auto 1] : Store Value (Shared) for Sophia Rose: best back price 2 = 9
It works fine for me. You must have changed something? Attach the rulefile you're using here.
... or perhaps you saved or reapplyed the rulefile at 17:03:17 ???
Goobs
Posts: 60
Joined: Thu Jul 10, 2025 4:01 pm

Ah yes maybe thats what happened, as I added a calculation to subtract the odds from eachother!

10/10/2025 17:15:00: [G_Auto 1] : Store Value (Shared) for Flawless Fusion: best back price = 4.1
10/10/2025 17:15:00: [G_Auto 1] : Store Value (Shared) for Lucia Molly: best back price = 6.8
10/10/2025 17:15:00: [G_Auto 1] : Store Value (Shared) for Luahna: best back price = 7.2
10/10/2025 17:24:50: [G_Auto 1] : Store Value (Shared) for Flawless Fusion: best back price 2 = 3.9
10/10/2025 17:24:50: [G_Auto 1] : Store Value (Shared) for Luahna: best back price 2 = 7
10/10/2025 17:24:50: [G_Auto 1] : Store Value (Shared) for Lucia Molly: best back price 2 = 4.9
10/10/2025 17:24:55: [G_Auto 1] : Store Value (Shared) for Flawless Fusion: Data Calc = 4.1 - 3.9 = 0.2
10/10/2025 17:24:55: [G_Auto 1] : Store Value (Shared) for Luahna: Data Calc = 7.2 - 7 = 0.2
10/10/2025 17:24:55: [G_Auto 1] : Store Value (Shared) for Lucia Molly: Data Calc = 6.8 - 4.9 = 1.9

Thanks for taking the time to help with this James, much appericated!
Goobs
Posts: 60
Joined: Thu Jul 10, 2025 4:01 pm

Hi James,
If I return the odds differential with Data Calc as my stored value, and I get 2 or more selections with odds difference >= 1.2, how could I only place the bet on the selection with the greatest difference?
See attached for my current version.

12/10/2025 14:25:00: [G_Auto 1]: Store Value (Shared) for Madbadanddangerous: best back price = 4.5
12/10/2025 14:25:00: [G_Auto 1] Store Value (Shared) for Green Citation: best back price = 5.8
12/10/2025 14:25:00: [G_Auto 1] : Store Value (Shared) for Alphecca: best back price = 6.2
12/10/2025 14:34:50: [G_Auto 1]: Store Value (Shared) for Madbadanddangerous: best back price 2 = 6.6
12/10/2025 14:34:50: [G_Auto 1] Store Value (Shared) for Green Citation: best back price 2 = 4.5
12/10/2025 14:34:50: [G_Auto 1] : Store Value (Shared) for Alphecca: best back price 2 = 4.6
12/10/2025 14:34:55: [G_Auto 1] : Store Value (Shared) for Madbadanddangerous: Data Calc = 4.5 - 6.6 = -2.1
12/10/2025 14:34:55: [G_Auto 1] : Store Value (Shared) for Green Citation: Data Calc = 5.8 - 4.5 = 1.3
12/10/2025 14:34:55: [G_Auto 1] : Store Value (Shared) for Alphecca: Data Calc = 6.2 - 4.6 = 1.6

12/10/2025 14:34:55: [G_Auto 1] : £ 1.00 Back bet placed on Green Citation at 4.6. Fully matched at 4.6.

Like this example it should have really placed the bet on Alphecca as its odds differance was >=1.2 but also larger than the odds differance on Green Citation.

cheers
Goobs
You do not have the required permissions to view the files attached to this post.
Post Reply

Return to “Bet Angel - Automation”