Indicators
KAMA: Kaufman Adaptive Moving Average Explained
How KAMA speeds up in trends and flattens in chop using the efficiency ratio, and how to automate adaptive moving averages in Setup.Cash.
Featured image placeholder
/og/setup-cash-og.svg
Every moving average forces the same compromise: fast ones whipsaw in ranges, slow ones lag in trends. Perry Kaufman's KAMA (Kaufman Adaptive Moving Average) refuses the compromise — it changes its own speed based on how efficiently price is moving.
How KAMA Works
KAMA computes an efficiency ratio: net price change over the period divided by the sum of all the bar-to-bar movement it took to get there.
- Trending market: price travels in a straight line → high efficiency → KAMA speeds up toward its fast setting (default 2).
- Choppy market: price churns without going anywhere → low efficiency → KAMA slows toward its slow setting (default 30) and simply flattens.
The visual signature is unmistakable: KAMA hugs trends closely, then goes nearly horizontal in chop instead of weaving through it.
How to Trade It
1. Price cross. Long when price closes above KAMA, exit below — the adaptive speed means far fewer range whipsaws than the same rule on an EMA.
2. KAMA slope. Only trade when KAMA is actually sloping; a flat KAMA is the range filter, no extra indicator needed.
3. Fast/slow KAMA pair. Two KAMAs (e.g. 10 and 21) crossing gives an adaptive version of the classic MA crossover.
Building It in Setup.Cash
Add KAMA in the strategy builder with its period, fast, and slow parameters, and condition on price crossing it or on its direction. See our moving averages guide for how it compares to SMA/EMA/WMA foundations.
Tuning
- 10 / 2 / 30: Kaufman's classic.
- Longer period (21+): smoother efficiency measurement — steadier regime detection.
- The extended library offers relatives: VIDYA (volatility-indexed), McGinley Dynamic, JMA, and Zero Lag MA — each a different answer to the lag-vs-noise problem.
Adaptive averages shine exactly where fixed ones fail. Backtest KAMA against an EMA of the same length on your market and compare drawdowns in ranging months.
Related Posts
View allIndicators
The Advanced Trend Indicators Library: ALMA, JMA, VIDYA & 30+ More
Every advanced trend indicator in the Setup.Cash engine — adaptive moving averages, smoothing filters, and trend detectors — explained in one guide.
3 min read · 476 words
Indicators
Accumulation / Distribution (A/D) Indicator Explained
How the A/D line weights volume by close location within the range to track accumulation, in Setup.Cash.
2 min read · 209 words
Indicators
ADX and DI Explained: Measuring Trend Strength
How the Average Directional Index measures trend strength, how +DI and −DI show direction, and how to use ADX as a regime filter in Setup.Cash.
2 min read · 290 words
Indicators
AlphaTrend Indicator Explained
How the AlphaTrend indicator combines ATR bands with momentum gating for a self-filtering trend line in Setup.Cash.
2 min read · 207 words
Start here
Build your trading bot workflow with structure
Use Setup.Cash to create, backtest, and paper trade rule-based strategies without relying on guesswork. Not financial advice. Trading involves risk.