Start with a falsifiable hypothesis

A backtest should answer a specific question. For example: “When condition X occurs on instrument Y and timeframe Z, what happens over the next N bars under entry and exit rules A and B?” Avoid a vague question such as “Does liquidity work?” Define the pattern, sample, entry, stop, exit, costs and evaluation metrics before reviewing results.

Prevent look-ahead bias

Use only information that would have been available at the time of the decision. A swing high is not confirmed at the exact moment it forms if your pivot rule requires later bars. A higher-timeframe candle's final close is not available during that candle. If the test uses a future-confirmed value too early, performance can look better than a live process could achieve.

Preserve the full sample

Record every qualifying occurrence, including losses, missed trades, ambiguous examples and patterns that never reach an entry. Do not remove a case because “news made it unusual” unless the exclusion was part of the original rule. Keep a log of every parameter change and why it was made.

Include realistic frictions

Historical candles rarely reproduce all execution conditions. Account for spread, commissions, exchange fees, financing, slippage, partial fills and gaps where relevant. If the strategy relies on a limit order being filled at a precise level, model whether the data can establish that the order was actually executable. A touch of a candle low does not always prove a fill.

Split the research

Use one segment to develop and refine the hypothesis, then reserve later or otherwise independent data for evaluation. Repeatedly adjusting parameters to improve the same sample risks overfitting. Forward testing in a demo or carefully controlled environment can reveal operational issues that historical data misses.

Metrics beyond win rate

Review average win and loss, payoff distribution, expectancy after costs, maximum drawdown, consecutive losses, exposure time, trade frequency and sensitivity to parameter changes. A high win rate can coexist with rare but very large losses. Small samples create wide uncertainty; report the number of observations and avoid treating a short streak as proof.

Common backtesting errors

Optimizing many parameters on one historical sample, excluding inconvenient cases after seeing the result, and using a candle high or low as proof of a fill can all distort a test. A backtest that omits spread, fees or slippage may measure an unrealistic theoretical outcome.

Key takeaways

Backtesting is disciplined measurement, not screenshot collection. Define rules in advance, prevent future information from leaking into decisions, include costs and preserve an independent test sample.

Risk and scope

This is general education, not financial advice, a signal, or a promise of results. SMC/ICT labels are not standardized exchange definitions and can be applied differently by different analysts. A chart example illustrates one interpretation; it does not establish a repeatable edge. Test definitions on historical and forward data, include costs and slippage, and never risk money you cannot afford to lose. Retail leveraged forex can produce rapid losses; review the SEC investor bulletin and CFTC customer advisory.

Sources and further reading