How to backtest a trading strategy (the complete method)
The method for backtesting a strategy seriously: sample size, unambiguous rules, biases to avoid, and moving on to replay.

Backtesting means measuring whether a strategy has a statistical edge before you risk real money. Done badly, a backtest breeds false confidence; done well, it saves you months of losses.
1. Define objective rules
A backtestable strategy leaves no room for interpretation: entry conditions, exit conditions, position size and stop management must be written down in black and white. If two people cannot reach the same result, it is not testable.
2. Build a large enough sample
Ten trades prove nothing. Aim for at least 100 trades, ideally spread across different market conditions (trending, ranging, high volatility). An edge that only works in one market regime is not reliable.
3. Avoid the classic biases
- Survivorship bias: don't test only the periods that suit you.
- Overfitting: a strategy tuned perfectly to the past usually fails in the future.
- Hindsight bias: don't cheat by using information you would not have had in real time.
4. Move on to replay
A historical backtest must be confirmed by bar-by-bar replay, which recreates decision-making under realistic conditions. That is exactly what Altiora's backtesting and replay module offers, with journal and analytics built in — see the features.
5. Journal your backtests
Treat your backtests as real trades: log them, measure expectancy, compare setups. The logic is the same as in the trading journal guide. Try it for free.
About the author
L’équipe Altiora
Altiora editorial team
Altiora's editorial team brings together active traders and the product team. We write about discipline, journaling and performance analysis, grounded in how the platform actually works. We never give investment advice.
Read next

Best trading journal software in 2026: the full comparison
How to choose trading journal software in 2026: objective criteria, a comparison of the options, and why language and ecosystem matter.

Altiora vs TradeZella: which trading journal should you choose?
An honest comparison of Altiora and TradeZella: features, language, ecosystem and positioning, so you can choose for your profile.

Altiora vs Edgewonk: the full comparison
Edgewonk or Altiora? A comparison of the two trading journals on features, model and target audience.