How to Link Markets Using Shared Stored Values - Step by Step

Share your automation file with other users.
User avatar
jamesedwards
Posts: 4239
Joined: Wed Nov 21, 2018 6:16 pm

stopfordian wrote:
Thu Jul 31, 2025 1:46 pm
jamesedwards wrote:
Thu Jul 31, 2025 1:17 pm
stopfordian wrote:
Thu Jul 31, 2025 12:45 pm
Hi, hope someone can help!

I've tried replicating the rules from the original post but I've just got a little stuck!

I want to lay the O3.5 goals market before kick-off, but only if the price on the home team has come in since a fixed earlier time.

I've created 2 rules. The first is to store the price of the home team which I'll apply to the Match Odds market, I think I've done that right. The second rule is to place the lay bet so that'll be applied against the O3.5 Goals market. The bit I'm stuck at is on the lay bet rule where you add the SV condition in the 'Conditions' tab, I'm not sure if it's correct but also I can't get my head around how it knows to check the Match Odds market? Is it because it's shared and it's against the event?

Thanks in advance.
An SV stored at event level can be read by any other market under the same event. So you might choose to trigger an event level SV to = 1 if the home team price reaches your set criteria, then use that same SV must = 1 condition in your O3.5 goals market rule.
Thanks for replying, James.

So what I've got is a new rule to store a price to trigger at 8am. Then in the SV tab, I've named the value and shared it for the event for the best back price in row 1 (home team). Done (I think). Does that just then record the price somewhere? I don't know how it works.

The second rule is to place a lay bet before kick-off within a certain price bracket in row 2 (Over 3.5 goals). Then in the 'Conditions' tab, I've added an SV condition, put the name in that I named it, for the event, then I've put 'greater than' the 'best back price for a selection', but then it asks for the row - I've put row 1 as that's the row the home team is on in Match Odds, but this rule will be applied against the goals market?? That's what is confusing me.

Apologies to go through it all again!
The only communication between the two markets is the number in the SV saved at event level. This is the only number you can look up, so you need a condition that the SV at event level is greater or lower than your desired threshold.
stopfordian
Posts: 14
Joined: Thu Oct 07, 2021 3:55 pm

jamesedwards wrote:
Thu Jul 31, 2025 1:54 pm
stopfordian wrote:
Thu Jul 31, 2025 1:46 pm
jamesedwards wrote:
Thu Jul 31, 2025 1:17 pm


An SV stored at event level can be read by any other market under the same event. So you might choose to trigger an event level SV to = 1 if the home team price reaches your set criteria, then use that same SV must = 1 condition in your O3.5 goals market rule.
Thanks for replying, James.

So what I've got is a new rule to store a price to trigger at 8am. Then in the SV tab, I've named the value and shared it for the event for the best back price in row 1 (home team). Done (I think). Does that just then record the price somewhere? I don't know how it works.

The second rule is to place a lay bet before kick-off within a certain price bracket in row 2 (Over 3.5 goals). Then in the 'Conditions' tab, I've added an SV condition, put the name in that I named it, for the event, then I've put 'greater than' the 'best back price for a selection', but then it asks for the row - I've put row 1 as that's the row the home team is on in Match Odds, but this rule will be applied against the goals market?? That's what is confusing me.

Apologies to go through it all again!
The only communication between the two markets is the number in the SV saved at event level. This is the only number you can look up, so you need a condition that the SV at event level is greater or lower than your desired threshold.
I'll give it a go and test it. Thanks again.
User avatar
jamesedwards
Posts: 4239
Joined: Wed Nov 21, 2018 6:16 pm

stopfordian wrote:
Thu Jul 31, 2025 2:03 pm
jamesedwards wrote:
Thu Jul 31, 2025 1:54 pm
stopfordian wrote:
Thu Jul 31, 2025 1:46 pm


Thanks for replying, James.

So what I've got is a new rule to store a price to trigger at 8am. Then in the SV tab, I've named the value and shared it for the event for the best back price in row 1 (home team). Done (I think). Does that just then record the price somewhere? I don't know how it works.

The second rule is to place a lay bet before kick-off within a certain price bracket in row 2 (Over 3.5 goals). Then in the 'Conditions' tab, I've added an SV condition, put the name in that I named it, for the event, then I've put 'greater than' the 'best back price for a selection', but then it asks for the row - I've put row 1 as that's the row the home team is on in Match Odds, but this rule will be applied against the goals market?? That's what is confusing me.

Apologies to go through it all again!
The only communication between the two markets is the number in the SV saved at event level. This is the only number you can look up, so you need a condition that the SV at event level is greater or lower than your desired threshold.
I'll give it a go and test it. Thanks again.
You might find it easier to use the SV as a yes or no indicator. ie if the price in market A reaches required threshold then make the SV at event level = 1, else make it = 0.

Then in market B use a condition that the SV = 1.
stopfordian
Posts: 14
Joined: Thu Oct 07, 2021 3:55 pm

jamesedwards wrote:
Thu Jul 31, 2025 2:05 pm
stopfordian wrote:
Thu Jul 31, 2025 2:03 pm
jamesedwards wrote:
Thu Jul 31, 2025 1:54 pm


The only communication between the two markets is the number in the SV saved at event level. This is the only number you can look up, so you need a condition that the SV at event level is greater or lower than your desired threshold.
I'll give it a go and test it. Thanks again.
You might find it easier to use the SV as a yes or no indicator. ie if the price in market A reaches required threshold then make the SV at event level = 1, else make it = 0.

Then in market B use a condition that the SV = 1.
There isn't an actual threshold. It's just place the lay bet in the goals market if the price on the home team is lower than it was at 8am. I just need it to compare the SV to the current back price of the home team. I was just struggling to understand where to point it to check.
User avatar
jamesedwards
Posts: 4239
Joined: Wed Nov 21, 2018 6:16 pm

stopfordian wrote:
Thu Jul 31, 2025 2:19 pm
jamesedwards wrote:
Thu Jul 31, 2025 2:05 pm
stopfordian wrote:
Thu Jul 31, 2025 2:03 pm


I'll give it a go and test it. Thanks again.
You might find it easier to use the SV as a yes or no indicator. ie if the price in market A reaches required threshold then make the SV at event level = 1, else make it = 0.

Then in market B use a condition that the SV = 1.
There isn't an actual threshold. It's just place the lay bet in the goals market if the price on the home team is lower than it was at 8am. I just need it to compare the SV to the current back price of the home team. I was just struggling to understand where to point it to check.
So in market A have a rule that says if the home team price at time X is less than it was at time Y then make SV @ event level = 1.

In market B have a rule that triggers your bet on the condition that the SV @ event level = 1.
stopfordian
Posts: 14
Joined: Thu Oct 07, 2021 3:55 pm

jamesedwards wrote:
Thu Jul 31, 2025 2:33 pm
stopfordian wrote:
Thu Jul 31, 2025 2:19 pm
jamesedwards wrote:
Thu Jul 31, 2025 2:05 pm


You might find it easier to use the SV as a yes or no indicator. ie if the price in market A reaches required threshold then make the SV at event level = 1, else make it = 0.

Then in market B use a condition that the SV = 1.
There isn't an actual threshold. It's just place the lay bet in the goals market if the price on the home team is lower than it was at 8am. I just need it to compare the SV to the current back price of the home team. I was just struggling to understand where to point it to check.
So in market A have a rule that says if the home team price at time X is less than it was at time Y then make SV @ event level = 1.

In market B have a rule that triggers your bet on the condition that the SV @ event level = 1.
Ok, I kind of get what you mean. Makes sense.

So Market A (which will be Match Odds) will be a rule for the SV at 8am but then also have a rule that compares that price with the current one just before kick-off? What is =1?
User avatar
jamesedwards
Posts: 4239
Joined: Wed Nov 21, 2018 6:16 pm

stopfordian wrote:
Thu Jul 31, 2025 2:48 pm
jamesedwards wrote:
Thu Jul 31, 2025 2:33 pm
stopfordian wrote:
Thu Jul 31, 2025 2:19 pm


There isn't an actual threshold. It's just place the lay bet in the goals market if the price on the home team is lower than it was at 8am. I just need it to compare the SV to the current back price of the home team. I was just struggling to understand where to point it to check.
So in market A have a rule that says if the home team price at time X is less than it was at time Y then make SV @ event level = 1.

In market B have a rule that triggers your bet on the condition that the SV @ event level = 1.
Ok, I kind of get what you mean. Makes sense.

So Market A (which will be Match Odds) will be a rule for the SV at 8am but then also have a rule that compares that price with the current one just before kick-off? What is =1?
Nope, you don't need an event level SV until you know that the price requirements in market A have been met.

In market A if price conditions have been met then at that point you set the SV @ event level to 1.

In market B you have a condition that the SV @ event level must equal 1 to trigger, so it will only trigger a bet if the price conditions in market A have been met.
stopfordian
Posts: 14
Joined: Thu Oct 07, 2021 3:55 pm

jamesedwards wrote:
Thu Jul 31, 2025 3:20 pm
stopfordian wrote:
Thu Jul 31, 2025 2:48 pm
jamesedwards wrote:
Thu Jul 31, 2025 2:33 pm


So in market A have a rule that says if the home team price at time X is less than it was at time Y then make SV @ event level = 1.

In market B have a rule that triggers your bet on the condition that the SV @ event level = 1.
Ok, I kind of get what you mean. Makes sense.

So Market A (which will be Match Odds) will be a rule for the SV at 8am but then also have a rule that compares that price with the current one just before kick-off? What is =1?
Nope, you don't need an event level SV until you know that the price requirements in market A have been met.

In market A if price conditions have been met then at that point you set the SV @ event level to 1.

In market B you have a condition that the SV @ event level must equal 1 to trigger, so it will only trigger a bet if the price conditions in market A have been met.
Ok, I'm struggling.

How many automation files in total would I have? 1 in Match Odds and 1 in Over 3.5 Goals market?

The first file, with the rule to store the price, works. I'm struggling on the price check bit. Would that be a condition, signal or stored value and would it be a second rule in the first file or a new file of it's own?

Any help would be appreciated.
User avatar
jamesedwards
Posts: 4239
Joined: Wed Nov 21, 2018 6:16 pm

stopfordian wrote:
Mon Aug 04, 2025 10:13 pm
jamesedwards wrote:
Thu Jul 31, 2025 3:20 pm
stopfordian wrote:
Thu Jul 31, 2025 2:48 pm


Ok, I kind of get what you mean. Makes sense.

So Market A (which will be Match Odds) will be a rule for the SV at 8am but then also have a rule that compares that price with the current one just before kick-off? What is =1?
Nope, you don't need an event level SV until you know that the price requirements in market A have been met.

In market A if price conditions have been met then at that point you set the SV @ event level to 1.

In market B you have a condition that the SV @ event level must equal 1 to trigger, so it will only trigger a bet if the price conditions in market A have been met.
Ok, I'm struggling.

How many automation files in total would I have? 1 in Match Odds and 1 in Over 3.5 Goals market?

The first file, with the rule to store the price, works. I'm struggling on the price check bit. Would that be a condition, signal or stored value and would it be a second rule in the first file or a new file of it's own?

Any help would be appreciated.
The less complex way would be to have two separate rule files, one for each market type. But it's easier to administrate if you have one rules file applied to both markets, with individual lines conditioned to only trigger on the relevant market type. Like this...
test 18.baf
You do not have the required permissions to view the files attached to this post.
stopfordian
Posts: 14
Joined: Thu Oct 07, 2021 3:55 pm

jamesedwards wrote:
Mon Aug 04, 2025 11:18 pm
stopfordian wrote:
Mon Aug 04, 2025 10:13 pm
jamesedwards wrote:
Thu Jul 31, 2025 3:20 pm


Nope, you don't need an event level SV until you know that the price requirements in market A have been met.

In market A if price conditions have been met then at that point you set the SV @ event level to 1.

In market B you have a condition that the SV @ event level must equal 1 to trigger, so it will only trigger a bet if the price conditions in market A have been met.
Ok, I'm struggling.

How many automation files in total would I have? 1 in Match Odds and 1 in Over 3.5 Goals market?

The first file, with the rule to store the price, works. I'm struggling on the price check bit. Would that be a condition, signal or stored value and would it be a second rule in the first file or a new file of it's own?

Any help would be appreciated.
The less complex way would be to have two separate rule files, one for each market type. But it's easier to administrate if you have one rules file applied to both markets, with individual lines conditioned to only trigger on the relevant market type. Like this...
test 18.baf
Really appreciate that, thanks. I wouldn't have thought to do it like that.

So my home back price has to be taken at 8am and the lay bet, if placed, has to be triggered at 5 minutes before kick-off - can I just alter that on the general tab in this file, or would more have to be changed?

Thanks again :)
User avatar
jamesedwards
Posts: 4239
Joined: Wed Nov 21, 2018 6:16 pm

stopfordian wrote:
Tue Aug 05, 2025 4:22 pm
jamesedwards wrote:
Mon Aug 04, 2025 11:18 pm
stopfordian wrote:
Mon Aug 04, 2025 10:13 pm


Ok, I'm struggling.

How many automation files in total would I have? 1 in Match Odds and 1 in Over 3.5 Goals market?

The first file, with the rule to store the price, works. I'm struggling on the price check bit. Would that be a condition, signal or stored value and would it be a second rule in the first file or a new file of it's own?

Any help would be appreciated.
The less complex way would be to have two separate rule files, one for each market type. But it's easier to administrate if you have one rules file applied to both markets, with individual lines conditioned to only trigger on the relevant market type. Like this...
test 18.baf
Really appreciate that, thanks. I wouldn't have thought to do it like that.

So my home back price has to be taken at 8am and the lay bet, if placed, has to be triggered at 5 minutes before kick-off - can I just alter that on the general tab in this file, or would more have to be changed?

Thanks again :)
Instead of comparing the prices of now vs 10800 seconds ago, you'll need to add another line that captures the price between 08:00 and 08:01 (to allow time for the refresh cycle to hit all markets) as a stored value. Then, a separate line to trigger 5 mins out that compares the current price with the stored value.

Like this...
test 19.baf
You do not have the required permissions to view the files attached to this post.
stopfordian
Posts: 14
Joined: Thu Oct 07, 2021 3:55 pm

jamesedwards wrote:
Tue Aug 05, 2025 4:39 pm
stopfordian wrote:
Tue Aug 05, 2025 4:22 pm
jamesedwards wrote:
Mon Aug 04, 2025 11:18 pm


The less complex way would be to have two separate rule files, one for each market type. But it's easier to administrate if you have one rules file applied to both markets, with individual lines conditioned to only trigger on the relevant market type. Like this...
test 18.baf
Really appreciate that, thanks. I wouldn't have thought to do it like that.

So my home back price has to be taken at 8am and the lay bet, if placed, has to be triggered at 5 minutes before kick-off - can I just alter that on the general tab in this file, or would more have to be changed?

Thanks again :)
Instead of comparing the prices of now vs 10800 seconds ago, you'll need to add another line that captures the price between 08:00 and 08:01 (to allow time for the refresh cycle to hit all markets) as a stored value. Then, a separate line to trigger 5 mins out that compares the current price with the stored value.

Like this...
test 19.baf
Brill, thanks. One thing I forgot is that the lay price on Over 3.5 goals has to be between 3 and 5 - I just need to add that condition into the lay bet rule don't i?
User avatar
jamesedwards
Posts: 4239
Joined: Wed Nov 21, 2018 6:16 pm

stopfordian wrote:
Tue Aug 05, 2025 5:01 pm
jamesedwards wrote:
Tue Aug 05, 2025 4:39 pm
stopfordian wrote:
Tue Aug 05, 2025 4:22 pm


Really appreciate that, thanks. I wouldn't have thought to do it like that.

So my home back price has to be taken at 8am and the lay bet, if placed, has to be triggered at 5 minutes before kick-off - can I just alter that on the general tab in this file, or would more have to be changed?

Thanks again :)
Instead of comparing the prices of now vs 10800 seconds ago, you'll need to add another line that captures the price between 08:00 and 08:01 (to allow time for the refresh cycle to hit all markets) as a stored value. Then, a separate line to trigger 5 mins out that compares the current price with the stored value.

Like this...
test 19.baf
Brill, thanks. One thing I forgot is that the lay price on Over 3.5 goals has to be between 3 and 5 - I just need to add that condition into the lay bet rule don't i?
Yes you can edit whatever you need. Just be sure to trial changes in practise mode in case of any errors.
stopfordian
Posts: 14
Joined: Thu Oct 07, 2021 3:55 pm

jamesedwards wrote:
Tue Aug 05, 2025 5:07 pm
stopfordian wrote:
Tue Aug 05, 2025 5:01 pm
jamesedwards wrote:
Tue Aug 05, 2025 4:39 pm


Instead of comparing the prices of now vs 10800 seconds ago, you'll need to add another line that captures the price between 08:00 and 08:01 (to allow time for the refresh cycle to hit all markets) as a stored value. Then, a separate line to trigger 5 mins out that compares the current price with the stored value.

Like this...
test 19.baf
Brill, thanks. One thing I forgot is that the lay price on Over 3.5 goals has to be between 3 and 5 - I just need to add that condition into the lay bet rule don't i?
Yes you can edit whatever you need. Just be sure to trial changes in practise mode in case of any errors.
Yes, I have been doing that. Thanks for your help, really appreciated!
Post Reply

Return to “Bet Angel Automation - Shared files”