Automation with 2 rules

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
farmerjohn99
Posts: 7
Joined: Fri Aug 10, 2018 6:13 am

Hi
I have bought football bank builder and want to make a bot for the strategy.
Without revealing the hole strategy, I have to find matches where a draw is in the odds range from XX-YY and then it has to check and make a lay bet on the lowest odds in over/under 2.5 goals if the odds are in the range xx-yy.

EX.
1. Tjeck if matchodds on draw is between 3 and 4.
2. If yes to 1
3. Lay over or under 2,5 goals. Lay the one with odds between 1.7-1.9.

Is it possible?
User avatar
jamesedwards
Posts: 4370
Joined: Wed Nov 21, 2018 6:16 pm

Yes. You need to store a value at the 'event level' (with 'shared' box ticked) so the stored value is recognised in both markets. You can either create two separate rulefiles and apply one to match odds and one to over/under, or you can get clever and have one rulefile that use the 'market type' condition in each line to apply to only match odds or over/under markets where relevant.
User avatar
Dallas
Posts: 23597
Joined: Sun Aug 09, 2015 10:57 pm

There is also an example here based on what James has just advised about using Stored Values at the 'Event' level
viewtopic.php?f=50&t=16232
farmerjohn99
Posts: 7
Joined: Fri Aug 10, 2018 6:13 am

Thanks to both of you. Much appreciated
farmerjohn99
Posts: 7
Joined: Fri Aug 10, 2018 6:13 am

I've found a solution. Not sure, if it is the smartest solution - but everything is working fine. I'm very eager to learn so if you have a smarter solution don't hesitate to write it in here.

Just to recap. I wanted to lay either over or under 2.5 goals market if the odds was between 1.8-2.0. I would lay the one within the oddsrange as long as the match odds draw market is in the range of 3.5-4.2

1. I created a match odds checher storing the draw price if it was within the odds range (3.5-4.2 - draw price) The value is stored at the 'event level' (with 'shared' box ticked)
2. I created rule nr. 1 a lay UNDER 2.5 goals. If under is between 1,8-2.0 then activate rule
3. I created rule nr. 2 a lay OVER 2.5 goal. If over is between 1.8.2.0 then activate rule

Could it have been done in one rule?

Thanks.
User avatar
Dallas
Posts: 23597
Joined: Sun Aug 09, 2015 10:57 pm

farmerjohn99 wrote:
Sat Oct 29, 2022 9:00 pm
I've found a solution. Not sure, if it is the smartest solution - but everything is working fine. I'm very eager to learn so if you have a smarter solution don't hesitate to write it in here.

Just to recap. I wanted to lay either over or under 2.5 goals market if the odds was between 1.8-2.0. I would lay the one within the oddsrange as long as the match odds draw market is in the range of 3.5-4.2

1. I created a match odds checher storing the draw price if it was within the odds range (3.5-4.2 - draw price) The value is stored at the 'event level' (with 'shared' box ticked)
2. I created rule nr. 1 a lay UNDER 2.5 goals. If under is between 1,8-2.0 then activate rule
3. I created rule nr. 2 a lay OVER 2.5 goal. If over is between 1.8.2.0 then activate rule

Could it have been done in one rule?

Thanks.
I always prefer using separate automation files for each market but you could do it with a single file applied to both markets by adding some a 'Market Type' Condition to each rule
https://www.betangel.com/user-guide/market_type.html

and for points 2 and 3 in the O/U market you could have used 1 rule and applied it to 'Every Selection'
Then added a 'Number of Place bet triggers' condition on the market is equal to 0

That condition would ensure it only ever fired on either the over or unders and never both

So you could condense it down to 1 automation file with 2 rules
Then apply that to both the MO and O/U markets
Post Reply

Return to “Bet Angel - Automation”