Keltner channel

kcvolatilityForge API 1

An EMA with bands set by the average true range.

Inputs

NameTypeDefaultRange
ema_periodint201 to 5000
atr_periodint101 to 5000
atr_factorfloat20 to 10

Outputs

NameTypeRequiredDescription
uppervalueOptionalcolor theme.series_b, style line, width 1
middlevalueOptionalcolor theme.series_a, dash dash, style line, width 1
lowervalueOptionalcolor theme.series_b, style line, width 1
Warm-up
max(ema_period - 1, atr_period) bars (19 at the defaults)
Repaints
No
Parity
MetaTrader 5, within 1e-12

Formula

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.