← Blog · 📝 Article · 25 November 2026
Backtesting Lay Systems: A Practical Guide for Racing Bettors
Backtesting a lay system means applying a fixed rule to past races and working out what it would have made after commission, with liability and real prices modelled honestly. Paper trading is the second test: you follow the same rule on future races, with no money down. A system needs both. A backtest finds out whether the idea has an edge, and a paper trade finds out whether you can get that edge in real time. Our own signals are published before every race and every result is recorded, so a lay system’s forward record can be checked from day one.
This guide is for people who bet on horse racing and use, or want to use, an exchange. It assumes you know what laying is. If not, start with our guide to what lay betting is.
TL;DR
- A backtest runs a written rule over historical races. Paper trading runs the same rule on live races without staking. Do the backtest first, then the paper trade.
- Use Betfair Starting Price (BSP) and real commission, and track liability, not just stake. Lays lose far more than they win on a single bet, so the strike rate must clear a break-even line.
- Split your history by date. Tune on the earlier part, then test once on the later part.
- Expect live results to be worse than the backtest, and judge the system on a long enough run of bets.
- Published-in-advance signals give you a forward record that cannot be reshaped after the fact.
Table of Contents
- What backtesting a lay system involves
- Backtesting versus paper trading lays
- Getting the data you need
- Simulating a lay bet properly
- What to measure, and how many bets are enough
- Why backtests look better than live results
- How to paper trade lays before risking money
- Testing a signal service the same way
- Our perspective
- Try the signals with a forward record
- FAQ
- Sources
What backtesting a lay system involves
A lay system is a rule that picks a horse to lose. For example: lay the market’s weakest-looking runner in UK handicaps with eight or more runners, at odds under 6.0. Backtesting asks a simple question: if you had followed that rule on every qualifying race in the past, what would your profit and loss have been?
The work has four parts:
- Write the rule down before you look at results. Every filter (race type, field size, price range, time of bet) must be fixed in advance.
- Get historical data with prices, results and non-runners.
- Simulate each bet with stake, liability, commission and settlement.
- Measure the outcome and test it on data the rule has not seen.
The British Racecourses guide describes the process as applying a model to a large set of historical races, for example 5,000, to calculate bets, winners, average odds, total stakes, profit, ROI, maximum drawdown and the longest losing run. It stresses that the test only helps if it reflects realistic betting conditions. Most of the rest of this article is about what “realistic” means for lays.
Backtesting versus paper trading lays
The two are often mixed up.
| Backtest | Paper trade | |
|---|---|---|
| Data | Past races | Live, upcoming races |
| Speed | Thousands of bets in an afternoon | One day of racing at a time |
| Main risk | Hindsight, overfitting, unrealistic prices | Discipline, small samples, slow evidence |
| What it proves | The idea had an edge in the past | You can find and record the price in real time |
A backtest cannot be fooled by luck on tomorrow’s card, but it can be fooled by you, because you chose the rule after seeing the results. A paper trade cannot be tuned after the fact, because the bets are logged before the race. That is why the second test is worth the wait.
Getting the data you need
For a lay backtest you need, per runner: the price you would have taken, the result, whether it ran, and a closing price to compare against.
In the UK, the main source is Betfair’s own history. The Betfair Data Scientists’ Automation Hub says that historical Stream API data is available since 2016 in three tiers: a free basic tier with one-minute snapshots and no volume, a paid advanced tier at one-second intervals with volume, and a paid pro tier at 50 milliseconds. It also lists a free CSV racing resource with BSP, winner and matched-price ranges by runner.

Two practical points from the same Hub’s Python tutorial on betting angles: it shows how to pull BSP, last traded price, volume-weighted average price shortly before the off and volume from the stream files, and it notes the historical files lack runner metadata, which you must add from racecard data.
Bookmaker fixed-odds archives exist, but they do not include exchange prices, so they are the wrong data for a lay system you will place on an exchange. If you want help finding timestamped price datasets, this piece on comparing horse racing odds properly covers how prices differ between sources.
Simulating a lay bet properly
This is where most home-made backtests go wrong. A back bet risks the stake. A lay bet risks the liability, which is the stake multiplied by the odds minus one.
A TNT Sports review of the exchange gives the basic mechanics: laying at evens against a £10 backer’s stake means you keep the £10 less commission if the horse loses, or pay out £10 if it wins. Commission is charged on net winnings in a market, and the rate depends on your account.
Here is a worked example with 5% commission as an illustration:
- You lay a horse at 4.0 for a £10 backer’s stake.
- Liability: £10 × (4.0 − 1) = £30.
- If the horse loses, you win £10, less 5% commission: £9.50.
- If it wins, you lose £30.
Break-even strike rate is the share of lays that must win for you to come out level: £30 ÷ (£30 + £9.50) = 75.9%. Without commission it would be 75.0%. The same logic at 3.0 gives the familiar 66.67% figure we cover in our break-even lay odds article. You can run your own prices through the lay betting calculator.
To simulate lays honestly in a spreadsheet or script:
- Fix the stake rule. Fixed liability is the cleanest for lay testing, because every losing bet costs the same. See fixed liability staking and capping lay losses at 1 to 2%.
- Apply commission to every winning market, and use your real rate.
- Use a price you could have got. BSP is the usual choice for backtests, since pre-race prices you saw in hindsight may not have been available in size.
- Remove non-runners and voids, and apply Rule 4 style deductions where relevant to the market you use.
- Record liability at risk as well as profit, so you can see the true drawdown.
If you want to understand liability before building anything, our explainer on lay liability walks through it.
What to measure, and how many bets are enough
Strike rate alone is not a result for a lay system. A system that wins 85% of its lays can still lose money if the average price is high enough. Compare the strike rate to the break-even line for the prices you are laying at.
Report at least these:
- Number of bets and number of losing selections (the lay wins).
- Strike rate against break-even strike rate.
- Profit after commission and yield: profit divided by total liability or total stake, stated clearly which one.
- Maximum drawdown and longest losing run. Lay systems tend to produce long quiet winning runs broken by single large losses, so the drawdown is the number that tests your nerve.
- Profit by month. If one or two good weeks carry the whole result, the system is fragile.
On sample size, there is no magic number. The honest answer is that the more the average price rises, the more bets you need, because each loss is bigger relative to each win. A few hundred lays can produce a flattering strike rate by chance. Aim for thousands of bets in the backtest, and treat any small sample as a hint, not proof.
Why backtests look better than live results
Expect a gap. These are the usual causes.
Look-ahead bias. Your rule uses information that was not available at the time of the bet, such as a final price when you would have bet earlier, or a result-dependent filter.
Overfitting. Try enough combinations of filters and one will look brilliant by chance. Every version you test makes a good result worth less, so keep a log of how many versions you tried.
Unrealistic fills. A backtest assumes the whole bet is matched at the recorded price. Live, the price may move or be taken before you arrive, particularly on thin markets. A backtest on busy races will not carry over to quiet ones.
Survivorship and selection. Testing on big meetings and then betting on small ones changes the market you face.
Ignoring costs. Commission, and for heavy winners the Betfair Premium Charge, reduce the net result. Check Betfair’s current terms for your account.
The fix for most of this is a date split. Tune your rule on an earlier period, say 2019 to 2023, then run the finished rule once on a later period, say 2024 to 2026. Never go back and adjust after seeing the second result, or it stops being a test.
Public experience points the same way. One bettor’s write-up of a six-month automated Betfair project reported that paper results shrank considerably once bets were placed live. Treat it as an anecdote, not a rule, but plan for the same direction of travel: assume live results will be lower and decide in advance how much lower you can accept.

How to paper trade lays before risking money
A paper trade is your second, forward-looking test. It is simple if you are strict.
- Freeze the rule. Write the exact selection criteria and the staking rule, with the date.
- Log each lay before the race. Record the horse, the time, the price you could see on the exchange, and the liability. A screenshot or timestamped note is better than memory.
- Log the price you could realistically have been matched at, not the best price on screen. If the available size was smaller than your intended stake, note it.
- Settle after the race with the same commission and liability maths as the backtest.
- Compare with the backtest on strike rate, average price and drawdown. Do not look only at profit.
- Run it long enough. A few days tells you nothing. Several weeks of racing, and a few hundred bets, starts to say something.
The hardest part is discipline: no skipped selections that you did not like the look of, and no extra bets you added afterwards. If your paper results land close to the backtest, you have a reason to go live with small liability. If they are well below, the backtest was probably flattering you.
Testing a signal service the same way
The same discipline applies to any signal source, including ours. What matters is that selections exist before the race and the record cannot be edited later. That is how DonkeyRadar works: all signals are published before races, and results are tracked and made available as a public record. Our statistical method uses historical strike rates and live market prices to find the weakest runner in UK, Australian and US races, and we report a strike rate of over 85%.
That gives you a ready-made forward record to compare with your own work. Take the published signals, apply your own liability rule and commission, and see what the maths says at the prices you could have obtained. Our guide to a data-driven Betfair lay betting strategy and the checklist for picking horses to lay show how the selection side works.
If you are new to exchanges, run the three pre-bet checks before any real lay.
Our perspective
A lay system is only as good as the record behind it. We think the right order is: write the rule, publish the selection before the off, track every result including the losses, and let the numbers build up in public.
That is why our signals go out before the race and our results history is kept. A losing lay is part of the record. It happens, and transparency is the whole point. A system that wins most of the time but loses big when it loses has to be judged against break-even, liability and commission, and we encourage you to do that sum yourself.
For the bettor who wants to go further, our dashboard links straight to the Betfair Exchange, signals carry staking tier grading, and API access is there if you want to feed signals into your own trading software and test them your way.
Donkey
Try the signals with a forward record
DonkeyRadar Free gives you the daily lay signals, so you can start paper trading against published selections straight away. DonkeyRadar Pro is £29 per month after a seven-day trial and adds real-time alerts by email and Telegram, the full results history and API access for trading software.

See both plans on the DonkeyRadar home page.
FAQ
Is paper trading lays the same as backtesting?
No. Backtesting applies a rule to past races, which is quick but open to hindsight. Paper trading applies the rule to upcoming races and logs the bets before they run. Use the backtest to find an idea, then the paper trade to confirm it works in real time.
What data do I need to backtest lays on Betfair?
You need per-runner prices, results, non-runners and ideally Betfair Starting Price. Betfair publishes historical data going back to 2016, with a free basic tier and paid tiers with more detail. Add commission and liability to every simulated bet.
How many bets do I need before trusting a lay system?
There is no fixed number, but a few hundred is too few for most lay systems, because one big loss can undo many small wins. Look for thousands of bets in the backtest and several weeks of paper trading, and check that profit is spread across many days.
Why is my live result worse than my backtest?
Usually because of unrealistic prices, partial fills, commission and a rule that was tuned to the past. Test on a later period you did not tune on, use BSP or realistic matched prices, and start with small liability when you go live. Bet only what you can afford to lose, and use the support at BeGambleAware if betting stops being fun.
Sources
- Pricing Data Sources, The Automation Hub (Betfair Data Scientists)
- Automated Betting Angles in Python, The Automation Hub
- How to Test a Horse Racing Betting Model, British Racecourses
- Six months, 6,314 real bets, DEV Community
- BeGambleAware