KAMA
Indicator
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.
Price is under a falling KAMA 10. Short-term trend points down.
KAMA 10 69,910.8 · Close 69,646.1
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.
Price above a rising KAMA
Closes stay above the line while it climbs. The advance is clean enough for KAMA to keep up.
KAMA goes flat
Price moves up and down but ends where it started, so the efficiency ratio is low and the line barely moves.
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.
Close crosses above
After a dip under the line, price closes back above it.
KAMA formulaHow it is calculated.
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.
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.
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.
| Setting | Default | Range | What it changes |
|---|---|---|---|
| ER length | 10 | 1 to 5,000 | Bars in the efficiency ratio. Longer judges the trend over a wider window. |
| Fast length | 2 | 1 to 5,000 | The EMA speed KAMA uses in a perfectly clean move. |
| Slow length | 30 | 1 to 5,000 | The EMA speed KAMA drops to when price goes nowhere. |
| Source | Close | Any price | Which values feed the calculation. |
| Line | Blue #2962FF, 1 px | Any colour and width | Colour 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.
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
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.
Stand aside while it is flat
A flat KAMA is the indicator saying the market is inefficient. Many traders treat that as a reason to wait.
Follow it once it moves
A sudden change of pace means the efficiency ratio jumped. Traders often take the direction of that first strong move.
KAMA mistakesCommon mistakes.
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.
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.
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 + ADX
ADX measures trend strength; KAMA's own pace tells a similar story on the price chart.
KAMA + EMA 200
A long EMA gives the main trend. KAMA crosses in its direction carry more weight.
KAMA + RSI
RSI shows whether momentum supports a KAMA turn.
KAMA + ATR
ATR helps set a stop distance around a line that hugs price in trends.
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 indicatorsTry KAMA on a live chart.
Free. No download.
Works in your browser and on iPhone too.