I want to trigger a bet on a specific selection in a Horse Race TBP market, but based on a set of conditions in the Win Market for the same event.
So I have a rule file that sets a Stored Variable for the Selection called BackPlace to '999' in the Win Market if the conditions are met. I tick the Shared box for the stored value.
I then have a separate rules file for the TBP market for the same event that places a bet with the condition that the Stored Variable BackPlace for the Selection is equal to '999'.
However the rules file for the TBP market does not seem to pick this up so it doesn't work.
Am I doing something wrong or do I misunderstand the nature of shared stored values.
I am using BetAngel Version 1.52.0.
Any ideas?
Thanks in anticipation
Can't seem to get Shared Store Value to work
You need to store the value on the Event
There are some examples here you can check/copy from if needed
viewtopic.php?f=53&t=16239
viewtopic.php?f=52&t=17026
There are some examples here you can check/copy from if needed
viewtopic.php?f=53&t=16239
viewtopic.php?f=52&t=17026
Hi Dallas
First of all thank you for your response. It is much appreciated.
But, if I understand the approach you are showing here, the bottom line is that it is not possible to pass a selection specific stored value from one market to another within the same event. For horse racing this seems like a significant limitation in the software. It also begs the question what ticking the "Shared" box when setting a Selection Stored Variable actually achieves.
My challenge here is that the approach that you show only works for a maximum number of selections in the market. I need it to work for markets with any number of selections where any of those selections might qualify to be passed to the TBP market. That means I would need a separate rule file for each unique number of selections, say between 3 and 30, maybe even more. Not very flexible and a huge maintenance overhead.
I think I can see an alternative approach where you would only need 1 rule file for the Win and Place Market and it would work independently of how many selections were in the race. However, I think this will probably only work for flat races where there is a Stall Number. Pity there isn't a Cloth Number condition.
What you would do on the win side is have 1 Set / Modify Stored Value Rule for each possible stall number, say up to 30. You would then set each rule to trigger once for Any Selection. The rules logic would then be:
If Stall Number = 1 Set Stored Value Stall# for selection to 1
If Stall Number = 2 Set Stored Value Stall# for selection to 2
...
If Stall Number = 30 Set Stored Value Stall# for selection to 30
Then the rule that triggers the bet on the selection would set a Stored Value on Event to the Stall# Stored value for the selection.
Set Stored Value Stall#Event to Stall# for selection
Then on the TBP Market, again you would have 30 Place Back Bet rules, one for each potential Stall Number as follows:
If Stall Number = 1 AND Stored Value Stall#Event for Event = 1.... Place Back Bet
If Stall Number = 2 AND Stored Value Stall#Event for Event = 2.... Place Back Bet
...
If Stall Number = 30 AND Stored Value Stall#Event for Event = 30.... Place Back Bet
This is clumsy but slightly more flexible I think as it will work for races with any number of selections..... Flat Races that is.
Hasten to add that I haven't tried it yet. Just thought I'd bounce the thought off you to see what you think.
Cheers
John
First of all thank you for your response. It is much appreciated.
But, if I understand the approach you are showing here, the bottom line is that it is not possible to pass a selection specific stored value from one market to another within the same event. For horse racing this seems like a significant limitation in the software. It also begs the question what ticking the "Shared" box when setting a Selection Stored Variable actually achieves.
My challenge here is that the approach that you show only works for a maximum number of selections in the market. I need it to work for markets with any number of selections where any of those selections might qualify to be passed to the TBP market. That means I would need a separate rule file for each unique number of selections, say between 3 and 30, maybe even more. Not very flexible and a huge maintenance overhead.
I think I can see an alternative approach where you would only need 1 rule file for the Win and Place Market and it would work independently of how many selections were in the race. However, I think this will probably only work for flat races where there is a Stall Number. Pity there isn't a Cloth Number condition.
What you would do on the win side is have 1 Set / Modify Stored Value Rule for each possible stall number, say up to 30. You would then set each rule to trigger once for Any Selection. The rules logic would then be:
If Stall Number = 1 Set Stored Value Stall# for selection to 1
If Stall Number = 2 Set Stored Value Stall# for selection to 2
...
If Stall Number = 30 Set Stored Value Stall# for selection to 30
Then the rule that triggers the bet on the selection would set a Stored Value on Event to the Stall# Stored value for the selection.
Set Stored Value Stall#Event to Stall# for selection
Then on the TBP Market, again you would have 30 Place Back Bet rules, one for each potential Stall Number as follows:
If Stall Number = 1 AND Stored Value Stall#Event for Event = 1.... Place Back Bet
If Stall Number = 2 AND Stored Value Stall#Event for Event = 2.... Place Back Bet
...
If Stall Number = 30 AND Stored Value Stall#Event for Event = 30.... Place Back Bet
This is clumsy but slightly more flexible I think as it will work for races with any number of selections..... Flat Races that is.
Hasten to add that I haven't tried it yet. Just thought I'd bounce the thought off you to see what you think.
Cheers
John
From your OP it sounded like you were storing a value on a runner in the win market when certain conditions were met and then triggering a bet on that runner in the TBP market?
If so the first link I posted does exactly that (ie, its win mkt conditions test for it being a mover) then trigger a bet in the place mkt on that runner
Unless I've miss understood something?
The shared stored value on selections etc is what enables you to pass into SV info between servants and automation or display info from that selection on the one-click/ladder screen
If so the first link I posted does exactly that (ie, its win mkt conditions test for it being a mover) then trigger a bet in the place mkt on that runner
Unless I've miss understood something?
The shared stored value on selections etc is what enables you to pass into SV info between servants and automation or display info from that selection on the one-click/ladder screen
Sure. I agree it does what I want.
But if I want a rule set that covers 30 selections (i..e. 30 rows in the Betfair order), then that rule set cant be used for races that have less than 30 selections can it?
So if I want to cover all the horses in every race I would need 1 rule set for each distinct number of selections you could get in each race.
Unless Im missing something. I am assuming that you cant have a rule that applies to row 10 in betfair order if there are only 9 selections?
Mmmm or maybe you can. Ive just set up a rules file with a rule that is for Row 12 in a 10 horse race and it didnt object. Interesting!
Cheers
John
But if I want a rule set that covers 30 selections (i..e. 30 rows in the Betfair order), then that rule set cant be used for races that have less than 30 selections can it?
So if I want to cover all the horses in every race I would need 1 rule set for each distinct number of selections you could get in each race.
Unless Im missing something. I am assuming that you cant have a rule that applies to row 10 in betfair order if there are only 9 selections?
Mmmm or maybe you can. Ive just set up a rules file with a rule that is for Row 12 in a 10 horse race and it didnt object. Interesting!
Cheers
John
I put 6 rules in that file just as an example and so it doesn't look to complex for people when they download it.
But to add additional runners just select the bottom rule, click on the icon with two green arrows to duplicate the whole rule then on the 'General' tab change the applies to Betfair row 7
Then keep repeating that till you have the number you need (should take 3-4mins to add all 30 rules for 30 runners).
If you apply it to a race with only 9 runners only the 1st nine rules will be used, the rules applied to selections in row 10 - 30 will just be ignored
But to add additional runners just select the bottom rule, click on the icon with two green arrows to duplicate the whole rule then on the 'General' tab change the applies to Betfair row 7
Then keep repeating that till you have the number you need (should take 3-4mins to add all 30 rules for 30 runners).
If you apply it to a race with only 9 runners only the 1st nine rules will be used, the rules applied to selections in row 10 - 30 will just be ignored