Betfair bots – Automating your betting & Betfair trading using Bet Angel


if you’re interested in learning to
trade on Betfair then visit the BET Angel Academy where you have detailed
structured Betfair trading courses or why not visit our website where you can
download a free trial of BET angel professional but also visit the forum
where you can get detailed images examples and downloadable files and
don’t forget to subscribe to our You Tube channel and click on the bell icon
if you want notification of new videos as they’re released so if you want to
automate your betting or trading with bets engine it’s really simple we
actually have a dedicated tool that will allow you to do that and that dedicated
tool is called Guardian Guardian does many things it’s a separate program all
on its own and it sits just underneath this G icon but before we dive into it
it’s to say that it’s really actually quite simple to do what you need that
when you first stew it you’ll need to understand to the way that it’s done but
we’ve done it via drop-down menus we do it via a logical sequence of events and
once you get used to it it’s actually quite simple to do so without further
ado let’s press that G icon and have a look at Guardian and describe exactly
what it does so when you first look at Guardian there isn’t much there and that
is because think of it as a sort of a desktop of workspace for you to actually
do your work in and you need to populate this workspace with markets that you’re
interested in working on at the top of Guardian you can see here it says
markets excel automation watch and advanced settings we’ll talk through a
couple of these but we’re going to focus mainly on the automation area of
Guardian the interesting thing to note about guardian is it’s a tool that sits
in the background so you can actually close Guardian down and still work on
your main screen and Guardian will work magically for you in the background it’s
a completely independent piece of software from bet angel and will work
away doing stuff even if you’re working on something else it’s very very clever
so as I said this is a canvas and we need to paint our canvas with some
markets so on the left hand pane here this allows you to import markets so we
can actually click on here and we can sort of say well let’s put this market
in let’s scroll up a bit let’s put this market in over here and we can drag and
drop that and then the market appears over in Guardian but of course you’ve
only got one market in there what I’m going to do is highlight that remove
that selected market and away it goes so this is the market tree over here and
it’s called a tree because basically as you go down different levels you can see
that we have a look at this in there are markets within markets and then markets
within markets that are up within markets and that’s why you get that
effective of branching basically now you can actually use filters there’s a
separate video on filters if you want to learn how to make your own filter but
this will allow you to find markets very quickly and easier as well so you can
actually bring up markets very very quickly or if we go to the bottom here
you can actually search for individual markets by typing in what you’re
searching for and again filters are available from
within here and we do have other sections such as the coupon which is a
separate video all together again something that’s dedicated specifically
for football matches but what we’re going to do is have a look at the racing
markets simply because it’s quick and simple and there are plenty of racing
markets on the card every day and it’s a great grounds to sort of test your
automation or anything that you’re planning to do so you can see we’ve got
UK and Irish racing ticked and if we click on add that will actually add them
all into Guardian if you have a search list of markets so if we go into here
and say cricket markets what you can actually do is you can actually
highlight individual markets and then you can drag and drop them into Guardian
now in this occasion we’re only going to be looking at the racing but I just
wanted to highlight to you here that anything that you see over here can be
dragged and dropped over onto this side of Guardian but once you have
highlighted the markets that you’re interested in then you can actually
start working on those individual markets so you can
see here there’s an old market this market has been closed in this longer
longer no longer active and you can see that it says suspended and that’s
because there is no market here so we can remove that selected market if we
wanted to or we can remove suspended markets markets that were not interested
in also you can see we’ve got tomorrow’s markets in there and there’s pretty much
no volume within that particular set of markets so what I’m going to do is I’m
going to highlight those and then I’m going to do remove selected markets
again and you’ll get a little dialog box that pops up and then we can actually
remove those markets so this is the canvas that we are going to paint on
effectively and you can see that these are all of the markets that are left in
today’s racing and I’ll describe a few other things for you here as well so
these are the matched and unmatched bets they have no market so if you’re running
automation you can actually have automation running in the background you
can fire up Guardian and just see how it’s doing how many bets are matched or
unmatched within the market we’ll have a look at those as we learn more about
automation and this is the volume in each market so on racing the race that’s
about to start tends to have the highest volume and then that decreases as we go
towards the back end of the card here you can see the last update column this
is an important bit that were going to be talking about here can you see how
it’s ticking through each one of these selections so you can see here that can
you see how it’s ticking away on each one of these selections 5859 zero one
zero two zero four zero five and then it goes back to the top and it’s cycling
through the market so this is what we define as cycling so what you have to do
within the markets that you’re active and in automation is you need to get
better angel to look at them so it can understand what you want it to do so
this is what we call cycling basically the markets will update at the moment
we’ve got it sets to one second the Refresh interval is set to one second so
it’s going one two three four five six seven eight nine 10 11 12 13 so it’s
taking 13 seconds to go from the top market to the bottom and then it loops
and cycles back up again so to put this in context if we have automation running
on the eight o’clock race it will reach that every 10 seconds or so and maybe
the automation that you’ve got you need it to jump on something instantly well
that’s no problem because you can speed up the rate at which this refreshes so
if I drag this right to the top there you can see if we can actually do this
at 20 milliseconds so previously we had it going 1 2 through every you know
updating every second if I do 20 milliseconds I’m not even going to try
and count so what you’ll see as it updates pretty much instantly you can
see there’s a slight delay between the top and the bottom market but can you
see each one of those is updating automatically so what we’re saying to
bet angel is have a look at this market at this refresh interval if you set it
at 20 milliseconds it can look at 50 markets a second so it’s up to you
depending upon what strategy you’re doing and how you want it to behave as
to what you want that refresh interval I’m just going to set it for one second
at this moment in time so yeah this displays a number of different features
which we’ll come on to in a minute but you can actually see here that the ones
that were most interested in are the automation rules you can see that as we
hover our mouse over the automation rules it comes up with a little
drop-down box and if we click on that drop-down box you can see that that’s
empty and that is because we have not created any automation rules to apply to
this particular market and you can all see also see the automation nominated
selection that’s something that will come on to as well because you can
select within the market something that you want the automation to apply to so
because we’re looking at horse racing if I click on that these are all of the
horses within the race so you can actually make automation very granular
you can basically say I want you to run this rule on this runner I want you to
run this rule on that runner I want you to do this or need to do that I want a
different rule in this market a different role in that market
you can get down to quite a deep level when you start working with automation
at this particular way but basically when we arrive on Guardian what we want
to do is populate the Guardian with the markets that were interested in
automating we need to set the Refresh interval and something that’s
appropriate for the market in which we’re operating in and then we can
actually start to write some automation now because racing goes one race after
another you can also get Bettinger to switch automatically between markets so
if you want it to refresh really really quickly and get displayed in your main
betangel interface if you select the autumn automatically switched market
function then basically that will switch into the market at a time appropriate –
so if we set that to 60 and tick that then 60 seconds before the start of the
race you just saw it do it there it will flick straight and put that into the
main market within betangel you may not want to do that you may find that you
want to trade something on your own on the main interface while the automation
works in the background for you on the same market or on a different market but
basically if you have the automatically switch that’s what it will do for you it
will jump to that market and put it into the main interface but in order to use
automation you don’t need to do that you can actually just let automation run in
the background completely but make sure that you set the Refresh interval
correctly if you want it to do that so you can see this race has just started
so Guardian is displaying that it’s in play it shows you that it went in play
at 17 45 and 17 seconds and when it suspends you will see the suspension
notice come up as well but anyway that’s the first stage is bring markets into
Guardian and then you can start writing some automation
so once you’ve brought to the markets in Tibet angel then we can start working on
doing some automation so I’m going to describe to you now how to create your
first file but what we’re going to do is we’re going to do a walk-through from
each of the individual components within the automation tool so you can
understand what each of them does so if I pick on a market I’m going to pick on
one a little bit later here you highlight the market within betangel
then you go to automation and then you can see you’ve brought up a range of
different things here we won’t discuss these at the moment because they’re not
important but if you go on to the Bette angel forum you can actually import
example files and that’s a great way we’ve got hundreds in there it’s a great
way of say he wants to lay the draw of a customer do any sort of strategy we’ve
probably templated it for you and the idea is you can import that into vet
angel and then play around with those settings and create your own automation
off of that basically we’ve done all the hard work for you you don’t have to do
all the donkey work we’ve done it for you and so if you want to import a rules
file you would do that from here however what we’re going to do is we’re going to
create a new rules file for the selected market so we’re saying we’ve selected
rippen at half-past seven and if we click on that option there then we will
create a rules file for that particular market now what’s actually happened it
may not happen on your screen the same way as it does mine it’s open up the
dialog box and a different screen so I’m going to pull that down so you can see
it on this screen but probably what will happen for you is it will appear on the
screen immediately in front of you but let me just pull that down for you so
you can see what betangel has done for us
so this is the automation rules editor so it’s worth me describing how this
works and what each one of these components is so you can fully
understand it before we even attempt to do anything so I’ll describe it from top
to bottom so you can get a handle on some of these things this area here is
when you’ve created rules files they will appear in this drop-down menu from
here now because we’ve created nothing there’s nothing there you can save or do
a save as here or delete the individual file and these are options to nest or to
create additional rules within the file that you’re doing we’ll show you this in
a second this area here is your canvas for the automation rules so in this area
here you will put all of your rules and you can actually put one rule here
another another another another another so you can actually create incredibly
complicated and complex automation or you can make it as simple as you like
but basically the more rules he put in here the more interesting and clever
things you can get better angel to do so yeah this is the canvas where you will
instruct pet angels what you will do and once we have created an individual rule
it will be in here and then Bettinger will follow that rule and then you would
save that a particular file and call it something so that you can bring it back
in to the drop down menu which will appear here it will appear here and it
will appear within Guardian at the bottom here this is where you use the
drop-down menus to construct and tell betangel exactly what you want it to do
so the first tab on the left here is the general area and when you use the
general area you have a number of options available to you so you can see
you have a rule type what is a rule type or let’s click on the drop down menu and
you can see what it is so the rule type defines what this particular rule is
going to do what is the automation going to do for you on this occasion so you
can see it can place a back bit a lay bet it can back all the selections lay
them all it can close a trade and it can close it and hedge that position by
using greening it can cancel unmatched bets you can hedge all of the selections
within market you can do a green all it can keep all your bets it can
take them all to SP export a profit and loss report it can play and alert or
show a message it can fix the order of market selections unfix them switch to
that market checkpoint match bets modifier signal clear signals you can
see it can do a lot of things some of these you’re thinking whoa what is that
such as the ones down towards the bottom here but they will be covered as we look
at different videos or you instruct yourself to do cleverer things but we’re
not we’re not going to go near those at the moment we’re going to keep it quite
simple for you so that you can start using these immediately so you know
let’s select place a back a bit and this will give you and show up other options
for us as we move through the menus at the top here now events in sports are
time-based so it will be after the event has turned in play it will be before the
event turns in play something will happen in those two time periods so this
rule trigger times basically defines the period in which this automation is
active so the rule type defines what is the automation going to do the trigger
times tell you when is it going to do it so we can see here we could have it
always armed it’s just permanently trying to do what you’re going to
instruct it to do you could fix the date and time at some point if you wish to or
you can make it relative to when the event is going to start so for football
matches starting at 3 o’clock in the afternoon you can said to it one hour
before the match starts do the following or you can say to it when it turns in
play after five minutes do the following or if you want to get a little bit more
in-depth into automation you can say when this rule has triggered and perform
this action then this rule is going to follow it
so if we’re going to place the back bit here we can say to it basically place
the back bit ten minutes before the event starts and this period this window
where the automation is going to be active is going to be between 10 minutes
to 0 minutes so you can see it’s going to be active for 10 minutes on this
particular market then we can basically say to it and I want this to trigger at
once so one times here it says and then if we wanted to do it 10 times it could
basically say do this event 10 times and wait 5 seconds before it tries to do it
again and you can get it to apply to a particular selection so it could be a
horse within this particular race it could be by Betfair order so it could be
the horse that row number 1 it could be but the favorite within this race or you
could nominate a selection on Guardian so you design a generic rule and then
you use the nominated selection to decide where you want to position that
or you could do this on any particular selection um so yeah the first screen
that you see here defines what you’re going to do and when you’re going to do
it and if necessary what you’re going to do it on so what you’ve decided that’s
what you need to do is then move on to give this position some characteristics
so you can see we’ve got these additional tabs up here and these are
designed to make the bet conditional on something but first of all actually you
know we’ve said places but we haven’t said how much so let’s have a look at
the parameters that we’re going to apply to it so the general tab sets up it’s
basically saying place a back bed for over ten minutes in this sort of manner
and this is basically going to say on the parameters how you’re going to do it
you could do it by fixed price you could say add odds of three or you could take
the best market price that’s available at that moment in time or you can see
you’ve got many other variations here it could be the second market price the
third above below a custom percent above below you could take the the cue from a
servant which you’ll need to read about in or watching other videos
or you could do it from a stored price you could actually get Bettinger to
define a price for you somehow and you put that price into here but basically
place a bet place an opening trade at a particular price this is what you’re
saying and these are all of the variations that you can get there are
significant numbers of them but again we’re going to keep it simple we’re just
gonna say place a bet at the best price then you also do need to define what the
stake will because obviously if you’re opening a trade why are you placing
about you need to know what stake you’re going to use so we could do a fixed
amount which is what we’ve got selected here or you can see that there are
options here depending upon how you want to place your bet so it could be by a
liability a book percentage a percentage of a balance you could take it from a
servant you could take it from a stored value it could be anything but again
we’re going to keep it simple we’re just gonna say place a trade for 10 pound now
if you’ve seen the global settings you’ll know what this section is all
about but if you haven’t seen the global settings then I suggest you go off and
do some research because this is a way of getting the position that you put
into the market to inherit some generic characteristics so we’re going to do
something simple again here I’m not going to explain each of these settings
because that will be for a separate video but we’re going to basically say
place an offset bet one tick above its current price that is all that we’re
going to do we’re going to do nothing more complicated than that
so an offset bet if you’re not familiar with it is better you will trigger a
price into the market and bet angel will offset that bet into a profitable
position as an unmatched bet in the market you’ll see it happen when we run
this particular rule once we’ve decided what we’re actually
going to do and how we’re actually going to do it we can apply some conditions to
it and what our conditions let’s have a look so you can see the conditions
canvas here is is blank but we can actually say to it place this bet
conditional on the following criteria so if I click on new you’ll see here that
it’s set comes up with a condition type and this or these are all of the
conditions that you can place so you’re saying place a back bet for this amount
in this manner subject to the following and these are all of the conditions that
you can apply to it so we’ll take the top one for example we could say only
place this bet if the in play condition the market is not in play
so we’re saying place this bet as long as the markets not in play and then you
can see it comes up in this box over here but you can add more than one if
you want to you can apply a whole range of conditions to that one individual
characteristic that you have within the market so we’re saying place our bet if
the market is not in play and some other condition in here as well so you can see
the fixed odds condition would be saying that the price is above a certain value
the relative odds condition robeast it would say it’s let’s have a quick look
you can see the selections back price is greater than the lay price of something
else you can see that’s a relative odds condition but we could do a historic
odds condition which is basically this is pre-populated from when I was messing
around a bit earlier you can see it’s saying place this bet if the current
price the back price 60 seconds ago is greater than something else so you can
actually see that you can make it conditional upon many different things
whether something’s in play whether it’s related to a certain price whether the
price 30 seconds ago a minute two minutes five minutes 10 was different
from what it is now there’s a whole gamut of things that you can do and
apply conditions to and you can you can nest them you can put them these are all
and so it’s saying place this bet if the market is not in play and the back price
is greater than 66th so go and greater than 2 and
and then a noun so you can add in multiple conditions underneath there if
I just go mad in here we’re saying the number of unmatched bets on the market
is equal to zero will basically say and then you could see we could put another
one in and stuff like that so I’m going to delete we’re gonna keep this one in
here but I’m gonna delete the one that’s slightly above it so if I delete that
you’ll you’ll see that what we’re saying now is place this position in the market
if the market is not in play and the number of unmatched bets on the market
is equal to zero so what we’re basically saying here is place a position in the
market but only when there’s nothing in the market so if I just wind you back a
little bit to the general tab you can see we said trigger ten times and wait
five seconds between arming what this is doing is it’s saying and only do this if
the markets not in play and there are no unright bets in the market so this stops
duplication of pets effectively so yeah there are a ton of conditions on here
and they’re very clever in terms of what they can do and how you can mix and
match it you’ll also see at the bottom we have the signal set and signal value
condition and the stored value condition basically signals our ways of sending up
flags in the market so it’s basically saying I’ve done the following set a
signal to indicate that I’ve done the following and then automation somewhere
further down the list can basically say okay I’m aware that you’ve done
something in there I will take that into account a signal is basically a flag to
say hello I’ve done this and you can use that to influence the outcome of what
you’re doing within the rest of the automation slightly more advanced
subjects will leave it for the moment stored values also allow you to create
values that can be shared between automation so say you’ve got something
in the wind market something in the place market can know what you’re doing
in the wind market you would create a stored value and pass that value between
the two bits of automation well say you’ve got something in the match odds
market and you’ve got something in the over-and-under market in a football
match again it can talk to each other so different bits of automation can talk to
each other even if they’re on different markets in Guardian doing
different things the stored value will allow you to share information between
two different sets of automation again slightly more complex and needs a
separate video but you can see here you can set a stored value and you can
decide how you want to the stored value to be stored and what you wanted to be
called and if you wanted to be rounded adjusted added all of these sort of
weird and wonderful things yeah signals set up flag stored values
allow you to pass values between different bits of automation in
different markets doing different things math these two things massively increase
the flexibility of automation not going to talk about them now but we just want
to do some simple stuff to get you started
so yeah let’s review what we’ve done going to place a back bit in the ten
minutes before the start of race we can place that bet ten times and we have to
wait five seconds before rearming it we’re going to place it at the best
market price for a fixed amount ten pan we’re going to offset it by one tick
that will only trigger when the markets not in play and the number of unmatched
bits in the market is equal to zero so we’ve created effectively our first
little bit of automation so that’s what that particular command is going to do
if we apply it you will see that that appears underneath the rule so that’s
the first part of this particular rule so the idea you’ve seen how you can
layer instructions within the automation what you can actually do is layer them
within the rules container as well so we could have 20 30 40 50 100 different
bits of automation in here can get you know really deep into the things that
you want to do and the bet engine will look at this file and run through each
one of these whenever you nominate this rule to run
so if I’m going to save this particular rule so that we’ve got it available to
us and this will be my first automation and if I okay that you can see it
appears in the drop down menu and if we apply that that will be saved and then
if we go into the actual market itself then you can see it’s now available for
us to put within that particular market so whichever market we go into you can
actually see that that is available to us and that means that we can apply that
automation to any of these markets that are coming up if we so wish to do so but
before we do that we’re going to amend it slightly and do a couple of other
little things before we set it loose in the market so now we’ve created that
rules file that there is a slight problem with it and that is that there
was no closing position in it so if we’ve ran it on one of these markets it
would place those positions in the market but it wouldn’t hedge those
positions so if we bring up we go to our drop-down menu here because we’ve just
created this file and then we click on edit rules file it will bring up that
dialog box again and then we can add in another part to our automation so what
I’m going to do here is I’m going to add a new rule to this file and this is
going to be a really simple one which is edge or my oops my positions and then if
I click on this and we are looking for green all selections we need to define a
moment at which this happens so I’m going to say basically five seconds or
donate an hour five seconds after the event starts time so just after it’s due
to have started because we’re doing a horse race horse races never go off on
time I mean you could modify this to make it a bit tighter or to hedge it or
to finish the automation that was before it could you you can see here it goes
from ten minutes to zero maybe go from ten minutes to ten seconds before the
start time in fact let’s do it Wow well I don’t we do that so if I go
in and amend this what I need to actually do
here is I’ll just apply this and I’ll go in and amend this so we’re going to say
from ten minutes out to ten seconds before starts time then I’m going to
amend this to ten seconds oops ten seconds before starts time to zero and
what I’m going to do is I’m going to say green all positions
two times every five seconds so what we’re going to say here is this first
rule runs to open a position between ten minutes and ten seconds before the start
and then this will basically run I need to apply that from ten seconds before
the start to zero so we’ve got no chance of this going in play basically but it
will hedge in those final ten seconds our overall position so you can see
we’ve layered the rule here this is the opening position this creates the
position in the market for us and this hedges the position but there’s no
reason why you couldn’t have 400,000 of them maybe slightly not that many but
lots of rules here that will allow you to do quite clever things and interact
with each other and so on but basically can you see the concept here this is the
position of our opening and this is us hedging a particular position so we’re
going to save that and that position is ready to apply to a market so really the
next thing that we should do is actually put this in motion on the market so you
can actually see what happens so yeah well wait for the next race to come
along you’ll apply it to the market and then we’ll have a look at how this
performs so let’s put this rule to use in a
market I have been a little bit slate arriving back at this market I got
distracted actually so apologize for that so we’re not far from the offer now
was certainly within sight that last ten minutes and to apply this rule to the
market all that I need to do is go to the automation rules and select it from
the drop down menu so we put that into the market and then that will be active
and and working you can see here it’s already placed bet it’s gotta that bet
through the market if we select the market and I just pull this up from here
you can actually see it logging all of the information about what’s going on
what it’s actually doing within that particular market and you can see the
number of matched bets that we’ve got the unmatched bets but we can also
monitor what’s going on within the market from within Guardian so can you
see I’m not actually doing anything here and it’s pinging away doing all of the
work for me I’m not you know I’m not even looking at the market I can
actually shuts down Guardian and it will do this for me in the background while
I’m actively trading any other market or if I want to I can double click on this
it will bring the market up for me and then we can actually see it’s doing all
of this activity for us dynamically so you can actually use the automation to
be active and in the market you can supplement it with something that you’re
doing but can you see it’s traded that automatically for us we only had a few
minutes for for it to actively work but you can see it’s gone into the markets
traded it for us and we’ve got a pound profit regardless of who goes on to win
this particular race we didn’t have to do anything qui wrote that simple rule
you can see it was active within the Guardian tool and you can see that even
before we turned to that market it was busy firing away orders for us so much
and you could be trading a completely different sport and it would still be
doing that in the background or you could actually be active and watching
that market and the automation could be triggering it for you while you keep an
eye on it but typically obviously the automation is designed to run completely
autonomously but there’s no reason why you couldn’t use it to supplement
existing trading if you wanted it to get you in or out of a position when you’re
actively trading as well but you can see it was a really simple rule we didn’t do
anything particularly complicated we set it up and we applied it to this market
and you can see in just the short amount of time they’re on the market about two
minutes or so it made us a pound profit and the race is about to start now so we
should see it some come off or suspend it there you go I can just see them
bolting out of the stalls here but our work is done here we can just move on to
the next market and go from there so if you wanted to we could apply that
automation rule to another market in the future or if we look up here you can see
it says here apply rules to all markets and if I click on that you can see it
applies that rule to every single market does every market that’s racing in front
of us basically ten minutes out it will start performing this same action and
repeating the same process and then hedging the position just before the
race gets underway but you can see you know we talked through that in great
depth in terms of the way that we created the automation it’s quite a
simple process but you can see it’s also incredibly effective you

9 thoughts on “Betfair bots – Automating your betting & Betfair trading using Bet Angel

  1. tried automation using various commercially available tools(including BetAngel) for more than 10 years..had winning days, even weeks but nothing sticks. I don't believe it can be done without coding your own software but perhaps I am just a bit thick 🙂 It's a great challenge but very very hard to do it properly and profitably

  2. Is it possible to use signals to keep track of scores in football? I only want to place a bet in the market if the match is a certain score.

  3. Hi, there I'm trying to set up a simple lay the fav automation betting bot and can't figure out how to make sure there are no more than one bet matched in the market…please advise

    Thanks

  4. Im trying this for the first time today, i have it all set up exactly as shown but my first 2 races are all negative? I thought it would give a profit on every race

  5. So if we ran this automation on every race we would make a pound profit on each one? I have come across this looking for automated football betting. But this looks good. Am I missing something?

  6. Can I ask, do you have to have the Bet Angel application open on your machine or can you set it all up and close your machine down say whilst at work for the day??

Leave a Reply

Your email address will not be published. Required fields are marked *