Methodology · 5 min read

What is look-ahead bias?

Look-ahead bias is the silent killer of trustworthy backtests. It happens when a strategy “knows” something at the moment of a trade that it could not actually have known in real time. The results look brilliant and are completely fake.

Imagine a signal that appears when a candle's high touches a level. During the candle, the high keeps changing until the bar closes. If the backtest assumes you acted on the final high — the one only known at the close — but in real time you'd have had to act mid-bar, the backtest is using future information. That's look-ahead bias.

Repainting (biased)Signal can change after the candle formsUses the full bar, including its close,earlyBacktest sees the future, you won'tCurve looks flawless, live results don'tmatchConfirmed close (clean)Signal locks only when the candle closesActs only on finalized dataBacktest = what you'd really have tradedReproducible on your own chart
Repainting signals use information that only finalizes later, inflating backtest results. Signals confirmed on candle close use only data that existed at decision time.

Repainting is the usual culprit

The most common form is a repainting indicator: one whose past signals shift as new data arrives. On a historical chart it looks like the indicator called every turn perfectly. In live trading, the signal you saw vanishes or moves, because it was never final. Anything that repaints will produce a backtest you can never reproduce live.

How to avoid it

The fix is discipline about timing: act only on confirmed candle close, using only data that was final at the moment of decision. A non-repainting strategy generates the same signal in backtest and in real time, which is exactly why it can be reproduced on your own platform.

Why it matters for prop accounts

A look-ahead-biased strategy doesn't just underperform — it can blow a real account while its backtest still shows a flawless curve. On a prop evaluation with a hard drawdown limit, trusting a repainting backtest is how people fail a challenge they thought was a sure thing.

If a backtest looks too perfect to be true, check whether it repaints. A strategy that knows the future in testing knows nothing in real time.

See the math behind every strategy

Six systematic strategies, eight portfolios, full percentile disclosure — free 9-page Playbook.

Get the Playbook

All figures are hypothetical, derived from backtested data over a 12-month sample (May 2025 – Apr 2026) and 1,500-path Monte Carlo simulation. Past and simulated performance does not guarantee future results. This is educational content, not financial advice. Prop firm rules and Terms of Service compliance are your responsibility. Puravida Edge is not affiliated with any proprietary trading firm.