NiveshBuddy Learn
Investing & Strategy ConceptsIntermediate

Quality and Behaviour Metrics

Ten of a backtest's eighteen key metrics sit under Quality of Returns and Portfolio Behavior: what the returns cost in risk, and what the strategy actually did to earn them. Here is how to read each one, and why they only make sense in pairs.

7 min read

What You’ll Learn

By the end of this article, you’ll understand:

  • What Sharpe and Sortino measure, and why NiveshBuddy's Sharpe reads higher than the textbook one
  • Why win ratio and profit factor only mean something together
  • How Gain / Pain asks Profit Factor's question of every day instead of every trade
  • How trade count, holding period and the biggest single trades work as consistency checks
  • What Max / Avg Cash says about how much of the money was actually at work

The other half of Key Metrics

A backtest's Key Metrics panel groups its eighteen figures under four questions. Understanding Investment Performance & Risk Metrics covers the first two, Growth and Risk & Drawdowns. This article covers the other two, from the same panel:

GroupThe question it answersIts figures
Quality of ReturnsWhat did those returns cost in risk taken?Sharpe Ratio, Sortino Ratio, Win Ratio, Profit Factor, Gain / Pain Ratio
Portfolio BehaviorWhat did the strategy actually do along the way?Total Trades, Avg / Max Holding, Avg Gain / Loss, Max Gain / Loss, Max / Avg Cash

Why these two groups matter

Growth and risk read separately are two halves of an argument. Quality joins them, which is why it is where most of the judgement lives. Behaviour is the least glamorous group and the most practical: it describes the strategy's conduct rather than its outcome, and tells you whether the rules did what you designed them to do.

The example throughout is the same backtest the first article reads, Midcap Climbers, tested from 3 Nov 2021 to 3 Nov 2026. Its figures belong to one strategy over one test window; treat them as an example of how to read a results page, never as an indication of what a strategy might return.

Quality — what the returns cost in risk

Four figures that put return and risk in one number

Sharpe Ratio

  • Return per unit of total volatility
  • Treats upside and downside alike

0.86

in this backtest

Sortino Ratio

  • Return per unit of downside volatility only
  • Upside swings don't count against it

1.0

in this backtest

Win Ratio

  • Share of trades that made money
  • Says nothing about size

44.4%

in this backtest

Profit Factor

  • Gross profit divided by gross loss
  • Says nothing about frequency

1.64

in this backtest

Illustrative, from one backtest over one period. Higher is generally better for each, but none is a threshold to clear.

Sharpe Ratio

Sharpe is how much return the strategy earned for the ups and downs it went through: return divided by total volatility, treating a violent move upward as just as much "risk" as one downward. Two strategies with the same CAGR can feel very different to hold, and the bumpier one has the lower Sharpe.

Before you compare it with a figure from anywhere else: NiveshBuddy calculates it without a risk-free rate, so it reads higher than the textbook version. The results page describes it in words on its own scale — strong from 1.5, good from 1, moderate from 0.5, weak below that — so the 0.86 here reads: "Sharpe 0.86: moderate. Returns came with noticeable ups and downs." Compare Sharpe figures within NiveshBuddy, not across tools.

Sortino Ratio

Sortino asks the same question but counts only downside movement, because rises are not a risk. Sortino sitting above Sharpe — 1.0 against 0.86 here — is the ordinary case, and the gap is itself informative: part of this strategy's volatility was upward, which is the kind nobody objects to.

Win Ratio and Avg Gain / Loss

Win Ratio is the share of completed trades that made money: 44.4% here, so fewer than half finished positive. Avg Gain / Loss of 17.54% / −7.63% (shown under Portfolio Behavior) is the average winning and losing trade: the average winner earned about 2.3 times what the average loser cost. Together they show how the strategy makes money: many small wins, or a few large ones paying for many small losses. A win ratio under 50% is normal for momentum strategies when the average gain is much larger than the average loss. Both count completed trades only, net of transaction costs.

When fewer than half the trades won, the Key takeaway says so in a sentence of its own. Here: "Wins 44% of trades; the average win is 2.3× the average loss, so a few big winners carry the result."

Profit Factor

Profit Factor is the rupees made on winning trades for each rupee lost on losing trades. Above 1, the winners outweighed the losers after costs: 1.64 says gross profits were about 1.6 times gross losses. Read with the win ratio, it says what neither says alone: fewer than half the trades worked, and those that did more than paid for those that didn't.

Reverse it and you get a strategy worth being suspicious of — a 75% win ratio with a profit factor near 1.0 describes many small gains funding a few large losses. Either shape can be viable. Neither can be judged from one number.

Gain / Pain Ratio

Gain / Pain Ratio adds up every daily gain of the portfolio and divides it by the size of every daily loss added up. Above 1, the rising days outweighed the falling ones; near 1, the gains barely covered the losses. 1.16 here means the up days added up to about 1.16 times the down days.

It is Profit Factor's question asked of days instead of trades. Gain / Pain counts the whole portfolio on every day of the test, open positions and cash included, so it reflects the path you would have lived through rather than the trades you would have closed. Daily gains and losses largely cancel, so it sits much closer to 1 than Profit Factor does, and small differences between strategies tested over the same period are the useful part. What it hides is order: a run of losing days in a row and the same days spread out give the same figure, which is why it sits beside the drawdown figures, not in place of them.

Behaviour — what the strategy actually did

Total Trades

Total Trades of 358 counts completed round trips (an entry and its exit; open positions aren't counted). It carries the most real-world consequence, because every trade costs something a backtest may not fully model. A strategy trading a few hundred times makes a different demand on you than one trading thirty, regardless of what either returned. With fewer than about 20 trades, a few positions can swing the whole result; the app's How to read this result steps make the same point.

Avg / Max Holding

Avg / Max Holding of 71 / 397 days describes timescale, and doubles as a consistency check: if you designed a long-horizon strategy and the average holding is eleven days, something in the rules is not doing what you intended.

Max Gain / Loss

Max Gain / Loss of 197.16% / −35.80% is the best and worst single completed trade. It is worth knowing because a single outsized winner can carry an entire backtest's headline return, and that is a fragile thing to depend on.

Max / Avg Cash

Max / Avg Cash of 56.7% / 3.4% is the highest share of the portfolio's value held in cash at the end of any day, and the average of that daily share. Cash earns nothing in a backtest, so it describes how much of the money was actually at work.

Why cash builds up

Empty slots

Fewer stocks pass the filters than the strategy holds.

Waiting for an entry

The cash from an exit is waiting for the next entry.

Investment Mode limits

The mode holds an entry back to its limit, and the rest stays as cash.

Here the average is low: on a typical day almost all the money was invested, so the returns and the drawdowns describe a nearly fully invested portfolio. The maximum shows that at one point more than half of it sat in cash. What it hides is how long: like Top 1/2/3 Weight, the maximum can be a single day. Read it with the Investment Mode. Fixed and the capped Reinvest modes can leave more in cash than Reinvest (no capping), which this strategy runs.

Common misconceptions

  • "A high win ratio means a reliable strategy." It means trades finished positive more often than not. Without profit factor and average gain versus loss, it says nothing about whether those wins were big enough to matter.
  • "Sharpe below some threshold means reject it." Ratios are comparative, not absolute — most useful comparing strategies tested over the same period, and nearly meaningless as a pass mark.
  • "More trades means the strategy is working harder." More trades means more cost and more exposure to the gap between a backtest and reality. Activity is not evidence of edge.

Key takeaways

  • Sharpe counts all volatility, Sortino only downside; Sortino sitting above Sharpe says part of the movement was upward.
  • NiveshBuddy's Sharpe has no risk-free rate, so compare it only within the product.
  • Win ratio and profit factor are meaningless apart — together they describe whether the winners were large enough to pay for the losers. Gain / Pain asks the same of every day rather than every trade.
  • Trade count, holding period and the biggest single trades are consistency checks: they tell you whether the strategy did what you designed it to do.
  • Max / Avg Cash shows how much of the money was at work; read it with the Investment Mode.