Trends/Statistics and risk

Rolling return

The percent change over a fixed window, such as 1 year, calculated for every date.

Statistics and riskBest on 3Y, 5Y, MAXAlso called trailing return
Rolling return diagramIllustration of the rolling return shape. It is a sketch, not real price data.1-year return, %
Illustration of the rolling return shape. It is a sketch, not real price data.

What it shows

A rolling return shows the gain or loss over the last N days for each day on the chart. A 252-day rolling return on a given day is the change in price over the past year.

Seeing the whole line shows how returns have varied, and not just the latest figure.

How we find it

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

  1. Pick the window (252 bars).
  2. Return = close ÷ close 252 bars ago − 1.
  3. Plot the series.
  4. Show the best, worst and median.

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

How to read it

  • The panel shows the 1-year return for every day.
  • The dashed line is zero.
  • The range shows how varied it has been.

Status labels you may see

LabelWhat it means
PositiveReturn above 0.
NegativeReturn below 0.
Near zeroWithin ±2%.

What cancels it

Nothing cancels it.

What traders check next

  • Best and worst windows.
  • Share of windows that were positive.
  • Compare with the index.

Limits

  • Overlapping windows are not independent.
  • Window choice changes the answer.
  • Past returns are no forecast.

Try it in forecastviz

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

Questions

Why not just show the 1-year return?

The full line shows how it has changed.

Are overlapping windows an issue?

They make the line smooth but share the same data.

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.