Functions
talib.kcw()
Keltner channel width for `source` over `length` bars: one figure in place of the three the channel call returns. The argument list matches `talib.kc`, `useTrueRange` included.
Syntax
talib.kcw(series float source, series int length, series int mult, series bool useTrueRange) → series float
Arguments
source required series float Series of values to process. length required series int Number of bars (length). mult required series int Standard deviation factor. useTrueRange series bool Return Type
series float Example
//@lipi=2
indicator("Keltner Channel Width (KCW)", overlay=false)
length = input(20, "Length")
mult = input(2, "Multiplier")
source = input(close, "Source")
kcWidth = talib.kcw(source, length, mult)
plot(kcWidth, color=color.blue, title="KC Width", style=plotStyle.histogram)
hline(0, "Zero Line", color=color.gray)