Skip to main content

Volatility & Range Indicators

These indicators measure how much price is moving (volatility) or track recent price extremes (range) — the building blocks for breakout strategies and volatility-adjusted stops. For the shared parameters, see Indicator Parameters Explained.

1. Bollinger Bands

Three lines plotted around price:

  • Middle Band — a moving average (typically 20-period)
  • Upper Band — middle band + N standard deviations (default 2)
  • Lower Band — middle band − N standard deviations

The bands widen when volatility rises and narrow when it falls. Price near the upper band suggests overbought; near the lower band, oversold. Price above/below the middle band indicates the trend direction.

Parameters:

ParameterDefaultDescription
period20Lookback for the middle band
standard_deviations2Band width — higher = wider bands, fewer signals; lower = tighter bands, more signals
band_typeWhich band the condition uses: Upper, Middle, or Lower
source / candle_type / timeframe / offsetStandard

Bollinger Bands parameters

Band type selection

Example strategy — breakout (trending markets):

Condition
EntryClose crosses above the Upper Band — breakout with strong upward momentum
ExitClose crosses below the Lower Band
Breakout vs mean reversion

The breakout strategy above suits trending markets. In ranging markets, traders often invert the logic — buy at the lower band, exit at the upper band (mean reversion). Know which market you're in, or filter with ADX.

2. ATR (Average True Range)

Measures volatility only — how much price moves on average per candle over the period. It says nothing about direction.

Common uses:

  • Trailing stops — a stop placed N × ATR away adapts automatically: wider in volatile markets, tighter in calm ones
  • Position sizing — high ATR → smaller position to keep risk constant

Parameters:

ParameterDefaultDescription
period14Shorter (e.g., 5) reacts faster to volatility changes; longer (e.g., 20) is smoother
candle_type / timeframe / offsetStandard

ATR parameters

Example strategy — SMA entry with ATR trailing stop:

Condition
EntryClose crosses above SMA(20)
ExitClose crosses below (SMA(20) − 2 × ATR(14)) — a volatility-adjusted trailing stop

3. Min Max

Tracks the highest (MAX) or lowest (MIN) value of a price source over a lookback period — the recent extremes that define support/resistance. This is the standard building block for price-channel breakout strategies.

Parameters:

ParameterDescription
min_max_typeMIN (lowest value in the period) or MAX (highest value in the period)
periodHow many candles to look back (e.g., 20)
sourcePrice point used — e.g., HIGH for breakout highs, LOW for breakdown lows
candle_type / timeframe / offsetStandard

Min Max parameters

Example strategy — price channel breakout:

Condition
EntryClose crosses above MAX(HIGH, 20) — price breaks its 20-candle high
ExitClose crosses below MIN(LOW, 10) — price breaks its 10-candle low