ta.kc
Keltner Channels: returns [middle, upper, lower] with middle = ema(series, length) and bands at mult * ema of the true range (or high - low when useTrueRange is false).
ta.kc(series: float, length: simple int, mult: float, useTrueRange: bool = true) -> series [float, float, float]
Parameters
seriesfloat: The values to use, usually close or another price; a series that may change on every bar.lengthsimple int: Number of bars, a whole number from 1 to 5000 (a fraction is cut off). Known before the first bar: a literal or an input, never a series. Outside 1 to 5000 the script stops with a runtime error. Bars of both EMAs: the middle line and the averaged range.multfloat: The band distance from the middle line in multiples of the averaged range.useTrueRangebool: true (default) averages the true range, false averages high - low.
Example
[mid, up, lo] = ta.kc(close, 20, 1.5)