Number of Selections as a Stored Value (Template) Guardian Automation Bot

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

tootatoota wrote:
Wed Oct 13, 2021 8:37 am
Thanks so much dallas,
I tried all day using excel but couldnt get the commands correct.
I know it can be done in excel by getting stall id into excel and then doing a max value etc but i failed at the last hurdle with commands.
Even I fell foul of the classic case of overthinking this one, when I sat down and looked again this morning there's a very simple way of doing this, so scrap everything so far and do the following

Place back (or lay) bet rule
applied to ANY selection
Trigger 1 time

Conditions
Number of place bet triggers on market is = 0
Stall Draw of Selection is equal to 25

Duplicate that rule and for the next rule use;


Place back (or lay) bet rule
applied to ANY selection
Trigger 1 time

Conditions
Number of place bet triggers on market is = 0
Stall Draw of Selection is equal to 24

Duplicate that and carry on reducing the stall draw condition


It's important that you start with the highest possible stall draw you may need and work your way down to the lowest you want and keep the rules in that order.

What will happen is the rules will be checked in turn until the first one triggers, and that will be on the highest stall number in that race, the place bet triggers condition will ensure that once a rule has triggered none of the others will be able to fire

Give that a go and let me know if that's done what you want
User avatar
tootatoota
Posts: 56
Joined: Fri Apr 17, 2020 2:33 am

Hi Dallas,
That sounds correct to me.
Yes there is so many things we can do sometimes we have that light bulb moment and go YES i can do it like this.
Thanks for being persistent i know these things bug me until i get the result.
Really appreciate and ill try it today should be fine.'Regards brendan
User avatar
tootatoota
Posts: 56
Joined: Fri Apr 17, 2020 2:33 am

Hi Dallas,
The bot is working 98% of the time although sometimes will throw in a curve ball.
I thought i was going crazy.
Yesterday Australian racing was supposed to be barrier 20 Incentivise the winner but instead it went for barrier 19.
Ive checked my bot and cannot understand why.
Regards Brendan
ubfxu
Posts: 9
Joined: Tue Nov 15, 2016 11:33 pm

Something in a similar vein.

If I want to count the Number of Selections in a Market that have an LTP <20 at 1 minute before Event Start Time how would I go about doing that.
User avatar
Dallas
Posts: 23532
Joined: Sun Aug 09, 2015 10:57 pm

ubfxu wrote:
Fri Oct 07, 2022 4:55 am
Something in a similar vein.

If I want to count the Number of Selections in a Market that have an LTP <20 at 1 minute before Event Start Time how would I go about doing that.
Just add a 'Fixed Odds Condition'
https://www.betangel.com/user-guide/fixed_odds.html
ubfxu
Posts: 9
Joined: Tue Nov 15, 2016 11:33 pm

Thanks for the prompt response Dallas,

Guess I should have made myself clearer. It's not the Fixed Odds Condition that I'm having a problem with - its the timing and the setting (and/or clearing) of the Stored Value ('selections').

The Guardian Automation File seems to have been set up for a standalone market on its own.

I'm trying to run it against a day's worth of Australian Racing loaded into Guardian (100+ races) and although it works fine on the first 1 or 2 races it seems to get stuck on a value of 2 and doesn't reset itself on any further races. For Example:

8/10/2022 13:21:35: [G_Auto 1] : Store Value (Shared) for market: selections = 1
8/10/2022 13:26:39: [G_Auto 1] : Store Value (Shared) for market: selections = 1 + 1 = 2
8/10/2022 13:46:54: [G_Auto 1] : Store Value (Shared) for market: selections = 1
8/10/2022 13:51:57: [G_Auto 1] : Store Value (Shared) for market: selections = 1
8/10/2022 14:02:01: [G_Auto 1] : Store Value (Shared) for market: selections = 1
8/10/2022 14:07:05: [G_Auto 1] : Store Value (Shared) for market: selections = 1 + 1 = 2
8/10/2022 14:37:18: [G_Auto 1] : Store Value (Shared) for market: selections = 1
8/10/2022 14:42:20: [G_Auto 1] : Store Value (Shared) for market: selections = 1

Is there some sort of Clearing or Resetting that needs to be done or is it related to the Guardian Advanced Settings Refresh Time?

The only change I've made to your original Automation Bot is the addition of the Fixed Odds Condition.
ubfxu
Posts: 9
Joined: Tue Nov 15, 2016 11:33 pm

Seem to have partially solved part of the problem.
It's only the Increment SV Rule that needs to have the Fixed Odds Condition - not both.

There is still an issue with the Stored Value being updated with the new Count if a Selection hovers around the Odds of 20, ie sometimes it dips below or rises above. I just want to grab the exact count at 60 seconds prior to the event start time.
User avatar
Dallas
Posts: 23532
Joined: Sun Aug 09, 2015 10:57 pm

ubfxu wrote:
Sat Oct 08, 2022 5:09 am
Thanks for the prompt response Dallas,

Guess I should have made myself clearer. It's not the Fixed Odds Condition that I'm having a problem with - its the timing and the setting (and/or clearing) of the Stored Value ('selections').

The Guardian Automation File seems to have been set up for a standalone market on its own.

I'm trying to run it against a day's worth of Australian Racing loaded into Guardian (100+ races) and although it works fine on the first 1 or 2 races it seems to get stuck on a value of 2 and doesn't reset itself on any further races. For Example:

8/10/2022 13:21:35: [G_Auto 1] : Store Value (Shared) for market: selections = 1
8/10/2022 13:26:39: [G_Auto 1] : Store Value (Shared) for market: selections = 1 + 1 = 2
8/10/2022 13:46:54: [G_Auto 1] : Store Value (Shared) for market: selections = 1
8/10/2022 13:51:57: [G_Auto 1] : Store Value (Shared) for market: selections = 1
8/10/2022 14:02:01: [G_Auto 1] : Store Value (Shared) for market: selections = 1
8/10/2022 14:07:05: [G_Auto 1] : Store Value (Shared) for market: selections = 1 + 1 = 2
8/10/2022 14:37:18: [G_Auto 1] : Store Value (Shared) for market: selections = 1
8/10/2022 14:42:20: [G_Auto 1] : Store Value (Shared) for market: selections = 1

Is there some sort of Clearing or Resetting that needs to be done or is it related to the Guardian Advanced Settings Refresh Time?

The only change I've made to your original Automation Bot is the addition of the Fixed Odds Condition.
Its probably your Guardian refresh rate

You should be able to apply it to 100s of markets and it will trigger on them all independently
User avatar
Dallas
Posts: 23532
Joined: Sun Aug 09, 2015 10:57 pm

ubfxu wrote:
Sat Oct 08, 2022 5:38 am
Seem to have partially solved part of the problem.
It's only the Increment SV Rule that needs to have the Fixed Odds Condition - not both.

There is still an issue with the Stored Value being updated with the new Count if a Selection hovers around the Odds of 20, ie sometimes it dips below or rises above. I just want to grab the exact count at 60 seconds prior to the event start time.
For that you just need to set both rule to trigger from 00:01:00 till 00:00:59 before the start

Also if you change the second rule from ANY to Every (and set the number of triggers to 1) that will count them all at once without the need for it to rearm every 200ms
ubfxu
Posts: 9
Joined: Tue Nov 15, 2016 11:33 pm

Thanks for that Dallas,

Its working well now.

:D
User avatar
Dallas
Posts: 23532
Joined: Sun Aug 09, 2015 10:57 pm

ubfxu wrote:
Sun Oct 09, 2022 11:35 pm
Thanks for that Dallas,

Its working well now.

:D
No probs
robbed
Posts: 33
Joined: Tue Feb 21, 2023 9:02 am

Hope someone here can help.

Conditions
1. Count number of runners
2. Count number of automation nomination selections
3. Calculate number of automation nominated selections as a percentage of number of runners.
4. Place back bet if:
Number of runners is less than 11
AND
Number of automation nominated selections is greater than 1
AND
Percentage of of nominations to runners is less than 50%.

I'm completely lost after point 1. It will be very helpful if someone could create a rule for me. I can handle editing it to suit some different criteria from then on.

Thanks in advance.
Last edited by robbed on Wed May 15, 2024 8:30 am, edited 1 time in total.
User avatar
Dallas
Posts: 23532
Joined: Sun Aug 09, 2015 10:57 pm

robbed wrote:
Wed May 15, 2024 8:07 am
Hope someone here can help.

Conditions
1. Count number of runners
2. Count number of automation nomination selections
3. Calculate number of automation nominated selections as a percentage of number of runners.
4. Place back bet if number of runners is less than 11 AND percentage of of nominations to runners is less than 50%.

I'm completely lost after point 1. It will be very helpful if someone could create a rule for me. I can handle editing it to suit some different criteria from then on.

Thanks in advance.
2) Create a Set/Modify Stored Value rule applied to nominated selection 1, and on the stored value tab store a value named (what ever you want ie, you could name it 'nominated') and store 'An Entered Amount' and input the value of 1

Then add another this time applied to nominated selection 2 and change the input value on the stored value tab to 2
and repeat until you get 5 rules

3) Create another Set/Modify Stored value rule this time on the stored value tab store a value named (what ever you want ie, you could name this one 'percentage'' calculate the percentage using the stored value nuame from the template of this thread against the stored values named 'nominated' (or whatever you chose to call them in step 2)

4) Add a Stored value condition to your back bet rule to test if the stored value named 'percentage (or whatever you named it in step 3) is less than 50%
robbed
Posts: 33
Joined: Tue Feb 21, 2023 9:02 am

Thanks Dallas. I've got part way but I've definitely got lost here. I've attached the .baf file with what I've done so far, please see if you can help finish it.
You do not have the required permissions to view the files attached to this post.
User avatar
Dallas
Posts: 23532
Joined: Sun Aug 09, 2015 10:57 pm

robbed wrote:
Wed May 15, 2024 8:44 am
Thanks Dallas. I've got part way but I've definitely got lost here. I've attached the .baf file with what I've done so far, please see if you can help finish it.
I'll have a look in the morning and post back, bump the thread if I haven't responded by tomorrow afternoon
Post Reply

Return to “Bet Angel Automation - General”