FX
CURIO
Intermediate7 min read

Data Quality and Common Backtesting Pitfalls

Garbage in, garbage out. Bad data, lookahead bias, and survivorship bias can make a losing strategy look profitable.

A backtest is only as trustworthy as the data and assumptions behind it. Many strategies that look brilliant on paper are actually artifacts of bad data, hidden bias, or unrealistic execution assumptions. This is the single biggest reason backtests fail to predict live performance.

Lookahead Bias

Lookahead bias happens when your backtest logic accidentally uses future information. A classic example: calculating a daily pivot using the day's high and low, then testing entries during that same day — you're using data that wasn't complete yet at entry time.

The 'perfect entry at the exact low' trap

If your backtest assumes you entered exactly at a swing low that was only confirmed by price action days later, you've used information from the future. Always use only data available up to and including the decision bar.

Survivorship Bias

If you test a strategy only on currency pairs, stocks, or brokers that still exist today, you exclude every instrument that was delisted, went bankrupt, or had a broker shut down mid-history. This silently inflates results because failures are removed from the sample.

Spread, Commission, and Slippage Assumptions

A backtest that ignores spread, commission, and slippage is fiction. A scalping strategy that nets +0.3R per trade before costs can easily become negative after realistic spread and slippage on a retail account.

AssumptionRealistic treatment
SpreadUse average historical spread for the instrument/session, not the tightest observed
SlippageAdd a few tenths of a pip/point on market entries, more during news
CommissionInclude broker's actual per-lot commission in every trade's P&L
Fill assumptionAssume limit orders may not fill even if price touches the level

Bad or Incomplete Historical Data

  • ▸Gaps in tick or minute data can hide stop-outs or fill prices that never really happened.
  • ▸Free data providers often adjust or smooth historical highs/lows — verify against a second source.
  • ▸Different brokers show different spreads and even slightly different OHLC due to differing liquidity providers.

Multiple Testing / Data Snooping

If you test 50 variations of a strategy on the same data set and pick the best one, you've essentially guaranteed a good-looking result by chance alone — this is data snooping. The more parameters you tweak, the more you need out-of-sample data to confirm the result is real.

Keep a clean holdout set

Reserve the most recent 20-30% of your historical data and don't look at it until your rules are fully locked in. Testing on this untouched holdout is your best defense against data snooping.

Checklist Before Trusting a Backtest

  1. 1.Data source verified against at least one independent source.
  2. 2.No use of information not available at decision time.
  3. 3.Realistic spread, commission, and slippage applied to every trade.
  4. 4.Tested across multiple market regimes, not just one trending year.
  5. 5.Held-out data confirms results, not just the in-sample data used to build the rules.
Apply in CURIO

Turn this into a real trade plan

CURIO runs this logic on a live chart: AI analysis with entry, stop, targets and a risk-checked position size.

  • 3 free AI analyses — no card required
  • Vision mode reads your own chart screenshots
  • Auto-scanner & prop-firm guard from Pro
Free

Weekly CURIO Trading Briefing

One email per week: new encyclopedia articles, a setup breakdown and the macro events that actually move price.

  • New articles & learning paths first
  • One setup broken down step by step
  • No spam, unsubscribe anytime

We only use your email for this. Unsubscribe with one click.

Related articles