Kaufman's Adaptive Moving Average (KAMA) - Multi timeframe
Feb 6, 2022

The Kaufman's Adaptive Moving Average (KAMA) - Multi timeframe indicator provides a trend-following line that dynamically adjusts its sensitivity based on market volatility and noise to reduce lag and filter out choppy price action.
Usage
The Usage section describes how the script can be used to identify trend direction while accounting for market conditions. Traders typically use KAMA to distinguish between significant price trends and insignificant market noise.
- Trend Identification: When the price is consistently above the KAMA line, it indicates a bullish trend; when below, it indicates a bearish trend.
- Filtering Market Noise: During periods of high volatility or "noise," the KAMA flattens out, helping traders avoid false signals in ranging markets. Conversely, when the market moves strongly in one direction, the KAMA follows the price more closely.
- Support and Resistance: The KAMA line can act as a dynamic level of support or resistance.
- Alerts: The script includes built-in alerts for price crossovers and crossunders, notifying the user when price action deviates from or returns to the adaptive average.
Details
The KAMA was developed by Perry Kaufman to solve the inherent lag found in traditional moving averages like the SMA or EMA. The core mechanism relies on Kaufman's Efficiency Ratio (ER), which measures the ratio of the net price change over a period relative to the sum of absolute price changes (the total path traveled).
If the ER is high (close to 1), it indicates a strong, efficient trend with little noise, causing the KAMA to become more sensitive. If the ER is low (close to 0), it indicates significant market noise or congestion, causing the KAMA to slow down and flatten. This adaptation allows the indicator to stay close to the price during trends but remain at a distance during volatile, non-directional movements.
This version also includes an experimental smoothing option using the least squares method (Linear Regression) to further refine the output and background coloring to visualize efficiency ratio thresholds.
Settings
- Lookback period: Sets the number of bars used to calculate Kaufman's Efficiency Ratio and the adaptive smoothing factor.
- Fill background: Low / High Noise: Enables or disables background coloring based on market noise levels.
- Low level of market noise: Selects the color for the background when the Efficiency Ratio is below the low threshold.
- High level of market noise: Selects the color for the background when the Efficiency Ratio is above the high threshold.
- Thresholds for Low / High Noise: Adjusts the Efficiency Ratio values (0 to 1) that trigger the background color changes.
- Smooth KAMA: When enabled, applies a Linear Regression (least squares) smoothing to the KAMA output over the specified lookback period.
FAQ
How does KAMA differ from a standard EMA? While an EMA uses a fixed smoothing constant, KAMA uses a variable smoothing factor that adjusts based on the Efficiency Ratio, making it faster during trends and slower during noisy periods.
What does it mean when the KAMA line is flat? A flat KAMA line indicates a period of high market noise or a sideways range where the price change is small relative to the total volatility, suggesting a lack of a clear trend.
How can I access the Kaufman's Adaptive Moving Average (KAMA) - Multi timeframe? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Unlock Unlimited Access to the LuxAlgo Library
Upgrade your plan to get all indicators, strategies, charts, and full access to Quant, our AI agent.
Trading & investing are risky and many will lose money in connection with trading and investing activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.
Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.
Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.
As a provider of technical analysis tools and strategies, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content, tool, or platform feature we provide.
Charts used on this site are by TradingView in which the majority of our technical indicators are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.
Market data is provided by CBOE, CME Group, BarChart, Massive, CoinAPI. Select U.S. equities data is provided through Massive. CBOE BZX real-time U.S. equities data is licensed from CBOE and provided through BarChart. Real-time futures data is licensed from CME Group and provided through BarChart. Select cryptocurrency data, including major coins, is provided through CoinAPI. All data is provided “as is” and should be verified independently for trading purposes.
This does not represent our full Disclaimer. Please read our full disclaimer.
© 2026 LuxAlgo Global, LLC.

