Cookbook
Keltner channel
An average with bands from average true range.
//@zscript 1
indicator("Keltner", overlay=true)
[mid, up, lo] = ta.kc(close, 20, 1.5)
p1 = plot(up, "Upper", color=color.orange)
p2 = plot(lo, "Lower", color=color.orange)
plot(mid, "Middle", color=color.gray)
fill(p1, p2, color.new(color.orange, 93))
How it works
Same idea as Bollinger Bands, but the width follows the typical bar size (ATR) rather than standard deviation.
Education only. Not financial advice. Examples are teaching samples, not trading results.
