Keltner Channels

An exponential average with bands set by the average true range.

Keltner channels: middle = EMA(x, period); upper / lower = middle ± mult × ATR(atr_period) (Wilder ATR). Ready when both the EMA and the ATR are.

Settings

SettingDefaultRangeWhat it does
period201 to 500EMA period of the middle line.
mult20.1 to 10Channel distance in ATRs.
atr_period101 to 500ATR period.

What it gives

OutputWhat it is
Middle lineThe EMA.
Upper channelMiddle + mult × ATR.
Lower channelMiddle − mult × ATR.

What it reads

It reads open, high, low, close, hl2, hlc3, ohlc4, hlcc4, close by default.

Warm-up

With its default settings, Keltner Channels needs 181 closed candles before its first value. A backtest loads them before its start date, so the first trade can already use it.

Related indicators

Used to build: TTM Squeeze

Test it

Copy this sentence into the Algonney chat to backtest it:

Backtest a strategy on BTC that uses Keltner Channels with its default settings