Rolling Max

What it measures: The highest value in an N-bar window (includes the current bar)

When to use it: Finding short-term resistance / breakout levels. Can take in-series

Typical period: 20

Caution: Includes the current bar — Compare(close > rolling_max(close)) will never be true, since max already includes that close. Route it through Lag(1), or use Swing High instead

Formula the engine actually uses

series.rolling(period).max()

smoothing: None (raw window max) · warmup: period