Kaufman Adaptive Moving Average (KAMA)KAMA
The Kaufman adaptive moving average changes its speed with an efficiency ratio that compares net price movement with total movement. In clean trends it follows price closely; in choppy markets it slows down and flattens, which filters noise.
Most moving averages have a fixed speed, so a setting that suits a clean trend is too jumpy in a choppy market, and the reverse. Perry Kaufman’s adaptive moving average changes its own speed bar by bar.1 He presented it, together with the efficiency ratio that drives it, in his 1995 book Smarter Trading.2 When price moves steadily in one direction, KAMA behaves like a fast average; when price goes back and forth, it behaves like a slow one.3 This entry explains the efficiency ratio, the smoothing constant and the KAMA update, with worked numbers for a trending and a choppy market.
- Category
- Indicators and Tools
- Reading time
- 6 min
- Also called
- Kaufman's adaptive moving average, Efficiency ratio, Adaptive moving average
- Updated
KAMA in plain words
Imagine measuring a walk two ways: how far you ended up from the start, and how many steps you took. If you walked in a straight line, the two are equal. If you wandered back and forth, you took many steps but got nowhere. Kaufman’s efficiency ratio is the first number divided by the second.4
KAMA uses that ratio as a speed dial. A ratio near 1 means price is moving efficiently, so the average follows it closely. A ratio near 0 means choppy movement, so the average barely moves and avoids whipsaws.4
How to build and read KAMA, step by step
Choose the three settings
The usual settings are (10, 2, 30): 10 periods for the efficiency ratio, 2 for the fastest EMA constant and 30 for the slowest.1
Set the fast and slow constants
Fast SC = 2 ÷ (2 + 1) = 0.6667 and slow SC = 2 ÷ (30 + 1) = 0.0645.3
Update KAMA
KAMA = prior KAMA + SC × (price − prior KAMA). The first value is a simple moving average.1 See Moving Average.
Read direction and crosses
A rising KAMA with higher highs points to an uptrend and a falling one with lower lows to a downtrend; price crossing KAMA signals a possible change of direction.1
Worked examples
Example 1 — A trending market
FastOver 10 bars a hypothetical stock rises $5.00 net. The ten bar-to-bar moves add up to $6.25. Prior KAMA is $50.00; today’s close is $52.00.
| ER = $5.00 ÷ $6.25 | 0.80 |
| ER × (0.6667 − 0.0645) | 0.80 × 0.6022 = 0.4818 |
| Add slow SC | 0.4818 + 0.0645 = 0.5463 |
| SC = 0.5463² | 0.2984 |
| Step = SC × ($52.00 − $50.00) | 0.2984 × $2.00 = $0.60 |
| New KAMA | $50.00 + $0.60 = $50.60 |
With an efficient trend, KAMA closes almost 30% of the gap to price in one bar.
Example 2 — A choppy market
SlowSame prior KAMA ($50.00) and close ($52.00), but over 10 bars the stock moved only $1.00 net while the bar-to-bar moves add up to $10.00.
| ER = $1.00 ÷ $10.00 | 0.10 |
| ER × 0.6022 | 0.10 × 0.6022 = 0.0602 |
| Add slow SC | 0.0602 + 0.0645 = 0.1247 |
| SC = 0.1247² | 0.0156 |
| Step = SC × $2.00 | 0.0156 × $2.00 = $0.03 |
| New KAMA | $50.00 + $0.03 = $50.03 |
The same $2.00 gap moves KAMA by only $0.03, because the market wandered a lot to get nowhere. That flat line is what filters noise.4
Example 3 — A crossover filter
FilterA hypothetical trader uses StockCharts’ setup: buy when price crosses above KAMA(10,2,30) only while KAMA(10,5,30) is rising.1 In one quarter there are 9 crosses; 4 happen while the slow KAMA is rising.
| Crosses | 9 |
| Filtered out | 9 − 4 = 5 |
| Trades taken | 4 |
A plain crossover system on KAMA gives many signals and whipsaws; a trend filter like this, a holding period or a percentage band cuts their number.1
KAMA compared with fixed-speed averages
How traders use KAMA
Trend direction
Two KAMAs, two jobs
A slower KAMA such as (10,5,30) can act as a trend filter and a faster one such as (10,2,30) can time entries.1
Spotting choppy conditions
A flat KAMA is itself a hint that the market is choppy.4 See Range Trading.
The efficiency ratio on its own
The ER is a 0-to-1 gauge of how straight a move is: 1 is a straight line and values near 0 are churn.2
Advantages and disadvantages
Advantages
Disadvantages
Going deeper
Read as far as you need. Each level builds on the one before it.
A moving average with a speed dial
Beginner
KAMA speeds up when price moves cleanly and slows down when price wanders.3 Read it from its direction and from price crossing it.
What the settings change
Intermediate
Why the constant is squared
Advanced
Without squaring, SC would range from 0.0645 to 0.6667. Squared, it ranges from about 0.0042 to 0.4444, so the slow end becomes far slower while the fast end stays usable. MetaTrader notes that Kaufman recommended this to make the effect of the constant more pronounced.3 A flat window, where price did not move at all, is a special case that TA-Lib reports as an ER of 1.0.2
Common mistakes
Forgetting to square the constant
SC is the bracket squared, not the bracket itself.1
Mixing up net change and total movement
Change is one absolute difference over 10 bars; volatility is the sum of all 10 bar-to-bar absolute changes.1
Calling the ER a trend direction
The ER uses absolute values, so it shows how efficient a move is, not whether it is up or down.2
Check your understanding
Test yourself before moving on. Each answer comes with an explanation.
Key points to remember
- KAMA was introduced by Perry Kaufman in his 1995 book Smarter Trading.
- ER = net change ÷ sum of bar-to-bar changes, from 0 (choppy) to 1 (straight line).
- SC = [ER × (fast SC − slow SC) + slow SC]², with (10, 2, 30) as the usual settings.
- KAMA = prior KAMA + SC × (price − prior KAMA).
- It follows clean trends and flattens in noise, but crossovers still need a filter.
Frequently asked questions
What do the KAMA settings 10, 2, 30 mean?
Is KAMA better than an EMA?
Further learning
- Moving Average
How the fixed-speed EMA that KAMA adapts works.
- Whipsaw
The problem KAMA was designed to reduce.
- Double Exponential Moving Average (DEMA)
A different way to cut lag, with a fixed speed.
- Average Directional Index
Another way to measure how strongly a market is trending.
Sources
This article is written in our own words. The sources below support the specific facts, rules and figures marked with a number in the text. Links open the original publisher’s page.
- StockCharts ChartSchool. Kaufman's Adaptive Moving Average (KAMA) (opens in a new tab) Checked .
- TA-Lib. Kaufman Efficiency Ratio (ER) (opens in a new tab) Checked .
- MetaQuotes (MetaTrader 5 Help). Adaptive Moving Average (opens in a new tab) Checked .
- TradingView. Kaufman's Adaptive Moving Average (KAMA) – Help Center (opens in a new tab) Checked .
- StockCharts ChartSchool. Triple Exponential Moving Average (TEMA) (opens in a new tab) Checked .
Educational content, not financial advice. Examples use hypothetical prices and simplified costs; actual fees, margin rules and regulations vary by broker, market and country. We are not affiliated with any publisher linked above. Last reviewed . Report an error or request a source credit.