Kaufman Adaptive Moving Average (KAMA)

KAMA
Indicator

TrendOn the price chartFree on ChartLabs

KAMA is a moving average that changes speed with the market: fast when price travels cleanly in one direction, almost still when price goes nowhere.

Created by Perry Kaufman, Smarter Trading, 1995. Reviewed by the ChartLabs team, updated Nov 2026.

Example market1hIndicatorsAtlas AIKAMAchartlabs.co/charts
Atlas reads it

Price is under a falling KAMA 10. Short-term trend points down.

KAMA 10 69,910.8 · Close 69,646.1

Atlas reads it

Price is under a falling KAMA 10. Short-term trend points down.

KAMA 10 69,910.8 · Close 69,646.1

Illustration on simulated data.

Kaufman Adaptive Moving Average (KAMA)What is the KAMA indicator?

KAMA draws one blue line on the price chart. By default it measures efficiency over 10 bars and blends between the speed of a 2-bar and a 30-bar EMA.

The key input is the efficiency ratio: the net move over the last 10 bars divided by the sum of every bar-to-bar move in between. A straight run scores close to 1. A choppy stretch that ends where it started scores close to 0.

KAMA squares a smoothing constant built from that ratio, so a high score makes it follow price closely and a low score makes it barely move. In a range the line goes flat; once price starts to travel, it catches up.

Why it goes flat

With an efficiency ratio near 0 the smoothing constant falls to about (2 / 31) squared, roughly 0.004. Each bar then moves KAMA only 0.4% of the way to the close.

Warm-up

KAMA needs 10 price changes before its first value. On the 11th bar it starts at the close itself, then adapts from there.

KAMA signalsFour patterns to know.

1Bullish

Price above a rising KAMA

Closes stay above the line while it climbs. The advance is clean enough for KAMA to keep up.

Price moves, KAMA barely does
2Inconclusive

KAMA goes flat

Price moves up and down but ends where it started, so the efficiency ratio is low and the line barely moves.

Speeds up once the move is clean
3Inconclusive

KAMA speeds up

After a flat spell, a clean run lifts the efficiency ratio and the line starts to move fast. Price shows the direction.

4Bullish lean

Close crosses above

After a dip under the line, price closes back above it.

KAMA formulaHow it is calculated.

ER=|closet−closet−10|∑|closek−closek−1|sc=(ER×(23−231)+231)2KAMAt=KAMAt−1+sc×(closet−KAMAt−1)
STEP 1

Measure efficiency

Divide the net change over the last 10 bars by the sum of the 10 bar-to-bar changes. The result runs from 0 to 1.

STEP 2

Build the speed

Blend between the 2-bar EMA constant (2 / 3) and the 30-bar constant (2 / 31) by that ratio, then square it.

STEP 3

Move the line

Add that fraction of the gap between the close and the previous KAMA. The first KAMA, on the 11th bar, is the close.

KAMA settingsEvery setting, explained.

SettingDefaultRangeWhat it changes
ER length101 to 5,000Bars in the efficiency ratio. Longer judges the trend over a wider window.
Fast length21 to 5,000The EMA speed KAMA uses in a perfectly clean move.
Slow length301 to 5,000The EMA speed KAMA drops to when price goes nowhere.
SourceCloseAny priceWhich values feed the calculation.
LineBlue #2962FF, 1 pxAny colour and widthColour and width of the line.
Setting
ER length
Default
10
Range
1 to 5,000
What it changes
Bars in the efficiency ratio. Longer judges the trend over a wider window.
Setting
Fast length
Default
2
Range
1 to 5,000
What it changes
The EMA speed KAMA uses in a perfectly clean move.
Setting
Slow length
Default
30
Range
1 to 5,000
What it changes
The EMA speed KAMA drops to when price goes nowhere.
Setting
Source
Default
Close
Range
Any price
What it changes
Which values feed the calculation.
Setting
Line
Default
Blue #2962FF, 1 px
Range
Any colour and width
What it changes
Colour and width of the line.
1024 price crosses in view
70,20866,82563,44360,06164,803.7

Drag to see how the setting changes the lines and how many signals you get. Illustration on simulated data.

KAMA strategiesUse it in 3 setups.

Pullback to a rising KAMA

WhileKAMArisesifprice dips to it and closes above

In a clean advance KAMA tracks price closely, so a dip to it is a common place for traders to look for the pullback to end.

Price moves, KAMA barely does

Stand aside while it is flat

IfKAMAhas barely moved for 15 barsthenskip trend trades

A flat KAMA is the indicator saying the market is inefficient. Many traders treat that as a reason to wait.

Speeds up once the move is clean

Follow it once it moves

IfKAMAmoves more than 0.4% in 3 barsaftera flat spell

A sudden change of pace means the efficiency ratio jumped. Traders often take the direction of that first strong move.

Test a rule in the Strategy TesterFree with 1 year of history. Past results do not guarantee future results.

KAMA mistakesCommon mistakes.

Flat line, many crosses

Trading every cross of a flat KAMA

The line goes flat in a range, but price still crosses it back and forth. Here it crossed several times in 20 bars.

Through the line and straight back

Reading a one-bar dip as a turn

In a trend, one close under the line can be undone on the next bar. Here price went under KAMA and straight back.

The lowThe cross comes later

Expecting the cross at the low

After a flat spell KAMA moves slowly, so the cross comes several bars after the low.

KAMA combinationsPair it with these.

KAMA FAQQuestions traders ask.

What are the default KAMA settings?

ER length 10, Fast length 2 and Slow length 30 on the close, the same as TradingView's built-in.

What is the efficiency ratio?

The net price change over the window divided by the total distance price travelled bar to bar. 1 means a straight line, 0 means no net progress.

Why does KAMA go flat?

When price chops without getting anywhere the efficiency ratio is near 0, so KAMA moves only a tiny fraction toward each close.

KAMA or EMA?

An EMA moves at one fixed speed. KAMA speeds up in clean trends and slows down in ranges.

What does KAMA crossing price mean?

The close has moved to the other side of the adaptive average. In a range that happens often; in a trend it is rarer.

What ER length should I use?

10 is Kaufman's and TradingView's default. A longer window judges efficiency over more bars and changes speed less often.

Why does my first KAMA value equal the close?

KAMA starts at the close once 10 changes exist, then adapts from the next bar on.

Does KAMA work on crypto?

Yes. It works on any market with closes.

Is KAMA leading or lagging?

Lagging, like every average of past prices. It lags less in clean trends and more in choppy ones.

Does KAMA repaint?

No. Values on closed bars never change. The live bar moves until it closes.

Who created KAMA?

Perry Kaufman, who described it in Smarter Trading in 1995.

Related indicatorsMore trend tools.

All trend indicators

Try KAMA on a live chart.
Free. No download.

Works in your browser and on iPhone too.

Example market1h
KAMA (10, 2, 30)