TradePips

Home / Guides

How to backtest a trading strategy by hand on a chart

By TradePips · Updated 23 October 2026

Learning how to backtest a trading strategy by hand lets you see how a set of rules would have behaved on past charts before you risk money on them. You scroll back in time, hide the future, and step forward one candle at a time, taking trades only when your rules say so. This guide covers how to write testable rules, how to run the test, how to log results in R, and how to read them without fooling yourself.

What backtesting is, and what it is not

Backtesting means applying fixed rules to historical price data and recording what would have happened. Doing it by hand, rather than with code, forces you to look at every setup yourself, which is how beginners learn to recognise structure quickly.

What it is not:

Most retail traders lose money. A backtest will not change that on its own, but it can stop you from trading rules you have never examined.

Step 1: write rules you can test

If a rule needs a judgement call, you cannot test it honestly. Write every rule so that two people would read the same chart the same way. For example, a simple trend pullback plan built on market structure could read:

  1. Market and timeframe: EUR/USD, trend read on the 4 hour chart, entries on the 1 hour chart.
  2. Trend: only buy when the 4 hour chart shows a higher high and a higher low. Only sell when it shows a lower high and a lower low.
  3. Entry: price pulls back into a support or resistance zone and a 1 hour candle closes back in the trend direction.
  4. Stop: beyond the most recent swing low for buys, or swing high for sells.
  5. Target: the most recent swing high for buys, or swing low for sells. Skip the trade if the target is less than 1.5 times the stop distance.
  6. Time: only take entries between 12:30 and 21:30 IST, covering the London session and the overlap with New York.

Write these down before you open the chart. Changing rules halfway through a test ruins the test.

Step 2: set up the chart so you cannot see the future

The biggest danger in manual backtesting is hindsight. If you can see what happened next, you will find reasons to take the trades that worked and skip the ones that failed.

hidden future reveal one candle at a time what you can see now decide here, then step forward
Make every decision using only the candles that have already closed.

Step 3: step forward and log every trade

Move forward one candle at a time. When your rules give a setup, write the trade down before you reveal the next candle. Then keep stepping until price hits the stop or the target. Use the same fields as your trading journal: date, time in IST, direction, entry, stop, target, result and a screenshot.

Record results in R, meaning multiples of your risk. A full stop loss is minus 1R. A target twice the stop distance is plus 2R. This keeps the test about the rules, not the lot size.

Result in R = distance won or lost ÷ stop distance

Step 4: read the results honestly

Aim for at least 30 trades before drawing any conclusion, and more is better. Here is an example of how a finished log might be summarised. The numbers are made up to show the method, not a result anyone should expect.

MeasureExample value
Trades taken40
Winners16, averaging plus 1.8R
Losers24, each minus 1R
Totalplus 4.8R
Longest losing streak7 trades in a row

Average result per trade = total R ÷ number of trades = 4.8 ÷ 40 = 0.12R

Look past the total. The longest losing streak matters most for a beginner. Seven losses in a row at 1% risk each is roughly a 7% drawdown. Ask yourself whether you would keep following the rules through that with real money. Our guide to the risk to reward ratio explains why a lower win rate can still work when winners are larger than losers, and the lot size calculator helps you keep each loss to a fixed amount.

Common backtesting mistakes

From backtest to demo account

A finished backtest is the start, not the finish. The next step is forward testing: trade the same rules on a demo account for several weeks and compare the live results with the backtest. Only move to small real money once the demo results look similar and you have followed the rules consistently. If you would like a mentor to check your rules and your backtest log while you learn market structure, see the live classes.

Learn this live, with a mentor

TradePips teaches forex, gold and crypto through market structure in 15 live classes over four weeks. Next batch starts 31 October. Seats are limited.

Enroll now

More guides