Lowest and highest values over a specified period
Under the Hood
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
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.
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.