kc
forge.tafunctionSince Forge API 1
Signaturepython
forge.ta.kc(high: ArrayLike,low: ArrayLike,close: ArrayLike,ema_period: int = 20,atr_period: int = 10,atr_factor: float = 2.0) -> dict[str, np.ndarray]Keltner channel: an EMA of closes with bands atr_factor average true ranges away.
Parameters
| Name | Type | Default |
|---|---|---|
| high | ArrayLike | |
| low | ArrayLike | |
| close | ArrayLike | |
| ema_period | int | 20 |
| atr_period | int | 10 |
| atr_factor | float | 2.0 |
The average true range is the simple average of the true range, as the MetaTrader 5 Keltner Channel computes it.