Kaufman Adaptive Moving Average (KAMA): Complete Guide for Algorithmic Trading

The Kaufman Adaptive Moving Average is one of the most intelligent trend-following indicators available to algorithmic traders. Unlike traditional moving averages that use a fixed smoothing period, the Kaufman Adaptive Moving Average automatically adjusts its sensitivity based on market conditions, speeding up during strong trends and slowing down during choppy, sideways price action.

What Is the Kaufman Adaptive Moving Average?

The Kaufman Adaptive Moving Average is a trend-following indicator developed by Perry Kaufman in his 1995 book Smarter Trading. It was designed to solve a fundamental problem with standard moving averages: they either react too slowly to genuine trend changes or generate too many false signals during ranging markets. KAMA achieves this by measuring market noise through an Efficiency Ratio and using that ratio to dynamically adjust how quickly the average responds to price changes.

The indicator sits directly on the price chart, similar to an EMA or SMA, but its behaviour changes depending on whether the market is trending or consolidating. During a strong directional move, KAMA tracks price closely. During a sideways chop, it flattens out and barely moves, effectively filtering out the noise that causes whipsaws in other moving averages.

How Is the Kaufman Adaptive Moving Average Calculated?

The calculation involves three key components. First, the Efficiency Ratio (ER) measures trend strength by dividing the absolute price change over a lookback period by the sum of all individual bar-to-bar price changes over that same period. An ER close to 1.0 means price moved in a straight line (highly efficient), while an ER near 0 means price chopped back and forth (inefficient).

Second, this Efficiency Ratio is used to create a Smoothing Constant (SC) that blends between a fast period (typically 2 bars) and a slow period (typically 30 bars). When the market trends strongly, the smoothing constant approaches the fast value. When the market chops, it approaches the slow value.

Third, the KAMA value is updated each bar using a formula similar to an exponential moving average, but with the adaptive smoothing constant instead of a fixed one. The result is an average that hugs price tightly in trends and goes nearly flat in ranges, all without any manual parameter switching.

How to Read Kaufman Adaptive Moving Average Signals?

The most important signal from the Kaufman Adaptive Moving Average is its slope. When KAMA is rising, the market is in an uptrend. When it is falling, the market is trending down. When it moves sideways with minimal slope, the market is ranging and most trend-following signals should be avoided.

Trend direction: Price consistently above a rising KAMA suggests bullish momentum. Price consistently below a falling KAMA suggests bearish momentum.

Crossover signals: If price crosses above KAMA from below, it can signal a potential long entry. When price crosses below KAMA from above, it may signal a short entry or exit. Because KAMA filters out noise, these crossovers tend to produce fewer false signals than those from a standard SMA or EMA.

Flat KAMA filter: When KAMA is flat (slope near zero), the market is choppy. Systematic traders often use this as a filter to avoid entering new positions during consolidation phases, only taking signals when KAMA has a clear directional slope.

What Are the Best Kaufman Adaptive Moving Average Trading Strategies?

Trend-following with KAMA slope: Enter long when KAMA begins sloping upward and price is above the line. Exit when KAMA flattens or slopes downward. This strategy naturally avoids whipsaw-heavy periods because KAMA goes flat during consolidation, keeping you out of low-probability trades.

Dual KAMA crossover: Use two KAMA lines with different lookback periods, such as a 10-period fast KAMA and a 20-period slow KAMA. Enter when the fast KAMA crosses above the slow KAMA and exit on the opposite cross. The adaptive nature of both lines means the crossover signals adapt to changing volatility automatically.

KAMA as a volatility filter: Combine the Kaufman Adaptive Moving Average with other indicators like RSI or MACD. Only take signals from those indicators when KAMA confirms a trend is in progress. This reduces the total number of trades but significantly improves win rates by filtering out signals generated during choppy, directionless markets.

What Are Common Kaufman Adaptive Moving Average Mistakes to Avoid?

Using KAMA as your only indicator: While KAMA is excellent at identifying trend direction, it does not measure overbought or oversold conditions. Pairing it with an oscillator like RSI or Stochastic provides better entry timing within the trend.

Ignoring the flat periods: The greatest strength of KAMA is its ability to go flat during ranging markets. Traders who ignore this and force entries when KAMA shows no slope are essentially overriding the indicator’s built-in noise filter.

Over-optimising the lookback period: The default 10-period lookback with fast/slow constants of 2 and 30 works well across most markets and timeframes. Excessively tuning these parameters to historical data often leads to curve-fitting rather than genuine improvement. Use walk-forward analysis to validate any parameter changes.

Applying KAMA to very low timeframes: On extremely short timeframes (1-minute or less), the Efficiency Ratio can fluctuate rapidly, causing KAMA to switch between fast and slow modes too frequently. KAMA tends to perform best on 15-minute charts and above.

How to Build Kaufman Adaptive Moving Average Strategies in Arrow Algo?

Arrow Algo’s visual block builder includes the KAMA indicator block in its library. To add it, open the blueprint screen, click the + button, and search for “indicator/KAMA”. Connect it to your candle data source and configure the lookback period, fast constant, and slow constant using the block’s settings panel.

To build a trend-following strategy, connect the KAMA output to a comparison block that checks whether the current KAMA value is greater than the previous bar’s value (indicating an upward slope). Feed that condition into your entry logic alongside a price-above-KAMA check. For the dual KAMA crossover, simply add two KAMA blocks with different lookback periods and connect them to a crossover detection block.

Once your strategy is built visually, backtest it directly against live exchange data from Binance, Coinbase, or HyperLiquid. No coding required, just drag, drop, connect, and test.

What Are the Key Takeaways?

  • Kaufman Adaptive Moving Average automatically adjusts its speed based on market efficiency, reducing false signals in choppy conditions
  • The Efficiency Ratio is the core innovation, measuring how directional price movement is relative to total movement
  • KAMA going flat is a signal in itself, indicating the market is ranging and trend-following entries should be paused
  • Combine KAMA with oscillators for better entry timing within confirmed trends
  • The dual KAMA crossover strategy provides adaptive trend signals without manual parameter switching
  • Default parameters (10-period lookback, 2/30 fast/slow) work well across most markets and timeframes
  • Build and backtest KAMA strategies visually in Arrow Algo’s no-code block builder
Educational disclaimer: This content is for educational purposes only and does not constitute financial advice. Trading involves significant risk and you should only trade with capital you can afford to lose. Past performance is not indicative of future results.

Disclaimer: The information provided in this article is for educational purposes only and does not constitute financial advice. Trading involves significant risk and you should only trade with capital you can afford to lose. Past performance is not indicative of future results. Always conduct your own research before making any trading decisions.

Ready to build your own automated trading strategies without writing a single line of code? Start for free at Arrow Algo and join thousands of traders who’ve made the switch to systematic trading.

About the Author

Author Bio