Trends/Statistics and risk

Rolling Sharpe ratio

The average return over a year divided by the volatility of that return, as a rolling line.

Statistics and riskBest on 3Y, 5Y, MAXAlso called return per unit of risk
Rolling Sharpe ratio diagramIllustration of the rolling Sharpe ratio shape. It is a sketch, not real price data.Rolling Sharpe
Illustration of the rolling Sharpe ratio shape. It is a sketch, not real price data.

What it shows

The Sharpe ratio, from William Sharpe, divides the average excess return (over a risk-free rate) by the standard deviation of returns. A higher number means more return per unit of volatility.

We compute it over 252 days of daily returns, with the risk-free rate set to zero for simplicity.

How we find it

The same code that draws it on your chart follows these steps, with the same result every time.

  1. Daily returns for the last 252 days.
  2. Mean daily return ÷ standard deviation.
  3. Multiply by √252 to annualize.
  4. Plot as a rolling line.

Starting values: Window 252 bars; Risk-free 0. These are proposed and will be tuned on real price data before launch.

How to read it

  • The panel shows the ratio over time.
  • The dashed line is zero.
  • Above 1 is often called good.

Status labels you may see

LabelWhat it means
HighAbove 1.
Moderate0 to 1.
NegativeBelow 0.

What cancels it

Nothing cancels it.

What traders check next

  • Volatility.
  • Period.
  • Compare with the index.

Limits

  • Assumes a bell curve.
  • Penalizes upside swings too.
  • Window is a choice.

Try it in forecastviz

  • Open any ticker and choose Statistics and risk → Rolling Sharpe ratio in the left menu.
  • Switch between 3Y, 5Y, MAX to see how the picture changes.
  • Compare with Rolling return and Maximum drawdown on the same chart.

Questions

Is a high Sharpe good?

It means high past return for its volatility. No claim about future.

Why zero risk-free?

For simplicity. The actual rate would lower the ratio.

Related trends

Further reading

  • Kaufman, Trading Systems and Methods
  • Achelis, Technical Analysis from A to Z
  • Mandelbrot, The (Mis)Behavior of Markets
  • Sharpe, Mutual Fund Performance

Educational only. Not financial advice, and not a price forecast. Charts are drawn by code from past price data, which may be delayed.