{"id":9476,"date":"2014-01-13T12:31:47","date_gmt":"2014-01-13T12:31:47","guid":{"rendered":"http:\/\/www.betangel.com\/blog_wp\/?p=9476"},"modified":"2014-03-04T21:43:26","modified_gmt":"2014-03-04T21:43:26","slug":"simple-tennis-automation","status":"publish","type":"post","link":"https:\/\/www.betfairtradingblog.com\/blog_wp\/2014\/01\/13\/simple-tennis-automation\/","title":{"rendered":"Simple Tennis Automation"},"content":{"rendered":"<p>With the Australian tennis open about to start, I thought I would look at automating some tennis markets and see what can be done.<\/p>\n<p><span style=\"line-height: 1.5em;\">The Australian Open is mens tournament a is played over five sets, there is no tie breaker in the final set either. Out of the grand slams, only the US Open has a tie breaker in the final set. Without a tie break matches can, in theory, go on indefinitely. Although the longest ever grand slam market was the Isner-Mahut match at the 2010 Wimbledon Championship.<a href=\"https:\/\/www.betangel.com\/blog_wp\/?s=mahut\">We\u00a0<\/a><\/span><a href=\"https:\/\/www.betangel.com\/blog_wp\/?s=mahut\">remember<\/a><span style=\"line-height: 1.5em;\"><a href=\"https:\/\/www.betangel.com\/blog_wp\/?s=mahut\">\u00a0it well<\/a>!<\/span><\/p>\n<p><span style=\"line-height: 1.5em;\">Automation on Tennis can pose a few challenges. I<\/span>t is common for games to start later than the advertised event start time. If the first game on court number 1 over runs by an hour then the second scheduled game will be delayed. So using event start times when setting up any automation is could cause problems.\u00a0Luckily, Bet Angel automation also provides the relative to in-play event time we can use.\u00a0But play could be suspended due to rain? So it&#8217;s important to think through all scenarios when preparing automation.<\/p>\n<p>There are things we can do without automation to give ourselves a decent chance of success.<\/p>\n<p>The strategy I\u2019m going to automate here is to LAY one of the players when the price hits a certain range. Let\u2019s say between 1.25 and 1.50. I\u2019m going to offset with greening.<\/p>\n<p>We can choose to offset by 1 tick or 10 ticks. The more ticks we use to offset the less chance we will have of our trade being successful.<\/p>\n<p>One exercise I would recommend you undertake is to see what effect changing this value has on your strike rate. You might have to analyse quite a few markets but this would be good practice and is what all professional traders have to do when approaching a market.<\/p>\n<p>First we need to create the LAY bet. Add a market to Guardian and click on the automation tab. Make sure the market is highlighted then click on \u2018Create a new rules file for selected market\u2019<\/p>\n<h2>General Tab<\/h2>\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\/2014\/01\/auto-1.jpg\" class=\"rokbox-image\"><img decoding=\"async\" src=\"https:\/\/www.betangel.com\/blog_wp\/wp-content\/uploads\/2014\/01\/auto-1sml.jpg\" alt=\"Bet Angel Guardian\" class=\"\" \/><\/a><br \/>\nClick on image to zoom<\/div>\n<p>Call the rule \u201cLay with offset\u201d and select \u2018Place Lay Bet\u2019 as the rule type.<\/p>\n<p>For the rule trigger times we need to take into account any possible delay. If we are actually watching the market we can adjust these figures accordingly. But if you plan to leave this automation running whilst you are away from your computer then you need to specify some kind of window. Here I have set from 0:00:00 after event goes in play to 10 hours.<\/p>\n<p>I have chosen to apply the rule to selection in row 1 (Betfair order) as this will not change during the game.<\/p>\n<p>And finally I want the rule to trigger up to ten times. You may wish to adjust this as you get more comfortable with automation.<\/p>\n<h2>Parameters Tab<\/h2>\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\/2014\/01\/auto-2.jpg\" class=\"rokbox-image\"><img decoding=\"async\" src=\"https:\/\/www.betangel.com\/blog_wp\/wp-content\/uploads\/2014\/01\/auto-2sml.jpg\" alt=\"Bet Angel Guardian\" class=\"\" \/><\/a><br \/>\nClick on image to zoom<\/div>\n<p>Here I have chosen to place the bet at the best market price. We could choose to ask for a better price but with this strategy I want as many bets to be matched as possible. I\u2019m going to use a liability staking method. Since we are placing LAY bets, Bet Angel can automatically calculate the stake required in order to risk \u00a310 with each bet.<\/p>\n<p>&nbsp;<\/p>\n<p>In the global settings area I have chosen to use offset with greening. Offset by 1 tick with a 10 second fill\/kill delay. This is a safeguard against the initial bet not being matched in fast moving markets.<\/p>\n<p>Since we are using offsetting I have to specify the number of batches used before the offset bet is placed. I just want the whole thing to be done at once so specify the default of 1.<\/p>\n<h2>Conditions Tab<\/h2>\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\/2014\/01\/auto-4.jpg\" class=\"rokbox-image\"><img decoding=\"async\" src=\"https:\/\/www.betangel.com\/blog_wp\/wp-content\/uploads\/2014\/01\/auto-4sml.jpg\" alt=\"Bet Angel Guardian\" class=\"\" \/><\/a><br \/>\nClick on image to zoom<\/div>\n<p>I want to set a couple of conditions for this automation. Firstly, I want the bets to only be placed if the match is in-play.<\/p>\n<p>So click on \u2018New\u2019 and add the InPlay condition and set to \u2018The market is in play\u2019<\/p>\n<p>Secondly, I don\u2019t want to pour all my money down the drain in case the market decides to never match an offset bet. So I can choose to add a condition that says only place a bet if there are no more than 2 unmatched bets in the market.<\/p>\n<p>This is done by clicking on \u2018New\u2019 and selecting the Number of Unmatched Bets Condition and setting to less than 3. This says this condition is met if there is 0, 1 or 2 unmatched bets in the market.<\/p>\n<p>&nbsp;<\/p>\n<p>And now we can add the price condition. Since we want the bet to trigger if the price falls between 1.25 and 1.5 we need to add two more conditions.<\/p>\n<p>Click on \u2018New\u2019 and select \u2018Fixed Odds Condition\u2019 as the condition type. Choose the current selection (you shouldn\u2019t need to change this) and choose the selections \u2018Lay price\u2019 is \u2018Greater than\u2019 1.24.<\/p>\n<p>Do the same again and this time choose the selections \u2018Lay price\u2019 is \u2018Less than\u2019 1.51.<\/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\/2014\/01\/auto-5.jpg\" class=\"rokbox-image\"><img decoding=\"async\" src=\"https:\/\/www.betangel.com\/blog_wp\/wp-content\/uploads\/2014\/01\/auto-5sml.jpg\" alt=\"Bet Angel Guardian\" class=\"\" \/><\/a><br \/>\nClick on image to zoom<\/div>\n<p>We can repeat the above and add a second rule to the rules file to cover the other player. Using the same parameters and conditions add the new rule to the file using the green \u2018+\u2019 button in the top left hand corner.<\/p>\n<p>Now we can apply this rule to a market. If you want to be lazy then I have provided the rule here for you to download. Right click and choose \u2018Save as\u2019 then use the import rules file button in Guardian automation to add it to your library of rules files.<\/p>\n<p>I hope you enjoy using this. Try tweaking it to see what happens. Use a larger tick offset for example.<\/p>\n<p>And remember to use practice mode until you are familiar with how the automation works and are satisfied it is suitable for the markets you wish to trade.<\/p>\n<p><a href=\"https:\/\/www.betangel.com\/download\/Simple%20Tennis%20Automation.baf\">Download Simple Tennis Automation File<\/a><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_9476\" class=\"pvc_stats all  \" data-element-id=\"9476\" 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>With the Australian tennis open about to start, I thought I would look at automating some tennis markets and see what can be done. The Australian Open is mens tournament a is played over five sets, there is no tie breaker in the final set either. Out of the grand slams, only the US Open [&hellip;]<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_9476\" class=\"pvc_stats all  \" data-element-id=\"9476\" 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":[1],"tags":[1149,9],"class_list":["post-9476","post","type-post","status-publish","format-standard","hentry","category-using_bet_angel_software","tag-automation","tag-tennis"],"_links":{"self":[{"href":"https:\/\/www.betfairtradingblog.com\/blog_wp\/wp-json\/wp\/v2\/posts\/9476"}],"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=9476"}],"version-history":[{"count":7,"href":"https:\/\/www.betfairtradingblog.com\/blog_wp\/wp-json\/wp\/v2\/posts\/9476\/revisions"}],"predecessor-version":[{"id":9502,"href":"https:\/\/www.betfairtradingblog.com\/blog_wp\/wp-json\/wp\/v2\/posts\/9476\/revisions\/9502"}],"wp:attachment":[{"href":"https:\/\/www.betfairtradingblog.com\/blog_wp\/wp-json\/wp\/v2\/media?parent=9476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.betfairtradingblog.com\/blog_wp\/wp-json\/wp\/v2\/categories?post=9476"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.betfairtradingblog.com\/blog_wp\/wp-json\/wp\/v2\/tags?post=9476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}