KeltnerWidth

forge.taclassSince Forge API 1
Signaturepython
forge.ta.KeltnerWidth(**inputs: Any) -> None

The distance between the Keltner bands relative to the middle line.

Inputs

NameTypeDefaultRange
ema_periodint201 to 5000
atr_periodint101 to 5000
atr_factorfloat20 to 10

Indicator: Keltner channel width

width = (upper - lower) / middle

middle = the EMA of the closes over ema_period

upper = middle + atr_factor * ATR, lower = middle - atr_factor * ATR

ATR is the simple average of the true range over atr_period, as the MetaTrader 5 Keltner Channel computes it.