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

  1. 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

  2. Calculate the efficiency ratio

    Change = absolute value of today’s close minus the close 10 periods ago. Volatility = sum of the 10 absolute bar-to-bar changes. ER = Change ÷ Volatility.1 It runs from 0 to 1.2

  3. Set the fast and slow constants

    Fast SC = 2 ÷ (2 + 1) = 0.6667 and slow SC = 2 ÷ (30 + 1) = 0.0645.3

  4. Build the smoothing constant

    SC = [ER × (fast SC − slow SC) + slow SC]². Squaring makes the slow end much slower.1 Kaufman recommended the squaring.3

  5. Update KAMA

    KAMA = prior KAMA + SC × (price − prior KAMA). The first value is a simple moving average.1 See Moving Average.

  6. 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

Fast

Over 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.

Example 1 — A trending market — calculation
ER = $5.00 ÷ $6.250.80
ER × (0.6667 − 0.0645)0.80 × 0.6022 = 0.4818
Add slow SC0.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

Slow

Same 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.

Example 2 — A choppy market — calculation
ER = $1.00 ÷ $10.000.10
ER × 0.60220.10 × 0.6022 = 0.0602
Add slow SC0.0602 + 0.0645 = 0.1247
SC = 0.1247²0.0156
Step = SC × $2.000.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

Filter

A 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.

Example 3 — A crossover filter — calculation
Crosses9
Filtered out9 − 4 = 5
Trades taken4

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

AspectSpeedIn choppy markets
EMAFixed multiplier 2 ÷ (N + 1)3Keeps reacting at the same speed
DEMA / TEMAFixed, with lag correction5Faster, so more noise5
KAMAChanges with the efficiency ratio4Slows down and flattens4

How traders use KAMA

  • Trend direction

    The direction of KAMA defines the trend.1 See Trend.

  • 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

  • Follows price closely in efficient trends.3
  • Slows down in choppy markets, which helps avoid whipsaws.4
  • The efficiency ratio is a useful trend gauge on its own.2
  • Settings are transparent and easy to adjust.1

Disadvantages

  • A plain crossover system still produces many whipsaws.1
  • Three settings to choose, instead of one.1
  • Squaring the constant greatly reduces its response in choppy markets.4 When a range turns into a trend, it can trail price at first.
  • Its behaviour depends heavily on the efficiency-ratio length chosen.4

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

Raising the ER period is generally discouraged, while lowering it makes KAMA more sensitive.1 Raising the middle setting, from 2 to 5, makes KAMA smoother.1 The ER rarely reaches 0 or 1 in practice.1

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

  1. Forgetting to square the constant

    SC is the bracket squared, not the bracket itself.1

  2. 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

  3. Trading every cross

    KAMA crossovers still whipsaw; add a filter such as a holding period or a percentage band.1 See Whipsaw.

  4. 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.

Q1Net change over 10 bars is $3.00 and the bar-to-bar moves add up to $12.00. What is the efficiency ratio?
Q2Prior KAMA is $40.00, price is $42.00 and SC is 0.25. What is the new KAMA?

Key points to remember

  1. KAMA was introduced by Perry Kaufman in his 1995 book Smarter Trading.
  2. ER = net change ÷ sum of bar-to-bar changes, from 0 (choppy) to 1 (straight line).
  3. SC = [ER × (fast SC − slow SC) + slow SC]², with (10, 2, 30) as the usual settings.
  4. KAMA = prior KAMA + SC × (price − prior KAMA).
  5. 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?

10 is the efficiency ratio period, 2 is the period of the fastest EMA constant and 30 the period of the slowest.1

Is KAMA better than an EMA?

It adapts where an EMA cannot: it follows clean trends and slows down in noise.3 It still lags and still gives false crosses, so the rules around it matter as much as the line.1

What is a good efficiency ratio?

There is no fixed threshold. Values near 1 mean a straight, efficient move and values near 0 mean churn.2 Extremes are uncommon.1

Further learning

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.

  1. StockCharts ChartSchool. Kaufman's Adaptive Moving Average (KAMA) (opens in a new tab) Checked .
  2. TA-Lib. Kaufman Efficiency Ratio (ER) (opens in a new tab) Checked .
  3. MetaQuotes (MetaTrader 5 Help). Adaptive Moving Average (opens in a new tab) Checked .
  4. TradingView. Kaufman's Adaptive Moving Average (KAMA) – Help Center (opens in a new tab) Checked .
  5. 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.