Concept

KAMA

KAMA is a Trend concept. The Library holds 6 implementations, each one a working definition you can pull into Quant.

Kaufman adaptive. efficiency ratio

Top KAMA indicators

6 total

What is KAMA?

KAMA, Perry Kaufman's adaptive moving average, is an exponential average whose smoothing constant changes bar by bar with how efficiently price is moving. The sensor is the Kaufman Efficiency Ratio: net change over the lookback divided by the sum of absolute bar-to-bar changes. A straight-line move scores near 1; a path that backtracked all the way scores near 0. KAMA maps that score between a fast and a slow EMA constant (commonly 2-period and 30-period equivalents), squares it, and uses the result as the weight on new price.

The squaring matters: middling efficiency gets pushed toward the slow end, so KAMA spends choppy periods nearly flat, ignoring noise, and only accelerates when direction is genuinely persistent. That makes flatness informative in its own right, a built-in no-trend flag. The cost is adaptation lag: the efficiency ratio is computed over a window, so KAMA needs several bars of clean movement before it believes a new trend, and fresh breakouts from quiet ranges are exactly where it starts slow.

How to calculate KAMA

Kaufman's published recipe has three moving parts:

  1. 1Efficiency Ratio: ER = absolute net price change over the last N bars divided by the sum of absolute one-bar changes over the same window (N = 10 is the common default), giving a value between 0 and 1.
  2. 2Smoothing constant: SC = [ER × (fast − slow) + slow]², where fast and slow are the EMA constants 2/(2+1) and 2/(30+1) in the common parameterization.
  3. 3Recursion: KAMA today = KAMA yesterday + SC × (price − KAMA yesterday), the standard EMA update with the adaptive weight.
  4. 4Read the output together with its own slope: a sloping KAMA tracks the trend, a flat KAMA declares the window inefficient.

How traders use it

  • As a self-filtering trend line: price relative to KAMA plus KAMA's slope, with the flat-line state acting as a stand-aside signal that fixed-length averages cannot provide; it doubles as a crude trend/range classifier.
  • In crossover and trailing logic: Kaufman himself suggested acting only when the average turns by more than a small filter (a fraction of the standard deviation of its own recent changes) rather than on every wiggle.
  • As a smoothing engine elsewhere: applying KAMA to an oscillator or another indicator's output quiets rangebound noise while keeping trend response, the same adaptivity transplanted.
  • As a regime dial via its input: the efficiency ratio itself is worth plotting, and many traders treat low-efficiency stretches as no-trade zones regardless of what the average does.

KAMA vs other adaptive averages

VIDYA: Chande's VIDYA also modulates an EMA's weight, but its sensor is relative volatility or momentum (via CMO or a standard-deviation ratio) rather than path efficiency. Similar goal, different measurement of trendiness.

FRAMA: Ehlers' FRAMA estimates the fractal dimension of the price path and maps roughness to the smoothing constant: jagged paths slow it, smooth paths speed it. A geometric sensor where KAMA's is arithmetic.

EMA: Fixed smoothing constant whatever the conditions. The comparison is the whole pitch for KAMA: an EMA treats a whipsaw range and a clean trend identically, KAMA does not.

More KAMA implementations

Related concepts · Moving-average lineage

Concept family

Trend

100 concepts mapped · 88 in the Library

KAMA FAQ

What do KAMA's 10, 2, 30 settings mean?

10 is the efficiency-ratio lookback: how many bars are scored for directness of movement. 2 and 30 are the fast and slow EMA lengths whose smoothing constants bound the scaled ratio before it is squared. Perfectly efficient movement pushes KAMA toward the 2-period end; pure chop pushes it toward the 30-period end and, after squaring, effectively slower still. These are Kaufman's common defaults, not requirements.

Why does KAMA go flat in sideways markets?

By design. When price backtracks, the efficiency ratio falls toward zero, the squared smoothing constant collapses toward the slow bound, and the average nearly stops updating. The flat line is the feature: it suppresses whipsaw crossovers that would fire against a fixed-length average, and it visibly labels the environment as inefficient.

Is KAMA better than a regular EMA?

It is a different trade-off, not a strict upgrade. KAMA whipsaws less in ranges and tracks established trends closely, but it reacts late to sudden breakouts from quiet conditions because the efficiency ratio needs bars of evidence first. Whether that exchange helps depends on the market and strategy; nothing about adaptivity guarantees better results.

Build KAMA your way.

Quant writes, tests, and refines it with you — then it runs on LuxAlgo charting or ports to TradingView.