KAMA: Kaufman Adaptive Moving Average x2/Log

Aug 9, 2018

Static chart image
Signals
Moving Averages

The KAMA: Kaufman Adaptive Moving Average x2/Log indicator provides a dual-line adaptive smoothing system designed to minimize noise and account for market volatility by adjusting its sensitivity based on price efficiency.

Usage

The Usage section focuses on identifying trend direction and momentum shifts using two independent Kaufman Adaptive Moving Averages. Users can identify bullish trends when the shorter-period KAMA crosses above the longer-period KAMA, and bearish trends when it crosses below.

A key feature of this tool is the "Log" setting, which applies a geometric mean calculation. This is particularly useful for volatile assets like cryptocurrencies or new stocks, as it stabilizes the moving average's reaction to exponential price movements. The indicator also supports multi-timeframe analysis via the "Resolution" setting, allowing users to plot higher timeframe KAMA values on a lower timeframe chart for trend confirmation.

Details

The Kaufman Adaptive Moving Average (KAMA) functions by calculating an Efficiency Ratio (ER), which represents the ratio of price change over a period to the sum of absolute price changes (volatility).

Unlike standard implementations, this script:

  • Initializes at Bar Zero: The calculation begins at the very first available bar, ensuring that the moving average weighting remains accurate for new tickers or assets with limited history.
  • Alpha Calculation: The smoothing constants are derived from "Fast" and "Slow" integers using the formula $2 / (n + 1)$, simplifying the input process for the user.
  • Dual-Line Logic: It provides two KAMA lines that can either share smoothing parameters or use independent fast/slow alpha settings for more complex crossover strategies.

Settings

  • Length 1: The lookback period used to calculate the Efficiency Ratio for the first KAMA line.
  • Length 2: The lookback period used to calculate the Efficiency Ratio for the second KAMA line.
  • Fast Alpha: The smoothing constant for the fastest possible market state (default is 2).
  • Slow Alpha: The smoothing constant for the slowest, trendless market state (default is 30).
  • Use The Same Fast/Slow Alpha For Both: When enabled, both KAMA lines use the primary Fast/Slow Alpha inputs.
  • Fast/Slow Alpha 2: Independent smoothing constants for the second KAMA line (active only if the "Same Alpha" toggle is disabled).
  • Log: When enabled, the indicator calculates the KAMA using logarithmic price data and then returns the exponential result to the chart.
  • Source: The price data point used for calculation (e.g., Close, HL2).
  • Resolution: The timeframe from which the KAMA data is requested.
  • Background Color For Crosses: Toggles visual background highlights when the two KAMA lines cross.

FAQ

How do I interpret the Efficiency Ratio in KAMA? The Efficiency Ratio moves between 0 and 1. When the ratio is high (near 1), the market is trending efficiently, and KAMA becomes more sensitive (moving faster). When the ratio is low, the market is noisy, and KAMA becomes less sensitive (moving slower).

What is the benefit of the Log setting? The Log setting applies a geometric mean approach, which is ideal for assets that experience significant percentage gains or losses, as it prevents the moving average from being overly distorted by large nominal price gaps.

How can I access the KAMA: Kaufman Adaptive Moving Average x2/Log? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Free access on the following platforms
tradingviewSymbolTradingView
ninjatraderNinjaTrader
metatrader4MetaTrader 4/5
thinkorswimThinkorswim

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.