LEARN / RISK & PROBABILITY

A beautiful backtest. An uncertain future.

A strategy can look excellent on historical data for reasons that have nothing to do with a durable market edge. Learn the pitfalls—and how to make a research result more trustworthy without confusing it with a prediction.

OverfittingLook-ahead biasOut-of-sampleFees and slippage

Updated 14 Nov 2026 · Original educational material · Hypothetical examples, not live market data

What is a backtest?

A backtest applies a set of trading rules to historical observations and reconstructs what the rules might have done, given specified order timing and execution assumptions. It can reveal basic errors, risk exposures and sensitivity to parameters. It cannot replay the past with perfect information and should not be mistaken for proof of a future edge.

Imagine choosing a rule based on the past prices of a hypothetical asset. If you keep changing the parameters until the same history looks great, the backtest has become part of the strategy-design process. That original history can no longer serve as a completely independent test of the chosen rule.

Backtesting and scenario simulation are different. A backtest uses actual or deliberately generated observations in chronological order; our Monte Carlo and Risk Lab tools simulate outcomes conditional on user-provided assumptions. Neither automatically verifies a real strategy's expected return.

The curve that looked great—until the data changed.

The chart below is entirely invented. Its first segment is labeled development / in sample, the data used to choose or adjust the strategy. The later segment is held-out / out of sample, which was not used to select the parameters in this hypothetical illustration.

The strategy's fictional account rises from $100 to $220 during development, then declines to $152 afterward. That is a loss of approximately 30.9% from the start of the held-out period, despite an earlier +120% increase. This does not prove that every backtest fails; it shows how two samples can tell different stories.

Swipe sideways to follow training and testing periods →

Invented strategy equity rises during training and falls afterwardThe fictional equity path starts at 100, rises to 220 during seven in-sample intervals, then falls to 152 across six held-out intervals. It shows plus 120 percent in-sample and minus 30.9 percent out of sample, with no live historical prices.In-sample performance is not a promiseInvented equity values · no fees, leverage or market history implied$100$140$180$220Development +120%Held-out −30.9%$152StartHoldout beginsLater
Original schematic, not an observed strategy or price history. Development capital: $100 → $220 (+120%). Held-out capital: $220 → $152 (−30.9%). In practice, even a held-out sample may become contaminated if repeatedly used to tune a strategy.
Development observations$100 → $112 → $124 → $141 → $159 → $180 → $200 → $220Starts $100, finishes $220: +120% in sample
Held-out observations$220 → $211 → $198 → $189 → $179 → $167 → $152Starts $220, finishes $152: −30.9% out of sample

Where misleading results come from.

Overfitting happens when rules match idiosyncrasies of a particular historical sample rather than generalizable behavior. The more combinations of indicators, thresholds, assets and date ranges you try, the easier it becomes to find an attractive curve by chance.

Look-ahead bias uses information that did not yet exist when the trade was supposedly placed—for example, entering at the start of a candle based on a closing value from that same candle. A related problem is data leakage, when future information enters training features, normalization or selection procedures.

Survivorship bias appears when the historical universe contains only assets that survived to today, omitting delisted or failed names. A strategy that chooses only current winners to represent the past can significantly overstate earlier investment opportunities.

Execution assumptions matter: prices in a candle are not necessarily achievable fills. Spreads, market impact, partial fills, borrow costs, funding and different maker/taker fees can turn a hypothetical gross edge negative. Finally, regime changes mean that the relationship observed historically may stop working.

WORKED EXAMPLE / THE COST OF TESTING MANY IDEAS

Why testing 20 weak ideas can still produce a winner.

Suppose we test 20 independent strategies that have no real signal. Assume, only for this example, each test has a valid 5% probability of falsely identifying a result as significant. Even if all null hypotheses are true, the expected number of false alarms is 20 × 5% = 1.

At least one false alarm, under the illustrative independence assumptions1 − (1 − 0.05)²⁰ ≈ 64.2%Chance of seeing one or more nominal false positives in 20 independent tests. This is not the probability that a specific observed strategy is false.
Tests attempted20Independent in this example
Nominal false alarm rate5%Per valid test
Chance ≥1 false alarm64.2%Even with no genuine signal

Actual strategy parameter sweeps are often dependent rather than independent, so the exact 64.2% formula is not generally transferable. But the lesson remains: choosing the best performer among many tests changes how much evidence you have.

How to build a more credible evaluation.

Freeze the rules before final evaluation. Define the strategy, market universe, order timing, capital assumptions and costs up front. Use chronological train/validation/test splits appropriate to the strategy rather than randomly shuffling a market time series. Where labels overlap in time, consider purging or embargo procedures to limit leakage.

Walk-forward evaluation can repeatedly fit a method using earlier data and apply it to a later period, without using later prices to choose the earlier decisions. Document every strategy family, parameter search, rejected variation and sample boundary. Stress commissions, slippage, volatility regimes and modest parameter changes; fragile results deserve less confidence.

Keep a genuinely untouched holdout. If you repeatedly inspect the holdout and redesign the strategy, that sample becomes part of development. Forward observation or paper execution may supply more information about real order behavior, but even those cannot promise profitable live results.

Five questions to ask before trusting a backtest.

Interpretation checklist for any historical strategy report
QuestionWhy it matters
Did rules use only information available at decision time?Prevents look-ahead and leakage.
How many variations were tried?Exposes multiple-testing and selection bias.
Were delisted assets and missing periods represented?Reduces survivorship and dataset bias.
Were costs, fills and capacity realistically modeled?Separates price-chart profits from executable results.
Was evaluation truly out of sample?Tests a frozen hypothesis on unseen observations.

Frequently asked questions.

Is an out-of-sample profit proof that the system will work live?

No. It is additional evidence under a specified data set and protocol, not proof of future regime stability or executable returns.

Can using too many indicators make a backtest worse?

It can increase the number of ways a strategy fits historical noise, especially when many parameters are tuned on the same sample.

Is a very high win rate convincing by itself?

No. The sizes of winners and losers, trading costs, independence of observations, tail losses and selection procedure all matter.

Does a beautiful Monte Carlo equity curve mean a strategy was backtested?

No. Our Monte Carlo runs simulated outcomes from selected parameters. It does not replay historical exchange prices or verify a strategy's trading edge.

Does paper trading eliminate backtest bias?

No. It can help examine order logic and operational details, but fill assumptions, market capacity, human behavior and future regimes may still differ from live deployment.