Cryptorobot.ai

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

Related

More Math Operators

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.

FAQ

Frequently Asked Questions

What is the Highest Value Over Period (Rolling Maximum) (MAX) indicator?

Highest value over a specified period

How does MAX work?

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.

How do traders use MAX in their strategies?

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.

What are the key points to know about MAX?

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

Can I use MAX with Cryptorobot.ai?

Yes. Highest Value Over Period (Rolling Maximum) (MAX) is available as a built-in indicator in Cryptorobot.ai. You can add it to any automated strategy using the no-code strategy builder, backtest it against historical data, and deploy it live on supported exchanges.