Trading styles

Backtesting

Also calledhistorical simulation

Backtesting is the evaluation of a trading strategy by applying its rules to historical market data to estimate how it would have performed during an earlier period. Its output is hypothetical, not a record of actual trading, and depends on the data, assumptions, and rules used in the test.

Evidence passport

What this page checked.

Sources
2
Record updated
August 18, 2026

Backtesting — definition, practical meaning, example, and common interpretation risk checked against the linked reference material

Definition checked

  • Definition and plain-English explanation for “Backtesting”
  • The worked example and the distinction described in the watch-out note
  • Reference material: SEC: Investment Adviser Advertisements; Final Rule Release IA-5407, CFTC: Commodity Trading Systems Sold on the Internet

Use the term correctly

  • Read the connected terms when a definition depends on another market concept
  • Check the broker’s contract specification when applying the term to a particular product
  • Treat examples as explanations of mechanics, not as prices, forecasts, or trading advice

Method. Editorial desk review of the definition, example, related concepts, and 2 linked sources. Calculations are checked directly where the entry contains arithmetic

Research scope and limits +
  • This glossary entry explains terminology and does not test a broker, trading account, platform, or live market condition
  • Contract wording and practical treatment can differ across brokers, venues, jurisdictions, and products
Page change log +
  1. Added named authorship, a definition evidence record, application checks, and a concise scope disclosure

What Backtesting means

A backtest converts a strategy into rules that could have been followed at the time, then runs those rules through past prices and other available data. It can show how often the rules traded, their hypothetical returns, and their drawdowns. A credible test specifies items such as the instrument, timeframe, entry and exit rules, position size, trading costs, and whether decisions used only information available at that historical moment. It cannot establish that the strategy will work in future conditions.

Backtesting helps reveal whether a strategy’s logic is internally consistent and whether a claimed result is sensitive to costs or market conditions. It is also easy to overstate: selecting favorable dates, repeatedly changing rules after seeing results, or assuming unrealistic fills can make a weak strategy appear strong. Hypothetical performance should therefore be kept separate from live, independently verifiable results.

A simplified EUR/USD strategy buys at the close whenever a 20-day moving average rises above a 50-day moving average and exits when it falls below. A backtest over 10 years might calculate 48 hypothetical trades. If it assumes every trade fills exactly at the closing price and charges no spread or slippage, its reported return is likely more favorable than a result using realistic execution costs.

Common questions

Is backtesting the same as paper trading?+

No. Backtesting applies rules to completed historical data. Paper trading applies them in a simulated account as markets unfold. Paper trading can expose practical issues such as delays, missed alerts, and order handling that a historical simulation may not capture.

Should a backtest include spreads and commissions?+

Yes, where they apply. Costs, spreads, financing, slippage, and realistic assumptions about order fills can materially change a strategy’s hypothetical result. The appropriate inputs depend on the instrument, broker arrangement, account type, and trading frequency.

Go to the original material.

01SEC: Investment Adviser Advertisements; Final Rule Release IA-540702CFTC: Commodity Trading Systems Sold on the Internet