Highest value over a specified period
Under the Hood
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
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.
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.