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
- Rolling minThe lowest value another series reached over a recent window.
- Sine WMAA moving average whose weights rise to a peak in the middle of the window and taper at both ends — a very smooth line.
- SMAThe plain trend line — the classic "is this stock healthy?
- Smoothed MAThe smoothed moving average — the same slow, sticky line as Wilder's RMA, under its other common name.
Or browse all 158 indicators in the full library.