{"id":9340,"date":"2013-12-29T16:25:04","date_gmt":"2013-12-29T16:25:04","guid":{"rendered":"http:\/\/www.betangel.com\/blog_wp\/?p=9340"},"modified":"2014-01-07T13:17:15","modified_gmt":"2014-01-07T13:17:15","slug":"betfair-football-trading-automation","status":"publish","type":"post","link":"https:\/\/www.betfairtradingblog.com\/blog_wp\/2013\/12\/29\/betfair-football-trading-automation\/","title":{"rendered":"Automating your football trading"},"content":{"rendered":"<p>Bet Angel contains a very powerful automation tools. In this article we look at how this can help automate a simple strategy on football.<\/p>\n<p><span style=\"font-size: 14px; line-height: 1.5em;\">Automation is as simple or complex as you wish. To help you we plan to create a library of simple automation files that you can download and build upon.<\/span><\/p>\n<p>For this automation strategy we will look at backing or laying the draw. We want to automatically place a bet just before kick-off then exit the trade for a profit or loss just before half time.<\/p>\n<p>Let\u2019s first create an automation file that will back first.<\/p>\n<div style=\"float: right; padding-left: 5px; text-align: center;\"><a rel=\"rokbox\" title=\"Bet Angel Guardian\" href=\"https:\/\/www.betangel.com\/blog_wp\/wp-content\/uploads\/2013\/12\/soccer-1.jpg\" class=\"rokbox-image\"><img decoding=\"async\" src=\"https:\/\/www.betangel.com\/blog_wp\/wp-content\/uploads\/2013\/12\/soccer-1-tn.jpg\" alt=\"Bet Angel Guardian\" class=\"\" \/><\/a><br \/>\nClick on image to zoom<\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2>Add a suitable market to Guardian.<\/h2>\n<p>Make sure the market is highlighted within the main Guardian window and click on \u2018Create a new rules file for selected market\u2019.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<div style=\"float: right; padding-left: 5px; text-align: center;\"><a rel=\"rokbox\" title=\"Bet Angel Guardian\" href=\"https:\/\/www.betangel.com\/blog_wp\/wp-content\/uploads\/2013\/12\/soccer-rules1.jpg\" class=\"rokbox-image\"><img decoding=\"async\" src=\"https:\/\/www.betangel.com\/blog_wp\/wp-content\/uploads\/2013\/12\/soccer-rules1-tn.jpg\" alt=\"Bet Angel Guardian\" class=\"\" \/><\/a><br \/>\nClick on image to zoom<\/div>\n<h2>Add the first rule.<\/h2>\n<p>If you think the score will be level at half time then we can back the draw and green up at that time.<\/p>\n<p>Call the rule \u2018Back\u2019, choose \u2018Place Back Bet\u2019 as the rule type.<\/p>\n<p>For rule trigger times we want to set this to trigger just before kick-off. We could choose 1 second if our PC clock is exactly synchronised with the watch of the referee. But I have chosen 30 seconds to give a bit of leeway.<\/p>\n<p>Now we need to make sure this goes on the draw. We could specify the draw by name. However, as we will want to use this with other matches then it\u2019s a good idea to specify by Betfair order. If we specify by name then the rules file will associate it with the draw <i>OF THIS PARTICULAR MATCH<\/i>. So when we go to use it on another match it will not work as expected.<\/p>\n<p>But we can choose to specify by row 3 in Betfair order. In match odds markets this is always the draw. As it is not market specific we can then use this file with other games.<\/p>\n<div id=\"attachment_9350\" style=\"width: 475px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-9350\" class=\"size-full wp-image-9350\" alt=\"Selection\" src=\"https:\/\/www.betangel.com\/blog_wp\/wp-content\/uploads\/2013\/12\/soccer-rules2.jpg\" width=\"465\" height=\"118\" srcset=\"https:\/\/www.betfairtradingblog.com\/blog_wp\/wp-content\/uploads\/2013\/12\/soccer-rules2.jpg 465w, https:\/\/www.betfairtradingblog.com\/blog_wp\/wp-content\/uploads\/2013\/12\/soccer-rules2-300x76.jpg 300w\" sizes=\"(max-width: 465px) 100vw, 465px\" \/><p id=\"caption-attachment-9350\" class=\"wp-caption-text\">Select by Betfair order<\/p><\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<div style=\"float: right; padding-left: 5px; text-align: center;\"><a rel=\"rokbox\" title=\"Bet Angel Guardian\" href=\"https:\/\/www.betangel.com\/blog_wp\/wp-content\/uploads\/2013\/12\/soccer-rules3.jpg\" class=\"rokbox-image\"><img decoding=\"async\" src=\"https:\/\/www.betangel.com\/blog_wp\/wp-content\/uploads\/2013\/12\/soccer-rules3-tn.jpg\" alt=\"Bet Angel Guardian\" class=\"\" \/><\/a><br \/>\nClick on image to zoom<\/div>\n<p>&nbsp;<\/p>\n<h3>Specify Parameters.<\/h3>\n<p>Next we want to specify our stake parameters. Here you can choose whatever level you are comfortable with. In this example I am going to risk \u00a3100 so I choose \u2018Stake by liability\u2019 and enter the sum of \u00a3100.<\/p>\n<p>I am not going to use any offsetting or greening with this bet so I leave that particular section set to \u2018none\u2019.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<div style=\"float: right; padding-left: 5px; text-align: center;\"><a rel=\"rokbox\" title=\"Bet Angel Guardian\" href=\"https:\/\/www.betangel.com\/blog_wp\/wp-content\/uploads\/2013\/12\/soccer-rules4.jpg\" class=\"rokbox-image\"><img decoding=\"async\" src=\"https:\/\/www.betangel.com\/blog_wp\/wp-content\/uploads\/2013\/12\/soccer-rules4-tn.jpg\" alt=\"Bet Angel Guardian\" class=\"\" \/><\/a><br \/>\nClick on image to zoom<\/div>\n<h3>Specify Conditions.<\/h3>\n<p>I want the bet to fire before the start of the event. Not whilst it is in play. So I can choose to apply the \u2018In play\u2019 condition. You may ask why do we need to do this as earlier we specified to place the bet 30 seconds before the start of the event? The reason is twofold: &#8211; a) Our computer clock may be out by a few minutes or b) the referee\u2019s watch may be out by a few minutes.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2>Adding a second rule to Bet Angel<\/h2>\n<p>Now we want to tell Bet Angel to exit this trade for a profit (or loss) just before half time. To do this we need to add a second rule to the rules file. Simply click on the \u2018+\u2019 sign in the top left corner.<\/p>\n<p>For some reason, a lot of people keep asking how to add multiple rules to the rules file. So for clarification I have highlighted it in this image. All you need to do is click on the green &#8216;+&#8217;.<\/p>\n<div id=\"attachment_9345\" style=\"width: 209px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-9345\" class=\"size-full wp-image-9345\" alt=\"Adding a second rule\" src=\"https:\/\/www.betangel.com\/blog_wp\/wp-content\/uploads\/2013\/12\/soccer-rules5.jpg\" width=\"199\" height=\"139\" \/><p id=\"caption-attachment-9345\" class=\"wp-caption-text\">Adding a second rule to rules file<\/p><\/div>\n<p>With this rule set the \u2018General\u2019 tab to the following:<\/p>\n<ul>\n<li>Rule name \u2013 Green Up<\/li>\n<li>Rule type \u2013 Green All Selections<\/li>\n<li>Rule Trigger Times \u2013 Relative to in-play time and set to 40 mins after event start time to 50 mins after event start time<\/li>\n<li>Allow rule to trigger up to 30 times and wait 10 seconds before rearming<\/li>\n<\/ul>\n<p>You might be asking yourself why do we need to fire this 10 times? It is possible for the market to be suspended when the rules triggers, for example, if there is a corner, a penalty or something else has suspended play. If we set to trigger 30 times with a ten second gap then we know our greening bet has got a good chance of successfully firing when the market is in play. Note there is no guarantee and it is still possible for the market to be suspended each time. But unlikely.<\/p>\n<p>In reality we would probably want to green up during the half time break. In this case we would set the rule trigger time accordingly. But I wanted to show you some of the thought process and market conditions that may upset an automation file.<\/p>\n<p>Another point to consider is the \u2018Relative to in-play time\u2019 trigger. If you open Bet Angel and the game has already started then this time does not mean since kick-off. It refers to the amount of time Bet Angel is aware the market has been in-play. Which is from the moment you opened it or added it to Guardian. If you added the market prior to kick off and Bet Angel has been connected ever since then this time will relate to the time since kick-off (less the time it takes Betfair to actually press the button that turns the market in play).<\/p>\n<p>There are no parameters to set and there are no conditions to set so click on \u2018Apply\u2019.<\/p>\n<p>Close the rules file and give the file a name. Such as \u2018Back the draw\u2019.<\/p>\n<p>Now do all that again but for laying the draw. If you think it will not be level at half time then use this automation file instead of the earlier one.<\/p>\n<p>An interesting point to note when choosing to lay is the liability staking method. If we choose \u00a3100 liability as before then Bet Angel will automatically calculate the stake in order to achieve this level of liability. For example, if the draw price is 3.45 then the stake used will be \u00a340.82.<\/p>\n<p>Both these files are available for download below. Right click to save them to your hard disk then choose &#8216;import&#8217; within Guardian automation to add them to your library.<\/p>\n<p><a href=\"\/download\/Back The Draw.baf\">Back The Draw<\/a><\/p>\n<p><a href=\"\/download\/Lay The Draw.baf\">Lay The Draw<\/a><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_9340\" class=\"pvc_stats all  \" data-element-id=\"9340\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/www.betfairtradingblog.com\/blog_wp\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n\n<div class=\"twitter-share\"><a href=\"https:\/\/twitter.com\/intent\/tweet?via=betangel\" class=\"twitter-share-button\">Tweet<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Bet Angel contains a very powerful automation tools. In this article we look at how this can help automate a simple strategy on football. Automation is as simple or complex as you wish. To help you we plan to create a library of simple automation files that you can download and build upon. For this [&hellip;]<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_9340\" class=\"pvc_stats all  \" data-element-id=\"9340\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/www.betfairtradingblog.com\/blog_wp\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1359,1],"tags":[629,1149,18,801],"class_list":["post-9340","post","type-post","status-publish","format-standard","hentry","category-football_trading_strategies","category-using_bet_angel_software","tag-automated","tag-automation","tag-betfair","tag-football-trading"],"_links":{"self":[{"href":"https:\/\/www.betfairtradingblog.com\/blog_wp\/wp-json\/wp\/v2\/posts\/9340"}],"collection":[{"href":"https:\/\/www.betfairtradingblog.com\/blog_wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.betfairtradingblog.com\/blog_wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.betfairtradingblog.com\/blog_wp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.betfairtradingblog.com\/blog_wp\/wp-json\/wp\/v2\/comments?post=9340"}],"version-history":[{"count":33,"href":"https:\/\/www.betfairtradingblog.com\/blog_wp\/wp-json\/wp\/v2\/posts\/9340\/revisions"}],"predecessor-version":[{"id":9425,"href":"https:\/\/www.betfairtradingblog.com\/blog_wp\/wp-json\/wp\/v2\/posts\/9340\/revisions\/9425"}],"wp:attachment":[{"href":"https:\/\/www.betfairtradingblog.com\/blog_wp\/wp-json\/wp\/v2\/media?parent=9340"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.betfairtradingblog.com\/blog_wp\/wp-json\/wp\/v2\/categories?post=9340"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.betfairtradingblog.com\/blog_wp\/wp-json\/wp\/v2\/tags?post=9340"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}