KAMA (Kaufman Adaptive Moving Average): a line that adjusts to the market
Most moving averages follow price at a fixed pace whether the market is racing or going nowhere. KAMA breaks that habit. It measures how cleanly price has been travelling and changes its own speed accordingly, hugging a smooth trend and nearly freezing in a mess of back-and-forth moves. This page covers how futures traders read it and how a strategy generator can test it on your own contracts.
What it measures
Dr. Perry Kaufman started from an observation that every practitioner makes sooner or later: a single fixed-pace average is a poor fit for a market that alternates between purposeful trends and aimless chop. If the average is slow enough to ignore the chop, it lags badly during the trend; if it is fast enough to catch the trend, it gets shredded in the chop. KAMA tries to have both by letting the market decide its pace.
The idea revolves around an efficiency ratio, which compares how far price has actually moved over a recent stretch with how much ground it covered getting there. If price marched steadily in one direction, the net distance is close to the total distance travelled, and the ratio is high. If price lurched up and down and ended up roughly where it started, the net distance is small compared with the total path, and the ratio is low. A high ratio tells KAMA to behave like a fast average and follow price tightly; a low ratio tells it to behave like a very slow average and mostly ignore the wiggles.
The practical result is a line with two personalities. In a smooth directional move it tracks closely and bends at turns. In a sideways tangle it flattens into a nearly horizontal shelf, which is information in itself: a flat KAMA says the market is not going anywhere efficiently. This is the main thing that separates it from a Hull Moving Average, which stays quick all the time and therefore keeps reacting even when there is nothing to react to.
How it behaves in real markets
During orderly trends KAMA stays close to price and its slope is steady. Pullbacks that stay shallow barely disturb it, and because it follows almost as quickly as a short average would, entries and exits taken from it feel responsive in just the conditions where responsiveness pays.
In ranges the behaviour changes character. The line lays almost flat and price criss-crosses it repeatedly, but because the line itself hardly moves, a simple rule such as going with the side of price relative to the line generates fewer reversals than the same rule on an ordinary average. Traders often use the flatness as a hint that this is not the moment for trend rules at all.
Transitions are where adaptive averages are most delicate. When a long calm stretch suddenly breaks into a trend, the efficiency reading needs a few bars to catch up, so KAMA can be slow to wake. Equally, a sharp spike inside a quiet market can briefly push the line more than expected. Markets that move in bursts after long pauses, such as many energy and metal contracts around news, show this effect most clearly.
Common ways to use it (concepts)
Price above or below the adaptive line
Take long trades only while price holds above the line and short trades only while it stays below. The line's reluctance to move in noisy phases keeps the filter from flipping at every wobble.
Standing aside when the line is flat
Treat a nearly horizontal line as a signal that efficiency is low and skip trend entries until it tilts again. This turns the indicator into a regime check as much as a direction tool.
Stay in until the line gives way
Hold a position while price keeps respecting the line and leave when price closes back through it. Because the line speeds up in strong runs, it trails closely when the trend is clean and gives more room when the market turns erratic.
Pairing it with other indicator families
KAMA answers the question of what direction the efficient part of the market is taking, so it pairs well with tools that ask different questions. ADX measures the strength of a trend directly, and the Choppiness Index describes how tangled recent movement has been. Both overlap in spirit with the efficiency idea, so using one as a cross-check, rather than a necessity, can show whether the extra layer improves results or merely repeats KAMA.
For risk, ATR converts the typical bar size into a distance. A stop placed a sensible volatility distance beyond the KAMA line gives the trade space to survive ordinary swings without ignoring a real break. Because the line moves so little in noise, a volatility-based buffer also keeps you from being stopped out by a brief poke through a flat line.
For timing, a momentum or oscillator rule can decide when to enter on the side the adaptive line has already chosen. You might also contrast it with a fixed-pace moving average: when the two agree the signal is stronger, and when they disagree it often marks exactly the choppy phases where adaptive behaviour matters. Stacking several adaptive or low-lag lines together mostly repeats one view, so give each tool a different job.
In AlphaPrime
In AlphaPrime, KAMA belongs to the trend family that the strategy generator draws from, and its adaptive nature makes it a natural regime-aware filter. Where a fixed average needs a separate rule to stay quiet in ranges, KAMA already quiets itself, so the generator can test it as the single directional condition in a compact rule set.
The generator crosses it with volatility, momentum, volume and session rules and runs every candidate through GPU backtests. Because the line flattens in noise, results can look quite different between trending and ranging stretches of the same contract; out-of-sample validation is how you check that a combination still holds on stretches it has not seen, rather than leaning on a single favourable period.
Surviving combinations can be exported as strategy code for the trading platform you already use, ready for further testing or preparation for live use there.
FAQ
What does the efficiency ratio in KAMA actually measure?
It compares the net distance price has travelled over a recent stretch with the total distance covered along the way. A steady move scores high and a back-and-forth tangle scores low, and that reading tells the line how quickly to follow price.
Why does KAMA go flat in sideways markets?
Low efficiency makes it behave like a very slow average, so it largely ignores small swings. The flat line is not a malfunction; it is a message that the market is not trending efficiently, and many traders use it to step aside from trend rules.
How is KAMA different from the Hull Moving Average?
Both try to cut lag, but the Hull Moving Average is quick in every condition, while KAMA changes its pace to suit the conditions. The first reacts to everything; the second reacts mainly when the move is worth reacting to.

