Main Page > Articles > Moving Averages > Adaptive Moving Average for Volatility-Adjusted Trend Following

Adaptive Moving Average for Volatility-Adjusted Trend Following

From TradingHabits, the trading encyclopedia · 5 min read · March 1, 2026
The Black Book of Day Trading Strategies
Free Book

The Black Book of Day Trading Strategies

1,000 complete strategies · 31 chapters · Full trade plans

Strategy Overview

The Adaptive Moving Average (KAMA) strategy identifies trends. It filters market noise. KAMA adjusts its smoothing period. High volatility shortens the period. Low volatility lengthens it. This makes KAMA responsive in trends. It smooths price action in choppy markets. The strategy focuses on KAMA's direction and crossovers with price. It provides robust trend signals.

KAMA Calculation and Parameters

KAMA requires three inputs: period for Efficiency Ratio (ER), period for fast EMA, and period for slow EMA. Typical settings are 10 for ER, 2 for fast EMA, and 30 for slow EMA. The Efficiency Ratio measures market directionality. ER ranges from 0 to 1. An ER near 1 indicates strong trend. An ER near 0 indicates choppy market. This ratio modulates the smoothing constant. The smoothing constant then applies to the KAMA calculation. The formula is KAMA(i) = KAMA(i-1) + SC * (Price(i) - KAMA(i-1)). SC is the smoothing constant. SC = [ER * (SC_fast - SC_slow) + SC_slow]^2. SC_fast = 2 / (fast_EMA_period + 1). SC_slow = 2 / (slow_EMA_period + 1). These parameters are crucial. Adjust them for different assets. Test thoroughly on historical data.

Entry Rules

Long Entry

Initiate a long position when the current price closes above the KAMA. Confirm the KAMA itself slopes upwards. This indicates an established uptrend. For added conviction, wait for two consecutive closes above KAMA. The KAMA must also register an ER above 0.5. This confirms directional strength. Volume should support the price move. Look for above-average volume on the breakout. This validates the price action. Entry occurs at the open of the next bar. Do not chase extended moves. Price must be within 2% of KAMA at entry. This prevents entering overbought conditions.

Short Entry

Initiate a short position when the current price closes below the KAMA. Confirm the KAMA itself slopes downwards. This signals an established downtrend. For added conviction, wait for two consecutive closes below KAMA. The KAMA must also register an ER above 0.5. This confirms directional strength. Volume should support the price move. Look for above-average volume on the breakdown. This validates the price action. Entry occurs at the open of the next bar. Do not chase extended moves. Price must be within 2% of KAMA at entry. This prevents entering oversold conditions.

Exit Rules

Stop Loss

Implement a fixed percentage stop loss. Set it at 2% below the entry price for long positions. Set it at 2% above the entry price for short positions. Alternatively, use an Average True Range (ATR) based stop. Place the stop 1.5 ATR below the entry for longs. Place it 1.5 ATR above the entry for shorts. The ATR period should be 14. This adjusts for market volatility. Always protect capital. Never trade without a stop loss.

Trailing Stop

Adjust the stop loss as the trade moves favorably. For long positions, trail the stop 1 ATR below the KAMA. For short positions, trail the stop 1 ATR above the KAMA. This captures more profit. It also protects gains. Re-evaluate the trailing stop daily. This maintains responsiveness. Alternatively, use a fixed percentage trailing stop. Trail at 1.5% from the highest high for longs. Trail at 1.5% from the lowest low for shorts.

Take Profit

Exit a portion of the position at a predetermined profit target. For example, exit 50% of the position when price reaches 2R (twice the initial risk). Let the remainder run with the trailing stop. This locks in profit. It reduces risk on the remaining position. Alternatively, exit when price closes on the opposite side of KAMA. For a long, close when price closes below KAMA. For a short, close when price closes above KAMA. This signals a trend reversal or weakening.

Risk Management

Limit capital at risk per trade. Allocate no more than 1% of total trading capital per position. This protects against significant drawdowns. Calculate position size based on the stop loss distance. Position size = (Capital * Risk %) / (Entry Price - Stop Loss Price). This ensures consistent risk. Diversify trades across different assets. Avoid over-concentration. Maintain a trading journal. Record all trades. Analyze performance regularly. Adjust parameters based on performance. Do not over-leverage. Use leverage responsibly. High leverage amplifies losses. It also amplifies gains. Understand the risks.*

Practical Application

Apply this strategy to liquid assets. Stocks, ETFs, and major forex pairs work well. Timeframes can vary. Daily charts offer fewer signals but higher conviction. Intraday charts (e.g., 60-minute) generate more signals. They require more active management. Backtest the strategy rigorously. Use at least five years of data. Optimize KAMA parameters for each asset. Avoid curve fitting. Forward test the optimized parameters in a live environment. Use a small position size. This builds confidence. Market conditions change. Adapt the parameters. Do not blindly follow signals. Combine KAMA with other indicators. Volume confirmation is essential. Relative Strength Index (RSI) can confirm momentum. Avoid trading during major news events. Volatility often increases unpredictably. This can trigger false signals. Focus on consistent execution. Discipline is key to success. Review losing trades. Learn from mistakes. Refine the approach continuously.