Profit factor, Sharpe, drawdown and average R: which backtest numbers matter
By the PipYard team · 9 min read · Updated
A backtest report can show twenty numbers. Most of them answer one question each, and a few can't be read without the others. Read average result per trade first, then how many trades it rests on, then the drawdown at the size you would actually trade, and only then the rest.
| Question | Number |
|---|---|
| Does a trade make money on average? | Average R |
| Could that average be luck? | Trade count |
| How much do winners earn against losers? | Profit factor |
| How bad does it get on the way? | Max drawdown |
| How steady is it month to month? | Sharpe ratio |
| Does it keep working as markets change? | Profitable test windows |
The worked examples below use made-up strategies to show the arithmetic. They are not results.
Average R: the number to read first
R is what a trade risks: the distance from entry to stop. A trade stopped out is −1 R; one that makes twice its risk is +2 R. Average R, also called expectancy, is the mean result per trade in R, after costs. It doesn't depend on account size or lot size, so two strategies can be compared directly.
It comes from two things together: how often you win, and how much a win earns against a loss.
Average R = win rate × average win − loss rate × average loss.
- Strategy A wins 40% of trades at +2 R and loses 60% at −1 R: 0.4 × 2 − 0.6 × 1 = +0.20 R per trade.
- Strategy B wins 80% of trades at +0.2 R and loses 20% at −1 R: 0.8 × 0.2 − 0.2 × 1 = −0.04 R per trade.
B wins twice as often and loses money. How often you need to win to break even depends only on the payoff:
| Average win, in R (loss = 1 R) | Break-even win rate |
|---|---|
| 0.5 R | 67% |
| 1 R | 50% |
| 2 R | 33% |
| 3 R | 25% |
Win rate: useful only next to the payoff
A high win rate is easy to build: put the target close and the stop far away. It says nothing about an edge on its own. Our Fibonacci report shows a setup that reached its first target nearly three times in four on random prices, which have no edge at all, and still averaged slightly below 0 R. Read win rate only together with the average win and the average loss.
Trade count: how much the average can be trusted
An average from a few dozen trades can be almost anything. Take strategy A, whose true average is +0.20 R. Its results vary a lot from trade to trade (+2 R or −1 R), so a short test can land far from +0.20 R by chance. The range that holds the measured average 95% of the time:
| Trades in the test | 95% of tests land within |
|---|---|
| 30 | ±0.53 R |
| 100 | ±0.29 R |
| 400 | ±0.14 R |
| 1,000 | ±0.09 R |
With 30 trades, a measured average of +0.20 R is consistent with anything from a strategy that loses a third of its risk per trade to one that makes more than two-thirds. It takes about 210 trades before an average of +0.20 R like this one is clearly above zero, and about 830 for an average of +0.10 R with results as spread out. Smaller edges need many more trades, which is one reason they are so often found and so rarely real.
PipYard's release gate asks for at least 100 out-of-sample trades, and reports warn when a result rests on fewer than 30. A hundred trades is a floor, not proof.
Profit factor: winners against losers
Profit factor is gross profit divided by gross loss, after commission. Below 1 the strategy loses money; at 1.0 it breaks even. With equal risk per trade it follows from the same two inputs as average R: win rate × average win ÷ (loss rate × average loss). Strategy A has a profit factor of 1.33; strategy B, 0.80.
- Small margins above 1 are fragile. A profit factor of 1.05 can turn below 1 with a slightly wider spread or a few slipped fills.
- A very high profit factor on few trades usually means few losses so far, not a strong edge. With no losing trades it can't be calculated at all.
- Compare it out-of-sample and in-sample. PipYard's walk-forward reports show the out-of-sample profit factor as a share of the in-sample one, and warn when it's below 60%: a strategy that does far better on the history its settings were chosen on is probably fitted to that history.
Max drawdown: depends on your position size
Max drawdown is the deepest fall in the account from a previous high, in percent. It is the number most likely to make someone stop running a strategy, so ask whether you would have kept going through it.
It also depends on how much you risk per trade as much as on the strategy. Strategy A, with a real edge of +0.20 R, run for 200 trades in 20,000 simulated orders of wins and losses:
| Risk per trade | Typical | Bad run |
|---|---|---|
| 1% of the account | 12% | 21% |
| 2% of the account | 23% | 39% |
Losing streaks are where drawdowns come from, and they are longer than most people expect. A strategy that loses 60% of its trades has about an even chance of a run of 8 losses in a row somewhere in 100 trades, and a 75% chance in 200. Eight losses in a row cost 7.7% of the account at 1% risk per trade and 14.9% at 2%.
PipYard's backtests risk 1% of the account per trade unless the strategy sets another size, so read the gate's 15% drawdown line at that size. Reports also draw the out-of-sample trades again in random order a thousand times and show the range of drawdowns, because the one order history happened to produce is only one of many.
Sharpe ratio: how steady the months are
The Sharpe ratio compares the average return with how much returns swing. PipYard calculates it from monthly net returns: the average month divided by the standard deviation of months, times the square root of 12 to make it yearly. A strategy averaging +1.5% a month with a typical swing of 4% has a Sharpe ratio of about 1.3. PipYard needs at least six months of trades to calculate it, and its release gate asks for at least 0.8.
Sharpe rewards smooth results and penalises lumpy ones. It doesn't show what happens inside a month, and a strategy that earns small amounts steadily before an occasional large loss can look smooth until that loss arrives. Read it next to max drawdown, not instead of it.
Profitable test windows: does it keep working?
A walk-forward test judges a strategy on many separate stretches of history it never saw (see walk-forward testing). The share of those test windows that ended in profit shows whether the result is spread across time or carried by one good quarter. PipYard's gate asks for at least 60%, and reports warn below 50%.
Costs change every number
Spread, commission and slippage come off every trade, so they lower average R and profit factor directly, and a strategy that trades often or aims for small targets feels them most. Test with your broker's real costs, and look at how the strategy does in high-impact news windows, where spreads widen and fills slip. PipYard reports split results by news windows, session and weekday for this reason.
A reading order
- Out-of-sample only. Ignore numbers from the history the settings were chosen on.
- Average R after costs. Is it above zero?
- Trade count. Is the average far enough from zero for the number of trades?
- Drawdown at your size, including the bad-run range. Would you keep going through it?
- Profit factor, Sharpe and profitable windows as checks that the result isn't fragile, lumpy or carried by one period.
- How many variants you tried. Testing many and keeping the best flatters the best one. Reports warn when the parameter sets tried outnumber the trades.
PipYard applies the same pass line to every strategy before it can run on a demo account:
| Check | Needs |
|---|---|
| Out-of-sample trades | at least 100 |
| Profit factor | at least 1.25 |
| Sharpe ratio | at least 0.8 |
| Max drawdown | at most 15% |
| Profitable test windows | at least 60% |
| Average result per trade | above 0 R |