Horse Racing Bettors Companion — Technical details
A closer description of how the research is put together. In Detail remains the shorter guide.
19
Strategy LabzNEW
Strategy Labz
1. Purpose
Strategy Labz stores a member's strategy and can run it against races already stored.
A strategy is a name, a creator name, an optional description, and a set of rules. The rules read the current race and up to five earlier runs of the same horse. A test draws the profit and loss of the horses that matched. The strategy does not select a bet and does not say that a horse will win.
The introduction is the Strategy Labz page. This page is the specification of the signed-in tool.
2. Where it opens
Strategy Labz is the list. Add opens a new strategy. Edit opens one that already belongs to the signed-in account. A strategy that belongs to another account is reported as not on this account.
The list has two columns: private strategies and public strategies. Both columns are the signed-in member's own strategies.
3. The record
The name is required, unique on the account, and at most 120 characters. The creator name is required and at most 80 characters. A new strategy starts with the display name on the account.
The description is optional and at most 8,000 characters after it is cleaned. The editor offers a paragraph, bold, italic, a bullet list, a numbered list, indent, outdent, and three text sizes. Text colour and highlight each use a colour wheel and a brightness control. Colour, background colour and text size are kept. A paste is taken as plain text. A link, a script, a comment, and any other tag are removed.
A step is saved only when it holds a rule or a comparison. Empty steps at the end of the chain are not stored. A step requires that earlier run when a rule or a comparison left on needs it, including an empty step that sits before a later rule which is left on. A rule or a comparison that is turned off is still stored, and it does not require the run.
4. The runs
CR is the current race, the race inside the test dates. LR1 is the immediately previous run of the same horse. LR2 to LR5 walk back from there. An earlier run may fall outside the test dates. A non-finish counts as a previous run. A missing or zero figure on that run is not replaced from an older race.
If a required earlier run is missing, that current-race start is dropped, and the later runs are not checked. Every rule left on, on that run, has to pass. A rule that is turned off passes. Race rules and horse rules are separate lists, and both are required.
Race metrics go on This race. Runner, jockey, trainer, and jockey-and-trainer metrics go on The horse.
Finish position, won or placed, the comment, pace style, runner pace, runner finish, winner pace, winner finish, won by, and beaten by are known only after the race they belong to. On CR they can still be saved, and the test still applies them. While such a rule is switched on, the row shows a warning. The control is named “Why this rule cannot be made public”. It states that the figure is known only after the race, that the test can use it, that the graph is not a choice that could have been made before the off, and that the strategy stays private until the rule is turned off or removed. The same warning is shown for a comparison whose left side is one of those figures on CR, and for a comparison on any step whose right side reads one of them on CR. LR1 to LR5 do not raise it. A turned-off rule does not raise it.
5. How a value matches
At least keeps a number greater than or equal to the value. At most keeps a number less than or equal to it. Between keeps the two ends. Exactly keeps that number. One of keeps the chosen values. None of these, Exclude, and Exclude multiple leave the chosen values out. Any keeps a row where the figure is stored. Contains keeps a comment that includes the text.
A missing figure fails a rule that asks for it. Any is the rule that asks only that the figure exists.
Rank 1 is the top, except where a label says the order runs the other way. At least and at most compare the rank number. At least 3 keeps 3 and every larger rank. At most 3 keeps 1, 2 and 3.
Finish position is a rank from the front, and it can also be written from the back. 1 is first. −1 is last in that field, and −2 is second last. The minus number is turned into a place using the field size before it is compared, so the field size does not have to be known when the rule is saved. The same from-the-back numbers are accepted on BSP rank and on weight rank.
Distance is matched in whole furlongs, rounded down. A rule of 5 matches 5.00 furlongs and every distance above it that is still below 6.
Rank and rank multi are both offered. Rank gives each horse a different number. Equal figures are split by the stored order, so two equal tops become 1 and 2. Rank multi is a competition rank: equal figures share the first number they occupy, and the next number skips. Three joint tops are 1, 1 and 1, and the next is 4.
6. Race metrics
Course is entered as stored names, separated by commas. Class is 0 to 6. Going is Firm, Good to firm, Good, Good to soft, Soft, Heavy, Standard, Fast, Slow, Yielding, and Yielding to soft. Race code is Flat, All-weather, Hurdle, Chase, and NH Flat. Race type is Maiden, Novice, Nursery, Claiming, Seller, Classified, Auction, Listed, Group, Apprentice, Amateur, Fillies / mares, and NH Flat / bumper. Handicap is Handicap or Non-handicap. Month is January to December. Runners is the declared field.
Fav BSP, 2nd Fav BSP and 3rd Fav BSP are the win Betfair starting prices of BSP rank 1, 2 and 3. The three prices are copied onto every runner in the race.
Total odds is applied on the current race after the other rules and after any comparison. It adds the win Betfair starting prices of the horses still left in that race. A missing price, or a price that is not above 1, makes the total unknown, and a total-odds rule then removes the race. A prior run cannot see the total.
7. Horse metrics
Horse characteristic. Age. Gender and headgear are entered as the stored text, separated by commas.
OR/Weight/Claim. Official rating as a value, a rank, and a rank multi. Weight in pounds, a rank, and a rank multi. Jockey claim. From the previous run: the official rating, the average of those ratings in today's field, the percentage against that average, the rank among today's runners, and the rank multi. A previous run that did not finish, and has no official rating, shares last place on that rank. A stored rating is ranked as itself.
OR multi is the weighted mean of the official rating on LR1 to LR5. A missing rating is left out of the mean. More weight is given to the more recent run. The weights are not set on this screen, and they are not published here. The rank is that mean among today's field. Rank 1 is the highest mean.
Last OR cap keeps a last-OR rank inside the top percentage of the field. The percentage is of the declared runners. The threshold is the field size multiplied by the percentage, then divided by 100. Down rounds that number down. Up rounds it up. The result is kept between 1 and the field size. A cap passes when the rank is less than or equal to that whole number. Last OR collar passes when the rank is greater than or equal to the same kind of threshold. In a field of 12, 20% is 2.4. Down is rank 2. Up is rank 3.
Odds. BSP rank, BSP rank multi, and last BSP rank multi. Win BSP, place BSP, and SP, as decimal odds.
RFMS/RSPD/Annie. RFMS score, RFMS rank, RSPD score, RSPD rank, and Annie's rating. The rating is the stored word: Strong, Good, Average, Poor or Weak. The strategy does not rebuild it. No stored word fails a rating rule.
Then is offered on the current race, and only on RFMS rank and RSPD rank. It ranks those horses again after the other rules, using only the horses still left.
Finish information. Finish position. Won/placed is Yes or No. Comment is matched by Contains. Won by and beaten by use the stored margin: under 1 length, then 1 length through 8 lengths, then 9 or more.
Pace/Finish. Runner pace, runner finish, winner pace and winner finish use a fixed list, matched by one of, exactly, or none of these. Pace is 0 Unknown, 1 Rear / Held back, 2 Mid, 3 Prominent, 4 Led. Finish is 0 Unknown, 1 Weak, 2 Poor, 3 Average, 4 Good, 5 Strong. Winner pace and winner finish are the winner of that same race. Pace style is a separate list: Unknown, Led, Prominent, Mid, HeldUp, Rear.
Pace and finish each have a last 2, last 3, last 4 and last 5 total, and the same four averages. The window is the runs before the step the rule sits on. That step is not included. On CR, last 4 is LR1 to LR4, and last 5 is LR1 to LR5. On LR1, last 4 is LR2 to LR5. LR2 offers last 2 and last 3. LR3 offers last 2. LR4 and LR5 do not offer these. A missing run is left out of the total and the average. 0 Unknown is in the total and out of the average. Scores of 4, 3 and 2, with one run missing, total 9 and average 3. The horse is not removed only because a run inside the window is missing.
Last time out. Days from the previous run to this race. Rank multi, low to high, gives rank 1 to the shortest gap. Rank multi, high to low, gives rank 1 to the longest gap. Where no earlier run is stored, the days figure is 0.
Horse profitability. Runs, ROI, ROI rank, and ROI rank multi, each over 1 month, 3 months, 6 months and 12 months. The count uses runs before the date of the race being tested. That race is not included, and nor is any other run on the same day.
Other. Draw, as a number.
Dos and Doh are not offered in Strategy Labz. RFMS, RSPD, the official rating, and OR multi remain.
8. Jockey, trainer, and the partnership
Each of the three has rides, ROI, ROI rank, and ROI rank multi, over 1 week, 2 weeks and 1 month. The names are the jockey and the trainer on the card for the run being tested. The rides and the ROI use results before the date of that run. That run is not included, and nor is any other ride on the same day. The rules are stored on The horse.
9. Comparisons
A comparison is available on a numeric figure. The tests are at least, above, at most, below, equals, and does not equal.
The right-hand side is a number, another figure on the same run, or a figure on CR or on LR1 to LR5. The other figure is multiplied, then a number is added. A blank or zero multiply is treated as 1. A blank add is treated as 0. A missing figure on either side fails the comparison.
A comparison that names an earlier run causes that run to be loaded, even when the run has no rule of its own. A turned-off comparison is kept on the step and is not applied. It does not require that earlier run.
Finish position against an earlier finish compares the place numbers. 1 is first. A larger number is a worse finish.
10. The test
Test is available on a private strategy and on a public one. The dialogue opens with the end date three days before today, and the start date one year before that end. The dates can be changed. An end before the start is swapped before the run.
The market is Win, Place, or Both. Show graph runs the rules. The graph opens over the test. Closing the graph leaves the test open. Closing the test returns to the list. Escape closes the graph before it closes the test.
The stake starts at £1 and is kept only when it is above zero. £1 is £1 on each horse that matches, not £1 on the race. Two matching horses in the same race are two stakes. Win and place are separate lines, and Both stakes the horse on each line. The line is anchored at zero on the start date, and the last value is held through to the end date. Both draws a win line and a place line. Win percentage counts every horse that started. A horse that did not finish is a run and not a win. A winner with no win price above 1 is in that percentage and out of the profit. A horse that did not win loses the stake, even when the win price is missing. Place percentage uses the number who started. Five to seven pays 2. Eight or more pays 3. A handicap of 16 or more pays 4. Fewer than 5 pays no places. A place profit also needs a place price above 1. No place price leaves the horse out of the place profit. The result states how many winners had no win price above 1, and, when the place line is shown, how many runners in a place race had no place price above 1.
Settled bets are the rows that have a profit or loss in the chosen market. The largest drawdown is the deepest fall from a previous high, in stake pounds, and the high starts at zero. A losing streak is consecutive results below zero. A winner or a zero result ends the streak. The average is the mean of the completed streaks. Both reports the drawdown and both streaks for each line.
Largest winning odds are the five highest win Betfair starting prices above 1 among winners, largest first. Largest place odds that won are the five highest place prices above 1 among placed horses, including winners. Both shows both lists.
Commission is 2% of a winning profit. RFMS and RSPD use that same 2%. A saved flag that once left commission off is ignored. The graph note says when the 2% was taken.
A rule that uses a figure known only after the current race can still be tested. The strategy stays private while that rule is switched on. Turn it off, or remove it, and the strategy can be moved to public.
11. Public and the price
A new strategy is private. Move to public, and move to private, change only that flag. Delete asks for confirmation. From the edit screen, the confirmation says the delete cannot be undone.
Move to public is refused while any switched-on rule reads a finished-race figure on CR. The refusal opens the same explanation as the warning icon, and names the rules. Saving is refused in the same way if the strategy is already public. Turn every such rule off, or remove it, and the strategy can be public. A turned-off rule is ignored by the test and does not block the move.
A price can be saved only while the strategy is public. The charge is per month, per week, per day, or per bet. The amount has to be above zero and is stored to the penny. Make free clears the charge and leaves the amount stored. A private strategy that still has a charge shows that the price is kept for when it is public. A public strategy with no charge is Free.
The public column does not list another member's strategy. No payment is taken on this screen, and the strategy is not applied as a filter on the racecard or on Bet finder. Those are the marketplace steps described on the Strategy Labz page, which that page says are still being developed.
12. What is not claimed
A match is not a selection. A profit or loss on the graph is the past result of the horses that matched, at the stake entered. It is not a forecast, and it is not evidence that the same rules will profit again.
The strategy does not place a bet and does not send an order to a bookmaker or to Betfair. The decision remains with the user.
The same account, in the guide, is the In Detail chapter.
HRBC