Math Operators

Minimum and Maximum Values (Range Bounds) (MINMAX)

Lowest and highest values over a specified period

Deep Dive

Everything You Need to Know

Under the Hood

How It Works

MINMAX returns both the minimum and maximum values over the lookback period (default 30) in a single function call, providing both range boundaries simultaneously. This is computationally more efficient than calling MIN and MAX separately. The two outputs define the recent trading range - the support (min) and resistance (max) levels for the period.

In Practice

How Traders Use It

Traders use MINMAX to efficiently get both range boundaries for Donchian Channels, range breakout systems, or volatility measurement. The difference (max - min) gives range size for volatility assessment. When price equals max, it's breaking resistance; when equals min, breaking support. MINMAX is the foundation for Donchian Channel strategies and range-based trading systems.

Highlights

MINMAX at a Glance

Returns both min and max in one call
Two outputs: minimum and maximum values
Default 30-period lookback
Defines support/resistance range
More efficient than separate MIN+MAX calls
Foundation for Donchian Channels

Get Started

Automate MINMAX with cryptorobot.ai

Build automated strategies using Minimum and Maximum Values (Range Bounds) and hundreds of other indicators. Connect to your favourite exchange and let the bot execute trades 24/7 — no code required.