Math Operators

Highest Value Over Period (Rolling Maximum) (MAX)

Highest value over a specified period

Deep Dive

Everything You Need to Know

Under the Hood

How It Works

MAX finds the highest value in a rolling lookback window of specified period (default 30). For each bar, MAX scans the previous n bars and returns the maximum value found. This creates a step-function line showing recent peak values. MAX is the mathematical equivalent of identifying resistance levels - the recent highs that price hasn't exceeded.

In Practice

How Traders Use It

Traders use MAX to identify recent resistance levels, track highs for breakout detection, or calculate range metrics. When price equals MAX, it's at a new high for the period. MAX is commonly used with MIN to create Donchian Channels or calculate recent trading ranges. Essential for breakout strategies and adaptive support/resistance systems.

Highlights

MAX at a Glance

Returns highest value in rolling window
Default 30-period lookback
Identifies recent resistance/peak levels
When price = MAX, new period high
Used with MIN for Donchian Channels
Essential for breakout detection

Get Started

Automate MAX with cryptorobot.ai

Build automated strategies using Highest Value Over Period (Rolling Maximum) and hundreds of other indicators. Connect to your favourite exchange and let the bot execute trades 24/7 — no code required.