Tennis Matches - picking only one set outcome

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

Good morning all (Dallas)

I am trying to trade across 2 different Tennis markets.
The lay element is straightforward because it's placed in Match Odds market

However, I then want to place a corresponding Back bet in only one of the Set Betting markets

The additional complication is that I want to automate this so that it only triggers on a player which is found via matching a text comparison against a list of players that I add each morning

The specific market is "2-1" to the named player.

Obviously in most non Major tournaments, there are up to 3 sets and 4 different set outcomes (2-0,2-1,1-2,0-2) and therefore is it possible to have guardian set up to only place a back bet on one of those markets (2-1) for a named selection?

Thanks in advance

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

Hi all
I think I'm very nearly there with regards to writing a new automation rule file to let me place a back and lay bet in 2 different tennis markets.
The first challenge I had was to try and get the imported list of names to work and Dallas has kindly helped me with that.
Currently I can store the value for the relevant market information and then filter my inputted names so that my bets are only placed on the markets in which the players are.
I thought I'd got it nailed and even created a separate line in the rules to allow me to only have to enter the players name once vs originally when I created the rule I was having to enter the names twice, once in the back part and once in the lay.
The issue that I have is that when the back bet is being placed in the Set Betting market, I only want it to place the bet on one player. The log is telling me that one bet is placed, but when I look in the Guardian screen it shows 2 bets have been placed, one on each player for 2-1. I only want the bet to be placed on the player that I've picked.
I've messed around with it for quite a while and can't get it to work
So I'm really hoping that someone with more skill of automation might be able to show me where I've gone wrong and ideally how to sort it
Thanks
Steve
Tennis back and lay in diff markets.baf
You do not have the required permissions to view the files attached to this post.
User avatar
Dallas
Posts: 23597
Joined: Sun Aug 09, 2015 10:57 pm

I'll have to double check in the morning but from memory I'm sure for some reason BF nest the 'Set betting' markets of a tennis match outside the Event list of market for some reason

I know the definitely do the same in greyhound markets

What this means is normally you'd set a Stored Value on the Event to pass information/trigger rules from one market to another in that same event (match, race, fixture etc)
But that isn't possible if BF have nested it outside of it. You could set the Stored Value at Bet Angel level and it will definitely see it then - but so will all other markets the rule is applied to, so if you have multiple markets in Guardian or the rules file applied to several matches at the same time the chances are it's got get itself into a right mess
You'd only be able to add the markets from a single match to Guardian at a time

But i'll know for sure in the morning unless anyone else knows for sure and follows up with a message in the meantime
sniffer66
Posts: 1824
Joined: Thu May 02, 2019 8:37 am

Dallas wrote:
Thu May 11, 2023 8:23 pm
I'll have to double check in the morning but from memory I'm sure for some reason BF nest the 'Set betting' markets of a tennis match outside the Event list of market for some reason

I know the definitely do the same in greyhound markets

What this means is normally you'd set a Stored Value on the Event to pass information/trigger rules from one market to another in that same event (match, race, fixture etc)
But that isn't possible if BF have nested it outside of it. You could set the Stored Value at Bet Angel level and it will definitely see it then - but so will all other markets the rule is applied to, so if you have multiple markets in Guardian or the rules file applied to several matches at the same time the chances are it's got get itself into a right mess
You'd only be able to add the markets from a single match to Guardian at a time

But i'll know for sure in the morning unless anyone else knows for sure and follows up with a message in the meantime
It struck me before Dallas that it would be useful to be able to dynamically name an SV using the current Selection name\Market name. Then you could pass a BA level SV with a unique name each time. That would solve this issue
vetinry
Posts: 40
Joined: Mon May 30, 2011 9:00 pm

Morning
Thanks again for the responses. This is such a great community. Hopefully one day I'll be in a position to help others.
I made a bit of progress last night and have managed to find a solution, which appears to work.
By creating a stored value at the rule to input names, and then using condition filters such as ignore (2-0) a market that i don't want in Set Betting and text comparison to sort lay in match odds (ignore Set in text comparison) and set betting (ignore match in text comparison), I have tested and it seems as if it is now just placing the 2 bets in the different markets on the named selection only.

But your response probably explains the next challenge I am having.

Although I want 2 bets to be placed, ideally the lay trade is only placed after the bet trade, and the bet trade is conditional on market price being better than 4 for the 2-1 market.
I've added a condition to the Place bet rule, which is fine. But then i would like to be able to delay / ignore entirely the lay trade if this condition is not met.

First I tried to use a signal called allow, which would be trigger once the back bet has met its conditions. But it isn't working and perhaps based on what Dallas has said, the market and selection names are not linked, hence it not working.

I also tried to use Stored Values, but again, I can't seem to get it to work properly. I'm interested in the "Bet Angel" option - does this create a unique reference that is fully shared across different markets? To be honest, I did try this but it didn't work for me.

I will only be using Match Odds and Set Betting markets (at the moment) in Guardian and so I'm not worried about other markets being impacted. If that is a limitation and I do want to use other markets, I can always open a new instance of BA.

I'm attaching my latest file to see if there are any other ideas?

Cheers

Steve
Tennis Back and Lay v2.baf
You do not have the required permissions to view the files attached to this post.
sniffer66
Posts: 1824
Joined: Thu May 02, 2019 8:37 am

The only other quickfire way I can think of doing it is using the BA API or a CSV export of all SV values per market.

Using the API you could retrieve the SV's for all your loaded markets, check an SV for one market is set and has the required value, then query loaded markets for the same players in the market name, then apply a new SV to the Set Bet market you've just found, triggering whatever your entry conditions are.

But that would need external code running
vetinry
Posts: 40
Joined: Mon May 30, 2011 9:00 pm

Hi Sniffer
Sounds amazing.... but probably way out of my comfort zone
How do I get the CSV report? I might be able to look at that and understand it.
Am I looking for values that are stored / shared between different markets which have commonality?
Steve
sniffer66
Posts: 1824
Joined: Thu May 02, 2019 8:37 am

vetinry wrote:
Fri May 12, 2023 11:40 am
Hi Sniffer
Sounds amazing.... but probably way out of my comfort zone
How do I get the CSV report? I might be able to look at that and understand it.
Am I looking for values that are stored / shared between different markets which have commonality?
Steve
There's an export rule in Guardian. And a corresponding CSV import rule in which you could set a new SV in another market

https://www.betangel.com/user-guide/exp ... ters_.html

Unfortunately you'd need code (Or Excel) to use the above as you require
User avatar
Dabbla
Posts: 826
Joined: Wed Apr 15, 2009 1:50 pm

This should be working; I have had to change some settings for testing. Make sure all the conditions are as you wish. The bet placement has been change. You will have to change that back.
Tennis Back and Lay v4.baf
The main issue was that text comparison is case sensitive. In most cases every word starts with a capital letter. Match Odds not match odds , this also includes lists
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

Thanks Dabbla
I've downloaded your file and taken a look.
I think the version that I sent this morning was actually placing the 2 bets ok but I think I can see the differences.
What is the purpose of the CLEAR signal rule - is that just if you're testing the rule multiple times on selections it makes sure there's no history there?
In my version 2, I wasn't using case sensitive info for the player selections or the match odds / set betting and it still seems to be ok - I hadn't realised that case sensitive was important.

Sadly, still doesn't seem to address the condition to only place the lay trade once the back trade conditions have been met (odds above 3.75 - 4) and that back bet has been placed first. I added a min back price of 10 and applied to a couple of markets - whilst the back bet wasn't placed (good), sadly the lay bet still was (not so good)

I think I need to understand the stored values better and see if I can see any common values that could be used to test across the 2 different markets

Cheers

Steve
User avatar
Dabbla
Posts: 826
Joined: Wed Apr 15, 2009 1:50 pm

Actually I was wrong about what I said about the case sensitive info. Ignore that I was getting my wires crossed with SVs.

The Clear rule is just for testing. I find that having a rule like that helps with the development of file.
I would normally use SVs ,so it easy to clear a lot of history in one rule and just start from fresh.

I have had a little play and you can link these markets by event, although im seeing some issues with names matching, for example in the set betting Brandon Holt is Bra Holt.
In match odds its Brandon Holt.

Here's the file, its not working 100% due the name issue but I have posted it to give you an idea.
(edit) If you only use surnames the file should be work ok.
Tennis Back and Lay v6.baf
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 Dabbla
Just downloaded and tested..... And it seems to be just what I need.
Thank you very much for the explanation as well. Really helps to improve my understanding.
It's obvious to me that my logic isn't quite there yet because now I've looked through your latest file, I can begin to see the order in which you need to apply the Stored Values etc to link everything together.
Using surnames is no problem - it's actually what I wanted to do anyway - and great that "event" has the common information to make this work.
I was worried about EVERY and ANY but from what I can see because the text comparison is against an individual name, the SV is then applied to that player only and so only bets are placed on that one player.
I've added back in 3rd best market price for each of the bets because I want them to place immediately
So now, I only have to add the list of surnames and apply the single rule and it should take care of itself.

Having spent hours on this and trying using multiple rules across the markets, one for the back rule and set betting and a different rule for lay bet in match odds. It would have been ok but I really wanted ideally a single rule that could be applied to both markets and a single place to enter the names.

Really appreciate your time and help with this. And hopefully my understanding of the capability and power of automation has improved too.

Best wishes

Steve
Post Reply

Return to “Bet Angel - Automation”