Adaptive Autonomous Recursive Trailing Stop

Jul 11, 2019

Static chart image
Signals
Moving Averages
Trailing-Stop
Volatility

The Adaptive Autonomous Recursive Trailing Stop indicator provides a dynamic volatility-based exit and trend-following mechanism that utilizes error measurement and recursive smoothing to adapt to price action.

Usage

The Usage section describes how the script can be used to identify trend direction and potential exit points. Users can utilize the trailing stop line as a dynamic level to protect profits or identify trend reversals.

  • Trend Identification: When price is above the trailing stop line, the trend is considered bullish (green). When price is below the line, the trend is considered bearish (red).
  • Exit Strategy: Traders often use the trailing stop level as a hard exit point. If price closes across the line, it signals a potential trend exhaustion or reversal.
  • Asset Sensitivity: Different markets respond better to different configurations. For example, trending equities may perform better with higher Length values, while volatile assets might require a higher Gamma to avoid whipsaws.

Details

The Adaptive Autonomous Recursive Trailing Stop (A2RTS) is constructed using the Adaptive Autonomous Recursive Moving Average (A2RMA) as its core engine. Unlike traditional trailing stops that use fixed percentages or ATR, this tool utilizes an internal error measurement to define the distance of the bands.

The calculation involves a non-linear filter that measures the efficiency of price movement. This efficiency ratio determines the responsiveness of the recursive smoothing. The "Gamma" parameter acts as a multiplier for the calculated deviation, creating an envelope around the price. The trailing stop logic then applies a highest/lowest rule, ensuring the stop only moves in the direction of the trend until a crossover occurs.

Settings

  • Length: Determines the lookback period used for the efficiency ratio and deviation calculations. Higher values result in a slower, more stable trailing stop.
  • Gamma: Acts as a multiplier for the distance between the price and the stop line. Increasing Gamma places the stop further from price, allowing for more volatility, while decreasing it makes the stop tighter.
  • Source: Defines the price data used for the calculations (default is Close).

FAQ

How do I interpret the color changes on the line?
The color change indicates a trend reversal. A green line represents a bullish trend where the stop is trailing below the price, while a red line represents a bearish trend where the stop is trailing above the price.

Is this indicator suitable for ranging markets?
Like most trend-following tools, the A2RTS is most effective in trending environments. In sideways or ranging markets, price may cross the trailing stop frequently, leading to potential whipsaw signals.

How do I get access to this tool?
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.