TREND, MOVING AVERAGES & STRUCTURE

Rolling max

The highest value another series reached over a recent window.

spec id: rolling_maxlength (default 20)

What does Rolling max measure?

The highest value another series reached over a recent window. It is the building block for "is this at a 60-day high?" rules.

How is Rolling max calculated?

You point it at a `source` — either a base feature like `close` or an indicator you attached EARLIER in the list — and it reports the largest value that source has taken over the last 20 candles. Only past candles are ever read.

Written by reading the engine’s real computation, not a textbook — where the two differ, the page describes what actually runs.

How do I use Rolling max in a bot?

In the builder, add an indicator of type rolling_max (parameters: length, default 20). Its value becomes an operand you can compare in any entry or exit rule. The engine grades the whole rule honestly: real fills, no look-ahead, half the history held back.

Related indicators

Or browse all 158 indicators in the full library.

Build a bot that trades on Rolling max — the first backtest is free.

Run a free backtest