How to get Betangel to place random bets

We were all new to Bet Angel once. Ask any question you like here and fellow forum members promise not to laugh. Betfair trading made simple.
Post Reply
dufc1983
Posts: 12
Joined: Fri Nov 15, 2019 11:02 am

Hi All,

I'm testing some methods at the moment and as part of that I wish to program betangel to place bets at random on events of my choosing.


I selected the "any selection" option from within the "Selection" option on the "general" tab. Yet when I select this one would think that it would select "ANY" selection at random but it does not. Instead selecting the very first selection available every time.

Can someone tell me if there is an option to select a totally random selection?


Thanks in Advance
User avatar
jimibt
Posts: 4204
Joined: Mon Nov 30, 2015 6:42 pm

there's not a single setting that will do this for you. however, with a bit of lateral thinking you could create a psuedo random generator. In psuedo code this might do the following:

1. At 300 seconds pre race, take a stored values snapshot of all the runners' book%
2. At 90 seconds take a second snapshot
3. at 30 seconds place a bet on the runner whose difference between bookPercentage1 and bookPercentage2 is the greatest (or least -or between a range of numbers etc)

As i said, it's a way to get a random selection each time -it may however have a bias twds the runner that has had the most movement, so may always end up picking the same type of runner. Experimantation required to find some sort of stored value pairs that would give you a broad range of *random* picks ;)
sa7med
Posts: 800
Joined: Thu May 18, 2017 8:01 am

Also with excel integration, you can use excel's RAND/RANDBETWEEN functions to generate random numbers and place bet's based on the result (ie if between 0 and 3 then bet on this selection, between 3 and 6 bet on another selection, etc).
dufc1983
Posts: 12
Joined: Fri Nov 15, 2019 11:02 am

Thanks all.

2 very good and workable ideas imo.

Going away to play around with both and will let you know how I get on.

Thanks again for your input. I really appreciate it.

Sean.
dufc1983
Posts: 12
Joined: Fri Nov 15, 2019 11:02 am

sa7med wrote:
Sat Feb 08, 2020 10:58 am
Also with excel integration, you can use excel's RAND/RANDBETWEEN functions to generate random numbers and place bet's based on the result (ie if between 0 and 3 then bet on this selection, between 3 and 6 bet on another selection, etc).
So looking deeper into this I think i understand setting up the excel RAND sheet but where would I program the "IF between 0 and 3 place bet"? This could be done from within betangel?

Or is this done in Excel also?

Sean.
sa7med
Posts: 800
Joined: Thu May 18, 2017 8:01 am

dufc1983 wrote:
Mon Feb 10, 2020 9:01 pm
sa7med wrote:
Sat Feb 08, 2020 10:58 am
Also with excel integration, you can use excel's RAND/RANDBETWEEN functions to generate random numbers and place bet's based on the result (ie if between 0 and 3 then bet on this selection, between 3 and 6 bet on another selection, etc).
So looking deeper into this I think i understand setting up the excel RAND sheet but where would I program the "IF between 0 and 3 place bet"? This could be done from within betangel?

Or is this done in Excel also?

Sean.
Download one of the excel templates from (https://www.betangel.com/download/) or from the many on the forum. Then check one of the tutorial videos on how to integrate with Bet Angel.
49ers
Posts: 66
Joined: Wed Jun 06, 2018 1:35 pm

What you could do is have a servant running on each runner you wish to place a bet on. This could contain all your betting logic such as odds, stake, fill or kill etc. Then within the servant have a shared stored value in the conditions that needs to be set in order for the bet to be triggered.

From within Excel you could then use some VBA i.e. Sheets("Bet Angel").range("L" & <random runners row number>).value = "SET_SV FOR:SELECTION NAME:PlaceBet VALUE:1"

This would then cause the relevant servant to go ahead and place the bet for you.
Post Reply

Return to “Bet Angel for newbies / Getting started”