Moving Average Adaptive Q
Mar 24, 2020

The Moving Average Adaptive Q indicator is a sophisticated trend-following tool designed by Perry Kaufman that dynamically adjusts its smoothing factor based on market volatility to provide a responsive yet filtered representation of price action.
Usage
The Moving Average Adaptive Q (MAAQ) is primarily used for trend identification and filtering market noise. Because the indicator adapts to market conditions, it remains relatively flat during sideways periods and reacts quickly when a strong trend emerges.
Trend Identification
Users can determine the current market bias by observing the position of the price relative to the MAAQ line:
- Bullish Trend: When the price is trading above the MAAQ line, the indicator and bars typically turn green, suggesting upward momentum.
- Bearish Trend: When the price is trading below the MAAQ line, the indicator and bars typically turn red, suggesting downward momentum.
Volatility Adaptation
The script utilizes an Efficiency Ratio to determine if the market is trending or range-bound. In a highly "efficient" market (strong trend with little noise), the MAAQ follows price closely. In a noisy or "inefficient" market, the indicator slows down to prevent false signals, making it an effective tool for trailing stop-losses or entry filters.
Details
The MAAQ was originally introduced by Perry Kaufman in the June 1995 issue of Technical Analysis of Stocks & Commodities. While it shares structural similarities with the Kaufman Adaptive Moving Average (KAMA), it employs a different method for calculating the smoothing constant.
The process begins by calculating the Efficiency Ratio (ER), which is the absolute price change over a specific period divided by the sum of absolute bar-to-bar changes over that same period. The script then derives a smoothing constant ($temp$) by combining fast and slow-length constants scaled by the ER. The final MAAQ value is calculated using a recursive formula where the change in price is multiplied by the square of this smoothing constant, ensuring that the average remains adaptive to the pace of the market.
Settings
General Settings
- Source: Determines the price data used for the calculation (e.g., Close, Open, High, Low).
- Resolution: Allows the user to calculate the indicator based on a different timeframe than the current chart.
- Allow Repainting?: Determines if the indicator uses non-repainting security calls when a different resolution is selected.
- Allow Bar Color Change?: Toggles whether the chart bars should be colored based on the trend detected by the MAAQ.
Calculation Settings
- Length: The lookback period used to calculate the Efficiency Ratio (Signal-to-Noise ratio).
- Fast Length: The smoothing period for the fastest possible market state.
- Slow Length: The smoothing period for the slowest possible market state.
FAQ
How does MAAQ differ from a standard KAMA?
While both use an Efficiency Ratio to adjust smoothing, MAAQ utilizes a different weighting logic for the fast and slow constants before squaring them, often resulting in a different level of sensitivity to price fluctuations compared to the standard KAMA formula.
Can I use this for crossover strategies?
Yes, the MAAQ can be used for crossover strategies, either by tracking price crosses over the MAAQ line or by using it in conjunction with a faster moving average to identify trend shifts.
How do I access the Moving Average Adaptive Q?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.