Skip to content
Platform

Find & understand

Discover companiesFrom the market to your shortlistStock ScreenerSee a shortlist take shapeCompany researchUnderstand the business behind a stock

Test & prepare

Reality CheckPut an investing rule in perspectivePlan your riskWork out what is at stake

Keep developing

Review & learnReflect on decisions and build knowledgeAll workspace toolsFind your next starting point
Reality CheckAcademyPricing
Sign inGet started free
  1. Academy
  2. /
  3. Backtesting, statistics, costs and validation
  4. /
  5. What a backtest answers, and what it cannot

Lesson 91 of 120 · Advanced · 15 min read

What a backtest answers, and what it cannot

Try it: Test a rule yourselfFree, no account needed.

On this page

· 11 sections
  1. The question a backtest actually answers
  2. What a backtest cannot tell you
  3. Your simulator is a model, and you built it
  4. Every backtest is a stack of assumptions
  5. Write the hypothesis before you write the code
  6. Reading an equity curve without being fooled
  7. Working it through
  8. Where this goes wrong in practice
  9. What to do with this
  10. Knowledge check
  11. Glossary
Back to top

What you will be able to do

  • State in one sentence the only question a backtest actually answers
  • Name four claims people read out of a backtest that a backtest cannot supply
  • Identify the seven layers of assumptions stacked underneath any result
  • Write a four-part hypothesis - mechanism, prediction, scope, falsifier - before running code
  • Read an equity curve for concentration and timing rather than for slope

Read these first

  • Measuring slippage in Orders, execution, slippage and microstructure
  • Hidden costs in Orders, execution, slippage and microstructure

A backtest is not a prediction, not a proof, and not a performance record. It is one narrow question asked of one fixed dataset under a long list of assumptions you chose, most of which you did not write down. This track exists because the gap between what a backtest answers and what people believe it answers is where almost all of the money goes. The first repair is to state the question precisely enough that the answer can be wrong.

The question a backtest actually answers

Strip away the equity curve and the statistics table and a backtest answers exactly one thing: if this specific rule had been applied mechanically to this specific historical data, with these specific assumptions about fills and costs, this is the sequence of trades it would have produced. Every word in that sentence is load-bearing, and the whole of this track is an unpacking of it.

Notice what is absent. There is no claim about the future. There is no claim that the rule captures a real mechanism rather than an accident of the sample. There is no claim that the fills are achievable. There is not even a claim that the data you fed it is what a person would have seen at the time. Those are four separate claims, and each of them requires its own evidence. A backtest supplies none of them. It supplies a sequence of hypothetical trades, and everything else is inference you add on top.

This sounds deflating and it is meant to. But the narrowness is also what makes the tool useful. A backtest is the cheapest way in existence to find out that an idea is dead. It cannot confirm, but it can refute, and refutation is worth a great deal when the alternative is discovering the same thing with real money over six months. Treat it as a filter that removes bad ideas rather than a machine that certifies good ones, and it earns its place immediately.

Falsification is the whole value

The asymmetry deserves stating plainly. If a rule loses money across a long history with generous cost assumptions, you have learned something durable: the rule does not work in the way you thought, at least not on this data. If the same rule makes money, you have learned almost nothing, because a large number of rules make money on any particular history for reasons that have nothing to do with the mechanism you had in mind. The information content of a failure is high and the information content of a success is low. Design your process to exploit that asymmetry instead of fighting it.

What a backtest cannot tell you

Four things are routinely read out of a backtest that a backtest cannot supply. Knowing which is which saves more capital than any statistical refinement.

Whether the effect is real

A backtest measures a pattern in a sample. Whether that pattern comes from a persistent feature of how the market works, or from the particular sequence of events in your window, is not a question the backtest can answer about itself. It is answered by out-of-sample testing, by a mechanism you can articulate, and by the number of alternatives you tried before landing here. Lessons five, seven and eight are entirely about this.

Whether you could have obtained those fills

A simulator prints a fill whenever your rule says to trade. The market does not. Size relative to available depth, the spread at the moment of the signal, whether anyone was quoting that instrument that day, whether the position was borrowable to short, whether the venue was open: none of that is checked unless you check it. Lesson four is about turning this from an afterthought into the spine of the exercise.

Whether the future resembles the past

Market structure changes. Tick sizes change, fee schedules change, the mix of participants changes, the products available change. A result driven by a feature of the market that no longer exists is not a forecast; it is a history lesson. This is not an argument against long samples, it is an argument for asking what changed and whether the mechanism you claim depends on it.

Whether you can actually run it

The simulator never hesitates, never oversleeps, never gets bored during a flat stretch, never doubles size after two losses, and never switches the rule off in the drawdown that precedes the recovery. You will do at least one of those. A curve that requires perfect execution of a mechanical rule through a long, ugly stretch is a curve that describes a machine and not you, and the difference shows up in the account rather than in the report.

A backtest is a hypothesis generator

The strongest honest reading of a good backtest is that a rule survived an attempt to kill it. That is a reason to keep testing, not a reason to trade. Everything in the remaining nine lessons is a different attempt to kill it.

Your simulator is a model, and you built it

People talk about a backtest as though it were an observation. It is not. It is the output of a program that models a market, and every modelling decision in that program is yours. The market did not decide that your order fills at the closing price. You did, probably by default, probably without noticing.

Here is a partial list of decisions embedded in even a simple daily simulator. When is the signal computed, and from which bar. When is the order sent. At what price does it fill. What happens if the intended fill price never traded. What happens on a halted or non-trading day. How is position size determined, and from which account value. When are dividends credited. What happens on a split. How is a delisting handled. Whether shorts are permitted, and at what borrow cost. What the commission is. Whether partial fills exist.

Each of those has a default in whatever framework you are using, and the defaults were chosen for convenience rather than for realism. A default that fills at the closing price of the signal bar is the most common single source of fake results in amateur work, and it is almost never noticed, because the code looks correct and runs without error. The failure is silent by construction.

The rule for reading someone else's result

When you are shown a backtest, by a vendor, a forum post, a book, or your own past self, the first question is never what the returns were. It is: at what price does a trade fill in this simulation, and when was that price knowable. If that question cannot be answered in one sentence, the result is uninterpretable, and no amount of statistical polish downstream repairs it.

Every backtest is a stack of assumptions

The useful mental image is a stack. At the bottom is the data. Above it, the point at which each field became knowable. Above that, the rule. Above that, the execution model. Above that, the cost model. Above that, the position sizing. At the top, the summary statistic you actually look at.

A defect anywhere in the stack propagates upward, and it arrives at the top disguised as a result. This is why debugging a backtest by staring at the equity curve almost never works. The curve is the last thing in the chain and it has no memory of where it came from. You debug a stack by inspecting each layer against something outside the stack.

  1. Data layer. Is the price series adjusted, and for what? Are delisted names present? Does the universe as of a given date contain only what existed then?
  2. Timing layer. For each input the rule reads, at what moment did a person have access to that exact value? Lessons two and three live here.
  3. Rule layer. Is the rule computable from information available at decision time, without reference to any later bar?
  4. Execution layer. Where does the fill occur, and is that price one you could plausibly have received at your size?
  5. Cost layer. Spread, impact, commission, statutory fees, borrow, financing. Lesson four.
  6. Sizing layer. Is size a function of account value that the simulator knows and you would not have?
  7. Statistics layer. Is the number quoted supported by the number of independent observations behind it? Lessons six through nine.

Write the stack out for your own work once and keep it. Most arguments about whether a result is believable turn out to be arguments about which layer someone is talking about, and the list resolves them in seconds.

Write the hypothesis before you write the code

The single most effective discipline in this entire track costs nothing and takes ten minutes. Before you run anything, write down what you believe and why, and what result would change your mind.

A usable hypothesis has four parts. The mechanism: why should this pattern exist, in terms of something a participant does. The prediction: what specifically should happen, in a direction and a rough magnitude. The scope: on which instruments, in which conditions, over what holding period. The falsifier: what result would make you abandon it.

Written first, this does two jobs. It stops you from reverse-engineering an explanation onto whatever the data happened to show, which is effortless and feels exactly like insight. And it fixes in advance the number you will judge by, which removes the option of choosing the flattering metric after seeing the results.

Why mechanism matters more than fit

Two rules can produce identical historical curves while having entirely different futures. One captures something a class of participants keeps doing for a structural reason. The other captures a coincidence. The curve cannot distinguish them. A stated mechanism can, because a mechanism makes side predictions you can check separately, and a coincidence does not. If a rule works, the mechanism usually implies it should work more strongly in some subset and less in another, and testing that is far more informative than adding another year of data.

A hypothesis with no mechanism is not forbidden, but it should be held to a much higher statistical bar, and you should say so out loud when you write it down.

Reading an equity curve without being fooled

An equity curve is a single path. It is one realisation of a process with a very large amount of randomness in it, and the human eye reads it as if it were a trend line. Three habits reduce the damage.

First, look at the distribution of trades, not the cumulative line. The cumulative line hides everything: it converts a scatter of outcomes into a smooth-looking shape whose slope is the only thing you can see. Plot the individual trade returns instead. If a small number of trades supply most of the profit, you do not have a rule with an edge, you have a rule that was in the right place a few times.

Second, look at when the profit accrued. A curve that is flat for years and then rises steeply in one window is describing an episode, not a mechanism. It may be a perfectly real episode, but the honest summary is this worked during a particular period and not this works.

Third, count the independent observations rather than the trades. If the rule holds forty positions at once and they are all in the same sector, a hundred trades in one week is closer to one observation than to a hundred. That is lesson nine, and it is the correction that most often turns an apparently strong result into an undecided one.

The smoothness illusion

Cumulative plots on a linear scale exaggerate later moves and flatten earlier ones, so a curve can look like accelerating skill when it is describing the same proportional performance throughout. Plot equity on a log scale, which makes equal percentage moves equal distances, and a surprising number of impressive curves become ordinary.

Working it through

IllustrativeThe same constructed rule read four ways as assumptions are made explicit. Illustrative.

A constructed example. A rule buys any stock in a fixed list that closes below its twenty-day average and sells five sessions later. The first run, on default settings, reports an average of +38 basis points per trade across 2,400 trades, which looks decisive. Then each layer of the stack is made explicit in turn.

  • Run one, defaults. Fill at the closing price of the signal bar. Average +38 basis points. The order is filled at a price that was only known at the instant the signal existed, so the fill and the decision are the same event.
  • Run two, fill at the next open. The earliest price a person could actually have transacted at. Average drops to +19 basis points. Half the apparent edge was the overnight move being handed to the rule for free.
  • Run three, costs added. A round trip charged at 12 basis points, which is unremarkable for a mid-liquidity name at modest size. Average drops to +7 basis points.
  • Run four, universe corrected. The fixed list is replaced with the membership that existed on each historical date, so names that were later removed are included while they were live. Average drops to +2 basis points, with a per-trade standard deviation near 300 basis points.

The final figure is not a small edge. With that dispersion and 2,400 trades, the standard error of the mean is about 6 basis points, so +2 is indistinguishable from zero, and that is before any correction for the trades overlapping in time. The result is not weak. It is absent.

Every one of the three deductions came from making an assumption explicit rather than from changing the rule. The rule never changed. What changed was how honestly the simulation described what a person could have done, and that alone consumed the entire reported edge.

Where this goes wrong in practice

  • Treating the backtest as evidence the idea is right. It can only ever be evidence that the idea has not yet been shown wrong on this sample.
  • Never stating the fill assumption. If you cannot say in one sentence where a trade fills and when that price became knowable, the number is uninterpretable.
  • Writing the hypothesis after seeing the result. Explanations are free and fit anything, which is exactly why one produced after the fact carries no weight.
  • Reading the cumulative curve instead of the trade distribution. The curve hides concentration, and concentration is usually the whole story.
  • Assuming the defaults in the framework are realistic. They were chosen so the example in the documentation would run, not so your result would be true.
  • Debugging by adjusting the rule. When a result looks wrong, the fault is usually a layer below the rule, and tuning the rule buries it rather than finding it.
  • Confusing a long history with a large sample. Twenty years of a rule that trades one regime supplies very few independent observations of that regime.

What to do with this

  1. Write the four-part hypothesis first - mechanism, prediction, scope, falsifier - and save it before running anything.
  2. Write down the fill rule in one sentence and check that the price named was knowable at the moment the order was sent.
  3. List the seven layers of your own stack and record the assumption you have made at each one, including the ones you inherited from defaults.
  4. Run the rule once with deliberately harsh assumptions before running it with realistic ones, so you learn the size of the gap rather than only the flattering end of it.
  5. Plot the per-trade distribution alongside the equity curve, always, and check whether a handful of trades carries the result.
  6. Say out loud what would make you abandon the idea and then check whether the test you just ran was capable of producing that outcome. If it was not, the test proved nothing.
Examples and common mistakes

Worked example

IllustrativeOne constructed rule, re-run four times as each assumption is made explicit
One constructed rule, re-run four times as each assumption is made explicit - illustrative figures, not a performance record.
RunWhat changedAverage per tradeStill believable
Defaultsfill at the signal bar close+38 bpno
Next openfill at the first tradeable price+19 bppartly
Costs added12 bp charged per round trip+7 bpmarginal
Universe fixedmembership as of each historical date+2 bpno, indistinguishable from zero

The rule itself never changed across these four runs. Only the honesty of the simulation changed, and that alone removed the entire reported edge. With a per-trade standard deviation near 300 basis points over 2,400 trades the standard error is about 6 basis points, so the final figure of 2 is not a small edge but an absent one. Every deduction came from naming an assumption rather than from altering the logic.

How this goes wrong in practice

  • Treating a profitable backtest as evidence the idea is right rather than as an idea not yet refuted
  • Never stating in one sentence where a trade fills and when that price became knowable
  • Writing the explanation after seeing the result, when an explanation produced afterwards fits anything
  • Reading the cumulative equity curve instead of the distribution of individual trades
  • Assuming the framework defaults were chosen for realism rather than for the documentation example
  • Debugging a suspicious result by adjusting the rule when the fault is a layer below it
  • Confusing a long calendar history with a large number of independent observations

Checklist

  • The one-sentence statement of what this backtest answers, written before running it
  • The fill rule, named explicitly, with the moment that price was knowable
  • The assumption made at each of the seven layers, including the inherited defaults
  • A deliberately harsh run alongside the realistic one, so the gap is measured
  • The per-trade distribution plotted beside the equity curve
  • The falsifier written down, and a check that the test could have produced it

Knowledge check

Question 1 of 3Which statement most accurately describes what a backtest establishes?
Question 2 of 3A rule reports a very large per-trade edge relative to others in its class. What is the correct first response?
Question 3 of 3Why does writing the hypothesis before running the test change what the result means?

Exercise

Take the most recent backtest you have run or read, and write four things on one page: the single sentence describing what it answers, the fill rule with the moment that price became knowable, the assumption made at each of the seven layers, and the falsifier that would have made you abandon the idea. Then check whether the test as run was actually capable of producing that falsifying outcome. If it was not, record what would have to change so that it could.

Glossary, tools and sources

Glossary

Backtest
A simulation of how a fixed rule would have traded a historical dataset under a stated set of assumptions about data, fills and costs.
Hypothesis
A written statement of the mechanism, the prediction, the scope and the falsifier, recorded before the test rather than after it.
Falsifier
The specific result that would cause you to abandon an idea, named in advance so that the test is capable of failing.
Equity curve
The cumulative record of a strategy's simulated value over time. A single path, easily misread as a trend because it hides the distribution of individual outcomes.
Assumption stack
The ordered layers underneath any result - data, timing, rule, execution, cost, sizing, statistics - where a defect at any level arrives at the top disguised as a finding.

Use it in the app

  • Backtesting - run a rule against historical data
  • Strategies - inspect how a rule is specified before testing it
  • Journal - record the hypothesis and the falsifier before the test
  • Tested rules - see the question, the pass mark and the verdict for each study
  • Rules vs buy and hold - popular trading rules tested against simply holding, after costs

Sources

  1. Foundations of Technical Analysis: Computational Algorithms, Statistical Inference, and Empirical Implementation (Working Paper 7613)(opens in a new tab)

    National Bureau of Economic Research. Retrieved 2026-08-31.

  2. Random Walks in Stock Market Prices(opens in a new tab)

    Financial Analysts Journal, CFA Institute. Retrieved 2026-08-31.

Risk notice

This lesson is general educational information about research method. It is not investment advice, not a recommendation to buy or sell any security, and not tailored to your circumstances. Every figure shown is a constructed illustration and not a record of any account or system. A historical simulation is not a forecast and no validation procedure turns one into a guarantee. Trading involves risk of loss, including loss of the full amount invested.

Press when you have finished reading. Nothing is recorded until you do.

Next step

Pick a rule and a stock, then run it. Compare the result after modeled costs with simply holding, and read the last two years on their own. A past result is not a forecast.

Test a rule yourself

No account needed. Saving stocks to your account requires free signup in the app; no card needed.

Previous lessonDocumenting a strategy so a stranger could run it14 minNext lessonLook-ahead bias: the leak that looks like skill14 min
Back to top

Test a trading rule against holding. Keep the evidence and build your research from there.

support@estockes.comSupport replies within 1-2 business days.

Product

  • Home
  • Pricing
  • Free tools
  • Calculators
    • Compounding
    • Position size
    • Risk and reward
    • Leveraged ETF decay
    • Day trading account checker
  • Academy - free course
  • Test a strategy
  • Strategies we tested
  • Compared with TradingView
  • Compared with Finviz
  • Compared with Investing.com
  • Test a rule without code
  • System status
  • What's new

Company

  • About
  • Contact
  • Support

Legal

  • Terms of Service
  • Privacy Policy
  • Refunds
  • Security
  • Data request
Review us on Trustpilot (opens in a new tab)

Share your honest experience.

Featured on LaunchBuffestockes on VibeRank
© 2026 estockes - estockes.com · Operated by Eylon Sabag · Prices in USD

estockes is a research and analytics tool, not a registered investment adviser, broker-dealer, or financial planner. Nothing here is investment, financial, legal, or tax advice. All content is for informational and educational purposes only. Trading involves substantial risk of loss; past performance does not guarantee future results. You trade at your own risk.

Mailing address (correspondence only)
800 N. King St, Suite 304-2048, Wilmington, DE 19801, USAThe operator is Eylon Sabag, an Israeli sole proprietor. This iPostal1 address receives correspondence; it is not a U.S. office or a separate U.S. company.
Previous lessonDocumenting a strategy so a stranger could run it14 min
Next lessonLook-ahead bias: the leak that looks like skill14 min