Importing Automation Selections blog

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
vetinry
Posts: 40
Joined: Mon May 30, 2011 9:00 pm

Evening all
I've just been reviewing a great blog by Dallas regarding how to set up an automation rule, which allows you to copy and paste your own selections into a text comparison condition and compare against stored values

For my example, I would like to be to do this for tennis matches but I've got myself (again) a little bit confused.

In the blog example, Dallas sets up some stored values for total event information. As he points out, this full information isn't always necessary and I only need to set values for player names.

He also then shows how to copy a list into the text comparison screen, which is fine. My question is though, does that then only work against the current selection, which appears to only be the first player name in the match. That's fine if it is the first player listed on the exchange.

But what if the player you want to match is selection 2 instead?

I've thought about adding a duplicate stored value for each selection but then I would have to copy the list of players into to 2 seperate text boxes (I think)

Will Bet Angel look for the stored value across the whole market (both players) or only for selection one.

The next question is once I have got the basic system working, what is the best way to duplicate for a number of different strategys? Should the basic trigger rule file be duplicated and then saved as different names with all other automation rules added, or is there a better way to do this.

Also, is it possible to apply more that one rule to a market so that I could apply the trigger rule in automation rule 1 and then a trading strategy in rule 2?

Finally, what's the simply way to apply a rule to all markets in Guardian - currently I am just clicking each match seperately.

I'll review the automation help videos again to see if I can work this out but all help, as always, is much appreciated

Best wishes

Steve
weemac
Posts: 1434
Joined: Mon Sep 16, 2013 8:16 pm

Finally, what's the simply way to apply a rule to all markets in Guardian - currently I am just clicking each match seperately.

There's a 'Select All' button in Guardian, or use your mouse plus CTRl/Shift keys.
User avatar
Dallas
Posts: 23520
Joined: Sun Aug 09, 2015 10:57 pm

Glad you enjoyed reading the blog and found it usefull

Regarding the questions you have

>>does that then only work against the current selection, which appears to only be the first player name in the match. That's fine if it is the first player listed on the exchange.

Will Bet Angel look for the stored value across the whole market (both players) or only for selection one.

It just depends on who the rule was applied to on the 'General' tab, the condition is basically saying trigger on this selection if there name is (or is NOT) in this list

If the rule was applied to 'ANY' or 'Every' selection then it would look at both players
Or if the rule was applied to the fav it would trigger only if the fav name (at that time) appears in the list or NOT in the list


>>Also, is it possible to apply more that one rule to a market so that I could apply the trigger rule in automation rule 1 and then a trading strategy in rule 2?

You can add as many rules to an automation file as you want, so you could combine multiple strategies into a single file, you can also apply up to 5 automation files per market, to do this just select from 'Rule 1 through to Rule 5' from the pick list in Guardian
https://www.betangel.com/user-guide/usi ... rules.html

On the 'List' tab of Guardian you can also enable the addition rules columns by selecting them in the column chooser menu
https://www.betangel.com/user-guide/market_list.html

Whether you combine strategies into one file or use multiple files you just need to ensure they don't clash, ie, one trying to open a trade at the start of a set while the other keeps greening it up straight away


>>Finally, what's the simply way to apply a rule to all markets in Guardian - currently I am just clicking each match seperately.

Click the 'Apply Rule (all markets) button highlighted in the first link above


Also just in case you hadn't seen them there are some ready-made examples in the Tennis section of the shared files area if you were looking for something to start from or copy part of
viewforum.php?f=51
vetinry
Posts: 40
Joined: Mon May 30, 2011 9:00 pm

Thank you both for your answers - Much appreciated
This is such a powerful tool. I am only beginning to scratch the surface. I've got loads of ideas - just need time to try and prioritise them, develop them and implement them.
I like trading live but most days it's too much of a time challenge and so I mainly need to develop systems that can work without me
Cheers
Steve
vetinry
Posts: 40
Joined: Mon May 30, 2011 9:00 pm

Good morning
I've got a couple of hours free this morning and so trying to get the automation set up with imported list of selections as per Dallas's blog post.
I believe I've set up the trigger file correctly but I'm not then seeing information pulling through in the log if I apply to a market for eg this afternoons racing.
I've set up the stored values with all the parameters as per the blog.
If I then apply just that to a racing market, it is showing details of the race in the log as I would expect. It's also showing details of one runner, which is the first one in the list on Betfair.
On the general tab I have tried ANY and EVERY selection - what is the difference between these?
I've then tried to add the conditions to this, using selection_name for the current selection (ANY or EVERY) and copied the name of some horses that are running in the Southwell races this afternoon (does upper / lower case matter?)
Now, if I apply to the guardian markets for all Southwell races this afternoon, on one of the races, a name has appeared in the log, but in others, there is now no market / event etc information (presumably because the condition is working) but also there is nothing in the log even where there should be a name that I have put in the condition text list.
I can't understand why this would be.
Part B - I think I will leave the trigger rule as a seperate automation rule and then just add other rules alongside it - how do I link the rules files together so that the trading rule picks the named selection that the trigger rule has found?
Hope that makes sense
Thanks
Steve
User avatar
Dallas
Posts: 23520
Joined: Sun Aug 09, 2015 10:57 pm

vetinry wrote:
Tue Jan 24, 2023 10:30 am
Good morning
I've got a couple of hours free this morning and so trying to get the automation set up with imported list of selections as per Dallas's blog post.
I believe I've set up the trigger file correctly but I'm not then seeing information pulling through in the log if I apply to a market for eg this afternoons racing.
I've set up the stored values with all the parameters as per the blog.
If I then apply just that to a racing market, it is showing details of the race in the log as I would expect. It's also showing details of one runner, which is the first one in the list on Betfair.
On the general tab I have tried ANY and EVERY selection - what is the difference between these?
I've then tried to add the conditions to this, using selection_name for the current selection (ANY or EVERY) and copied the name of some horses that are running in the Southwell races this afternoon (does upper / lower case matter?)
Now, if I apply to the guardian markets for all Southwell races this afternoon, on one of the races, a name has appeared in the log, but in others, there is now no market / event etc information (presumably because the condition is working) but also there is nothing in the log even where there should be a name that I have put in the condition text list.
I can't understand why this would be.
Part B - I think I will leave the trigger rule as a seperate automation rule and then just add other rules alongside it - how do I link the rules files together so that the trading rule picks the named selection that the trigger rule has found?
Hope that makes sense
Thanks
Steve
I'm not 100% sure what it is you want to do from the above description but just to clarify a few points

The log won't display the selections you've added to your text comparison list, it just shows your activity in Bet Angel, ie, what bets have been placed/triggered, stored values or signal which have been set/cleared etc

The difference between ANY and Every is
ANY = a rule can trigger on Any selection that meets your criteria, they are checked in order starting with the selection in Betfair row 1
Every = a rule will trigger in every selection subject to it meeting your conditions
vetinry
Posts: 40
Joined: Mon May 30, 2011 9:00 pm

Hi Dallas
Thanks, as always, for taking the time to respond.
Apologies if I wasn't clear enough in what I was trying to clarify.
I think I understand what you've said about the log and what will show.
So, assuming I've set up the Trigger file properly, the stored values should be showing exactly as you've created in your blog, eg market, competition, event, selection, trainer, jockey etc. If I apply this rule file in guardian, it is pulling the information through and it's showing the details of the market etc and details for one horse, trainer, and jockey (this is without any conditions being applied)
I have then (within the same rules file) added the text conditions and put a list of half a dozen horses in, copying them with capitals as per the betfair market (do the capitals matter)
Now, when I apply the trigger rule file to guardian markets, apart from saying the market is / isn't suspended, no other information is showing - I was surprised because I thought that Guardian log would show that in races where I have added horse details to my custom list, it would indicate a match (but perhaps not)
I want to test the DOB with moving exit rule for these horses and so whether I combine into the same rules file or use a seperate rules file for the DOB part of automation, I'm not sure which parameters I need to pick to pick up the "match" that should have occurred in the trigger file. ie, is it guardian automation nomination 1, current selection etc.
I'm just trying to point the initial back bet and stored values at the correct selection, which should be the selection I've matched up in the trigger file.
Does this make any more sense.
Thanks
Steve
vetinry
Posts: 40
Joined: Mon May 30, 2011 9:00 pm

Good afternoon
After quite a few tries getting automation to work with imported selections, I'm still struggling.
I set up the file as per Dallas's blog and thought that it was finding the "selection" from a list that I put into text conditions.
But when a match goes in play, nothing is happening.
The log is showing that it's unsuspended but nothing else happens.
Would it help if I put screen shots in to see what I'm doing wrong and if so, how do I do that?
Thanks
Steve
User avatar
Dallas
Posts: 23520
Joined: Sun Aug 09, 2015 10:57 pm

vetinry wrote:
Mon May 08, 2023 1:22 pm
Good afternoon
After quite a few tries getting automation to work with imported selections, I'm still struggling.
I set up the file as per Dallas's blog and thought that it was finding the "selection" from a list that I put into text conditions.
But when a match goes in play, nothing is happening.
The log is showing that it's unsuspended but nothing else happens.
Would it help if I put screen shots in to see what I'm doing wrong and if so, how do I do that?
Thanks
Steve
Sorry I just noticed I missed your previous message a few months ago

To add a screenshot in the message text area you'll see an 'Attachments' tab or button just click that and you'll then be able to choose the images from your PC you want to upload.

Also if you can add a link to the blog you've copied from or the example file you've downloaded i'll know exactly what it is you are wanting to do
vetinry
Posts: 40
Joined: Mon May 30, 2011 9:00 pm

Hi Dallas
Thanks for picking up on this thread again.

Your original post is here:

https://www.betfairtradingblog.com/bet- ... 2%80%99%21

What I'm trying to achieve is as follows:

Trading certain tennis selections (inputted from a list)

I used your blog to set up the stored market information. Using "Every Selection", if I save the rule and apply it to a list of matches in Guardian, I can find all of the market info (match, event, selection etc) in the log for each match. So far, so good.

I've then tried adding a text condition as per your blog. I've used "selection_name" as the condition and then added (both by just surname and full name) my list into the box. I've also tried to use "if any of this appears" and "exact match".

Now if I apply the rule to the list of matches in guardian, I don't get anything in the log. I think that previously you said that it wouldn't create a log for this, but without it, I don't know whether it is working or not.

I then want to add a rule, either to the same file or a separate file, to place a lay trade only on the selection that has been found through the text comparison condition. But I can't get it to work. I'm not sure whether I should be using current selection or another option - but I just can't get any trades to place

I can either send through lots of screen shots of my set up, or can I send the rules file instead?

Thanks

Steve
vetinry
Posts: 40
Joined: Mon May 30, 2011 9:00 pm

And here is the rules file that I'm trying to get to work
You do not have the required permissions to view the files attached to this post.
User avatar
Dallas
Posts: 23520
Joined: Sun Aug 09, 2015 10:57 pm

vetinry wrote:
Mon May 08, 2023 7:15 pm
And here is the rules file that I'm trying to get to work
I had a quick look at the file, the main thing stopping it was you had the 'Text Compassion' condition on the stored value rule, this needs to be on the lay rule (or whatever rule you want to trigger on those players)

Three other minor things,
First was the stored value rule only needs to trigger once, you had it set to 5 times (this won't have caused any problems or it not to work it just 1 time is all thats needed)
Second was the lay bet rule was armed from 00:00:00 until 00:00:00 so basically had no chance to trigger (although this may just been a typo when you set it up)
Third was your lay rule being applied to every selection, this isn't wrong per se but if you list contains two names that are playing each other it would lay them both - this may be what you want but if not 'ANY' selection will ensure it only triggers on one of them

I've attached the file below with those changes made so it should now work
Trigger Bets from Imported List Tennis.baf

Its worth mentioning that if you are only wanting to test the player names (and not looking for specfic tournaments, comps etc), you can do it without storing all the market information as a stored value

Instead as the tennis players name appear in the market title you can just add a condition to test this (rather than test the stored value names)
Condition.jpg
You do not have the required permissions to view the files attached to this post.
vetinry
Posts: 40
Joined: Mon May 30, 2011 9:00 pm

Hi Dallas
Thanks for taking a look at this for me.
What's really helpful is that you've not just fixed it but taken the time to explain where I've gone wrong.
Makes much more sense now
Really appreciate your help
Best wishes
Steve
vetinry
Posts: 40
Joined: Mon May 30, 2011 9:00 pm

Quick update on this

I tried Dallas's amended file and removed all of the stored values apart from market_name, which includes the surnames of both players.
When testing, I added a list of players in the text conditions and then applied rule to some matches
Unfortunately, what happened was that even though a defined player was in the market_name and lay bets were only placed on those matches with that name, the lay bet was placed on the first player listed in the market name.
Is this a result of using "Any" and the way that betfair lists the players?

I added back in selection_name and it seems to work by placing the lay bet on the player who's name is is the text comparison condition

Thanks

Steve
User avatar
Dallas
Posts: 23520
Joined: Sun Aug 09, 2015 10:57 pm

vetinry wrote:
Tue May 09, 2023 6:51 pm
Hi Dallas
Thanks for taking a look at this for me.
What's really helpful is that you've not just fixed it but taken the time to explain where I've gone wrong.
Makes much more sense now
Really appreciate your help
Best wishes
Steve
No probs

Image
Post Reply

Return to “Bet Angel - Automation”