← Back to Library
Volatility

Keltner Channels

Keltner Channels are volatility-based bands that are placed on either side of an asset's price and can aid in determining the direction of a trend using ATR.

Pine Script V6
//@version=6
indicator('Keltner Channels', overlay=true)
len = input.int(20, 'Length')
mult = input.float(2.0, 'Multiplier')
ma = ta.ema(close, len)
rng = ta.atr(10)
upper = ma + rng * mult
lower = ma - rng * mult
plot(ma, 'Basis', color=color.blue)
plot(upper, 'Upper', color=color.blue)
plot(lower, 'Lower', color=color.blue)