Functions
talib.kcw()
Keltner Channels Width. The Keltner Channels Width is the difference between the upper and the lower Keltner Channels divided by the middle channel.
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
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)