Skip to content
brierz

Guide · Published 9 Nov 2026

Backtesting mistakes: 7 errors that make a strategy look better than it is

Seven backtesting mistakes that make a strategy look better than it is: look-ahead, survivorship, costs, overfitting, short tests, no out-of-sample, luck.

1. Look-ahead bias: leaking tomorrow into today

Look-ahead bias occurs when a strategy uses information that would not have been available at the moment of execution. In Pine Script, using request.security(..., barmerge.lookahead_on) or referencing the daily close price at the start of a bar allows a script to trade today on tomorrow’s outcome.

A strategy with look-ahead bias can show astronomical returns in backtests while failing immediately in live production.

2. Neglecting realistic fees and market impact

Backtesting with zero fees or unrealistic maker rebates creates illusory strategies. On Hyperliquid, a taker pays 4.5 bps (0.045%) base fee. If a strategy executes 20 round-trips a day, trading friction easily exceeds 300% annualized.

In Brierz Lab every fill is priced with taker fees and slippage, and positions pay hourly funding.

3. Overfitting parameters to noise (data snooping)

If you optimize a 14-period RSI by testing every threshold from 10 to 90 across 50 coins, you will inevitably find parameters that performed miraculously in the past. This is not edge; it is memorizing the noise.

The more parameters a strategy has, the more easily it fits random historical patterns that never recur.

4. Survivorship bias in universe selection

Backtesting only on tokens that are currently in the top 20 by market capitalization ignores all tokens that died or were delisted along the way. Your historical universe must reflect the exact choices available at that historical date.

5. Lack of sealed out-of-sample testing

Standard practice divides data into in-sample (training) and out-of-sample (testing). But when researchers iteratively test and tweak until out-of-sample passes, the out-of-sample data becomes contaminated.

Lab keeps the most recent weeks sealed until the end: an idea takes its final exam on them once.

6. Testing across too few market regimes

A strategy tested only during 2024’s institutional ETF inflows is untested against liquidations, bear cascades, and multi-month funding reversals.

7. Mistaking multiple-hypothesis trials for genuine alpha

When you run 100 variations of an idea, standard statistical significance tests (p-values) lose validity. You must deflate the reported Sharpe ratio by the total trial count (Bailey and López de Prado, 2014).

All guides