Back to Docs
Traderoid

KAMA Pass

Kaufman Adaptive Moving Average — Series Input

IndicatorTrendOverlay

Overview

KAMA Pass applies Perry Kaufman's Adaptive Moving Average to any upstream numeric series. KAMA slows down in choppy, sideways markets and accelerates during directional moves by adapting its smoothing constant to the Efficiency Ratio.

Formula

ER = |x[t] − x[t−period]| / Σ|x[i]−x[i−1]| SC = (ER·(2/3 − 2/31) + 2/31)² KAMA[t] = KAMA[t−1] + SC·(x[t] − KAMA[t−1])

Parameters

ParameterTypeDefaultDescription
periodnumber10Efficiency Ratio lookback length.

Inputs & Outputs

PortDirectionTypeDescription
inputInput(number | null)[]Any numeric series (values + timestamps).
valuesOutput(number | null)[]Smoothed output series, null for warm-up bars.
timestampsOutputnumber[]Bar timestamps aligned with values.