Backtesting

Key Metrics in Backtesting Explained

Net profit, expectancy, win rate, payoff ratio, drawdown, recovery factor, trade count and exposure: what each backtest metric tells you, how it can mislead, and how to read them together.

By AlgoXP4 min readUpdated

Equity and drawdown chart with Sharpe ratio, maximum drawdown, profit factor and win rate

A backtest report can list dozens of numbers. Most of them are useful, none of them is enough alone, and several can be made to look good in ways that have nothing to do with a real edge. This guide groups the main metrics by the question each one answers.

For a closer look at the three most quoted ones, see Sharpe, drawdown and profit factor.

1. Did it make money? Return metrics

Net profit - total profit after costs. Easy to read, easy to misread: it depends on position size and test length. Two strategies with the same net profit can have completely different risk.

Return % - net profit relative to starting capital. Annualise it (CAGR) to compare tests of different length.

Average trade - net profit divided by the number of trades. Compare it with your costs: if the average trade is only slightly larger than spread plus commission, a small change in execution wipes out the edge.

2. Is there an edge per trade? Expectancy

Expectancy combines win rate and the size of wins and losses:

Expectancy = Win rate × Average win − Loss rate × Average loss

Expressed in R (multiples of the amount risked per trade), it is comparable across strategies and account sizes. For example, a win rate of 45%, an average win of 1.8R and an average loss of 1R give:

0.45 × 1.8 − 0.55 × 1 = 0.26R per trade

Positive expectancy after costs is the minimum requirement. Everything else is about how reliable and how painful that edge is.

3. How are wins and losses shaped? Win rate and payoff

Win rate - share of trades that closed in profit.

Payoff ratio - average win divided by average loss.

They only make sense together:

Win rate Payoff ratio Expectancy (R) Typical style
35% 2.5 +0.23 Trend following, breakouts
55% 1.0 +0.10 Mean reversion with symmetric exits
85% 0.15 −0.02 Grids or martingales without hard stops

The last row is the classic trap: many small wins and an occasional large loss look excellent until the large loss arrives.

4. How much pain? Drawdown metrics

Maximum drawdown - the largest fall from an equity peak to a later low, in money or percent. It tells you the worst historical loss you would have had to sit through.

Balance vs equity drawdown - balance drawdown counts only closed trades; equity drawdown includes floating losses on open positions. For strategies that hold losing positions open (grids, averaging), equity drawdown is the honest number. cTrader reports both.

Drawdown duration - how long it took to recover to a new high. A 15% drawdown that lasts two weeks feels very different from one that lasts a year.

Max consecutive losses - useful for setting expectations and for checking whether position sizing survives a bad streak.

5. Is the return worth the risk? Ratios

Recovery factor - net profit divided by maximum drawdown. Above about 3 over a multi-year test is a reasonable sign that profits are not just compensation for one lucky recovery.

Return / drawdown (MAR, Calmar) - annual return divided by maximum drawdown. Useful for comparing strategies of different length.

Sharpe ratio - average excess return divided by the standard deviation of returns. It punishes volatility in both directions.

Sortino ratio - like Sharpe, but uses only downside volatility.

Profit factor - gross profit divided by gross loss. Simple and robust, but blind to the order of trades, so it says nothing about drawdown.

6. Can I trust the numbers? Sample and exposure

Number of trades - the most underrated metric. Statistics from 25 trades are anecdotes; from 300 they start to mean something.

Trades per period - a strategy that trades twice a year needs decades of data before its statistics settle.

Exposure / time in market - share of time with an open position. High exposure means more overnight and weekend risk, and more swap.

Largest win as share of net profit - if one trade made half the profit, remove it and look again.

Reading metrics together

A quick, honest reading order:

  1. Trades - is the sample big enough?
  2. Expectancy after costs - is there an edge?
  3. Maximum equity drawdown and its duration - could you live with it, and with something worse?
  4. Recovery factor or MAR - is the reward worth that pain?
  5. Stability - split results by year and by market; does the edge appear in most slices or only one?

Example: Strategy A earns 60% in five years with a 30% equity drawdown and 120 trades. Strategy B earns 40% with a 10% drawdown and 480 trades. B is usually the better candidate: more evidence, less pain, and it can be sized up if the risk budget allows.

Metrics that often mislead

  • Net profit without drawdown - says nothing about risk.
  • Win rate without payoff - hides tail losses.
  • Any metric from an optimised run - the best of 1,000 combinations is partly luck; check it on out-of-sample data.
  • Very smooth equity curves - can signal averaging or martingale logic that hides risk in open positions.

Key takeaways

  • Read metrics in groups: edge, pain, risk-adjusted reward, and sample size.
  • Express results in R where possible to compare strategies fairly.
  • Equity drawdown, not balance drawdown, shows the real risk of strategies that hold losers.
  • Few trades or one dominant winner make every other number unreliable.

FAQ

Which single metric matters most?

None on its own. If forced to pick, look at expectancy per trade together with maximum drawdown and the number of trades: how much the strategy earns per unit of risk, how much pain it causes, and whether the sample is large enough to believe.

Is a high win rate good?

Only together with the payoff ratio. A 90% win rate with tiny wins and occasional huge losses can lose money, while a 35% win rate with wins three times larger than losses can be very profitable.

What is a good profit factor?

After realistic costs, values around 1.3-2.0 are typical for robust strategies with many trades. Values far above 3 on a large sample are rare and deserve suspicion: check for overfitting, missing costs or too few trades.

Sources and further reading

  1. cTrader Help: Backtest a cBot (Trade Statistics) - help.ctrader.com
  2. William F. Sharpe: The Sharpe Ratio (1994) - web.stanford.edu