A Little Help Needed Please - An Automation Request Query

A place to discuss anything.
Post Reply
User avatar
Tuco
Posts: 1014
Joined: Wed Apr 15, 2009 1:43 pm

Afternoon all. I'm still pretty new to the servant and automation game but delighted with all that I've learnt so far.

Using the betfair selection id I'm doing nicely with the servants and triggered automation using that betfair selection id as a stored value.

However, I've spent the past few nights trying to create some automation without success for the following scenario (I'll use horse racing as an analogy):

I'm trying to create automation for a place market - the winner market is looked after by the servant and is able to lay a horse that is not going to win.

If there are four horses, three of which I expect to finish in the top three with one missing out, I'm wanting to be able to use automation to back those three (nominated) horses and lay the (nominated) horse that misses out using automation and stored values from the winner market. The betfair selection id stored value will happily lay said horse in both the winner market and in the place market no problem - the problem is getting the other three horses to be backed in the place market. When using a servant directly on the place market, again no problem by making the four horses all nominated selections and a condition that the selection id is not the servant context selection. But how to achieve this with the linked place market using automation to back the three horses I've not clicked on in the winner market? I feel I'm getting close but I'm likely missing out on some info that I've not yet mastered, so any help would be much appreciated in this regard.

So basically no problem using the servant on the winner market to lay the horse coming 4th and backing the horse coming 1st and also to lay the horse coming 4th using the betfair selection id stored value in the place market. How to get automation to back the other three nominated horses as yet is beating me.

Any help pointing me in the right direction would be much appreciated - thank you :)
User avatar
alexmr2
Posts: 792
Joined: Wed Sep 26, 2018 12:32 am

Have you tried asking AI?

"Yes, this can be done in Bet Angel using event-level shared stored values and Betfair Selection IDs, without having to nominate the horses again in the PLACE market.

The missing part is that you're currently transferring the ID of the horse you want to lay, but you also need to transfer the IDs of your four nominated runners.
1. How the automation should work
Suppose you have ten horses, but only four are nominated in the WIN market.
Horse Nominated WIN market PLACE market
Horse A Yes Back (winner) Back
Horse B Yes — Back
Horse C Yes — Back
Horse D Yes Lay (4th) Lay
Other six No Nothing Nothing

You click Horse D using your WIN market servant. It knows Horse D is your expected fourth-place finisher.

The PLACE market automation must then identify A, B and C without you clicking them individually.
2. Store four nominated selection IDs in the WIN market
Create four Set/Modify a Stored Value Only rules, one applied to each Guardian nominated selection.

On the Stored Values tab, configure each rule to store:
Rule applies to Stored value name Store value for Value to store
Nominated 1 nom_id_1 Event (Shared) Selection ID
Nominated 2 nom_id_2 Event (Shared) Selection ID
Nominated 3 nom_id_3 Event (Shared) Selection ID
Nominated 4 nom_id_4 Event (Shared) Selection ID

You already have your fifth stored value containing the Selection ID of the horse clicked by the servant. For example:

excluded_id

Make sure this is also stored at Event level and shared.

The Event level is important because it allows the PLACE market automation to access values created in the WIN market.
Bet Angel - Betfair Trading Software+1

3. Create four back-bet rules in the PLACE market
This is the important part.

Create four separate Place Back Bet rules in the PLACE market automation file.

Each rule should apply to ANY selection and check two conditions.

For the first rule:

Stored Value Condition 1
- A Selection's ID on Betfair
- Is equal to
- Event stored value nom_id_1
Stored Value Condition 2
- A Selection's ID on Betfair
- Is NOT equal to
- Event stored value excluded_id
Duplicate the rule three times, changing only the first stored value to nom_id_2, nom_id_3 and nom_id_4.

Keep the second condition identical across all four rules.

Set each rule to trigger once, with your desired stake and odds parameters.

Bet Angel's forum specifically confirms using ANY selection with a condition comparing that runner's Betfair Selection ID to an event-level stored value to trigger a bet in another market.
Betfair trading community

4. What happens when you click the fourth-place horse?
For example, your stored values might be:
Event-level stored values
nom_id_1 100001 Horse A
nom_id_2 100002 Horse B
nom_id_3 100003 Horse C
nom_id_4 100004 Horse D
excluded_id 100004 Horse D


PLACE automation results
Horse A
BACK

Horse B
BACK

Horse C
BACK

Horse D
Excluded from backing

Your existing PLACE lay rule separately matches excluded_id and lays Horse D.

The other six horses cannot trigger any back rule because their Selection IDs are not among the four nominated IDs."
User avatar
Tuco
Posts: 1014
Joined: Wed Apr 15, 2009 1:43 pm

"The missing part is that you're currently transferring the ID of the horse you want to lay, but you also need to transfer the IDs of your four nominated runners."


...yes that is likely it - just cooking so will work again on it later - many many thanks alex :D
Post Reply

Return to “General discussion”