Adaptive Autonomous Recursive Moving Average
Jul 10, 2019

The Adaptive Autonomous Recursive Moving Average indicator provides a noise-filtering solution that minimizes lag during trending phases while remaining stationary during lateral market movement. By incorporating recursive logic and efficiency-based smoothing, the tool aims to offer a cleaner signal compared to traditional moving averages.
Usage
The Usage section describes how the script can be used to identify market trends and filter out range-bound noise. The primary output is a color-coded line that follows the price action based on volatility and trend strength.
- Trend Identification: When the line turns green and moves upward, it indicates a bullish trend. Conversely, when the line turns red and moves downward, it suggests a bearish trend.
- Filtering Ranges: During flat market periods, the indicator is designed to remain horizontal, preventing premature entries or "whipsaws."
- Sensitivity Adjustment: Users can adjust the
gammaparameter to increase the threshold for flat market filtering. For example, settinggammato 3 on a range-bound asset like Intel (INTC) will flatten the indicator more aggressively than a setting of 0.
Details
The A2RMA is an evolution of the recursive moving average (ARMA) concept, specifically designed to address overshoots and undershoots found in simpler recursive filters.
The script utilizes an Efficiency Ratio (ER) to determine the smoothing factor dynamically. This ratio measures the directness of price movement over a specified period. The core logic involves a conditional source calculation where the price must deviate from the previous average by a specific threshold (determined by gamma) to trigger a change in the filter's value. This output is then processed through a double Adaptive Moving Average (AMA) calculation using exponential averaging.
The calculation of d (the filter threshold) is based on the cumulative mean absolute error between the source price and the previous moving average, scaled by the gamma input. This allows the filter to adapt its "flatness" based on historical volatility.
Settings
- Length: Determines the lookback period for the Efficiency Ratio and cumulative calculations. Higher values increase smoothing but may introduce more lag.
- Gamma: Controls the filtering intensity during flat market periods. A value of 0 results in a double-smoothed adaptive moving average, while higher values force the indicator to ignore minor price fluctuations.
- Source: The price data point used for calculations (e.g., Close, Open, HL2).
FAQ
How do I interpret the color changes on the line? A green line indicates the average is rising, suggesting bullish momentum. A red line indicates the average is falling, suggesting bearish momentum.
Why does the line stay flat even when price moves slightly?
This is due to the gamma setting. If the price movement does not exceed the calculated volatility threshold, the indicator remains stationary to prevent signal noise during consolidations.
How can I access the Adaptive Autonomous Recursive Moving Average? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
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.

