Back to Trading Styles & Strategy Development

Trading Styles & Strategy Development · Intermediate · 4 min

Manual backtesting

You can run a manual backtest by replaying past charts candle by candle, log every trade consistently and avoid the most common biases.

Test on the past

Before risking money on a set of rules, there is a cheaper question to ask: how would these rules have done in the past?

A backtest applies a rule set to historical data to see what it would have produced. Programmers do this automatically, but you can also do it by hand, with a chart, a spreadsheet and discipline. A manual backtest is slow, which is part of its value: you see every trade as it would have looked at the time.

One candle at a time

Steps The steps of a manual backtest: pick a period, hide the future, apply the rules candle by candle, log every trade, then evaluate the results. 1 Pick a period 2 Hide the future 3 Apply the rules 4 Log every trade 5 Evaluate
  1. Pick a period. Choose a market, a timeframe and a stretch of history, ideally including trends, ranges and at least one volatile phase.
  2. Hide the future. Many charting platforms have a replay mode that shows past candles one at a time. Without it, cover the right side of the chart.
  3. Apply the rules. At each new candle, check your written setup, trigger, exit and management rules exactly as written.
  4. Log every trade. Date, direction, entry, stop, target, exit, result in R, and a short note. Include costs, such as the typical spread.
  5. Evaluate. Only after the whole period: win rate, average win and loss, expectancy, drawdown and longest losing streak.

The biggest danger is look-ahead bias: using information that was not available at the time of the decision. Seeing where the price went, even for a moment, makes every rule look better than it is.

Honest vs. fooling yourself

The same backtest can be honest or flattering, depending on a few habits:

Comparison An honest manual backtest writes the rules first, hides the future, logs every signal and includes costs. A backtest that fools you changes the rules during the test, looks at the chart to the end, skips signals that look bad and ignores costs. Honest test Rules written first Future hidden Every signal logged Costs included Fooling yourself Rules change midway Peeks at the future Skips weak signals Costs ignored

A practical target for a first manual test: 100 trades on one market and timeframe. It takes several evenings, and it teaches you the rules better than any amount of reading.

Common mistakes

The takeaway

A manual backtest applies your written rules to past charts, one candle at a time, without seeing the future. Log every trade, including the losers.

Check yourself

Quick quiz

4 questions. Instant feedback, nothing is saved.

  1. 1Tap the step that prevents you from seeing the outcome before deciding.

    Tap the chart.

    Steps Chart for the question: Tap the step that prevents you from seeing the outcome before deciding. 1 Pick a period 2 Hide the future 3 Apply the rules 4 Log every trade 5 Evaluate

    Replaying the chart candle by candle, with the future hidden, keeps you from judging setups by what happened next.

  2. 2You notice the next candles before deciding on a setup. What bias is that?

    Using information that was not available at the time makes backtest results look better than live results can be.

  3. 3Why log signals you would 'never have taken'?

    Either the rule changes for every future test, or the trade counts.

  4. 4What is a reasonable minimum before drawing conclusions from a manual backtest?

    Small samples are dominated by luck. Different market phases show whether the rules only work in one kind of market.

of 4 correct.

Sources

Back to Trading Styles & Strategy Development