Guide · Backtesting

How to Backtest a Trading Strategy: A Step-by-Step Guide

Backtesting a trading strategy is the process of proving — with real historical data and disciplined record-keeping — that your setup has a positive edge before you risk live capital. This guide walks through a repeatable workflow you can run for any strategy, from a single price-action setup to a multi-signal system.

1. Define your strategy in writing

Before you touch a chart, write your rules down. A backtest is only valid if every trade is taken the same way. Cover four things: entry criteria (what must be true to enter), exit criteria (stop-loss and profit target), position sizing (how much you risk per trade — typically 1R), and the market and timeframe you are testing. If a rule can be interpreted two ways, tighten it.

2. Pick a representative sample

Aim for at least 50–100 trades across different market conditions — trend, chop, and volatility expansion. A strategy that only works in a strong uptrend will fail the moment the regime changes, and a small sample will not surface that. Longer lookbacks are better; a full year covering multiple regimes is a strong baseline.

3. Log every trade the same way

For each trade, record: date, symbol, direction, entry price, stop price, target price, exit price, exit reason, and a short note on why you took it. Consistency beats detail — the goal is to compare apples to apples across the whole sample. Skipping "losers you would not have taken live" is the fastest way to make a broken strategy look profitable.

4. Convert results to R-multiples

R is the amount you risked on a trade. If your stop is $100 away and you make $250, that is +2.5R; if you get stopped out, that is −1R. R-multiples strip out position size, so a $500 account and a $50,000 account can compare results directly. Expectancy — the average R per trade — is the single most useful number a backtest produces.

5. Analyze win rate, average win/loss, and expectancy

Win rate alone is misleading — a 40% win rate with 3R winners crushes a 70% win rate with 0.3R winners. Compute expectancy as: (win% × avgWin) − (loss% × avgLoss). Anything above +0.2R per trade is a strong edge; below zero means the strategy loses money over time no matter how good it feels on a good week.

6. Check the equity curve, not just the summary

A backtest can post a healthy expectancy while hiding a stretch of 15 consecutive losers you would never sit through live. Plot cumulative R over time. Look at the deepest drawdown and the longest losing streak — those decide whether you can actually trade the system.

7. Forward-test before you scale

A clean backtest is a hypothesis, not a guarantee. Paper-trade or trade small size for another 20–30 trades to confirm the edge survives your real-time execution — slippage, hesitation, and missed entries all show up here and nowhere else. Only then do you scale risk.

Backtest your strategy in Tradium

Tradium is a private backtest trade journal built for exactly this workflow — log trades into sessions, get R-multiples, expectancy, win rate, and equity curves automatically.

Start free