Full tutorial | Automating your betting & Betfair trading | Bet Angel | Peter Webb
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.