Adaptive Regime Filter + Divergence (AER-VN)

Apr 4, 2026

Static chart image
Signals
Oscillators
Divergences
Volatility

The Adaptive Regime Filter + Divergence (AER-VN) indicator provides professional-grade market regime classification combined with advanced divergence detection to identify trend quality and potential reversals.

Usage

The Usage section describes how the script can be used to interpret market conditions and identify trading opportunities. The indicator classifies market behavior into four distinct regimes, visually represented by the color of the oscillator line and optionally the price bars:

  • Uptrend (Teal): High-quality upward movement where efficiency exceeds the dynamic threshold.
  • Downtrend (Maroon): Sustained selling pressure where efficiency exceeds the dynamic threshold.
  • Choppiness (Orange): Low efficiency during high volatility, indicating noisy and directionless price action.
  • Consolidation (Gray): Low efficiency during low volatility, representing quiet, range-bound markets.

Traders can also utilize the integrated divergence system to spot momentum exhaustion or trend continuation:

  • Regular Divergences (Red/Lime Circles): Indicate potential trend reversals when price and efficiency move in opposite directions at swing points.
  • Hidden Divergences (Orange/Aqua Circles): Suggest trend continuation after a pullback or retracement.

Details

The AER-VN methodology is an evolution of Kaufman's Efficiency Ratio (ER). While traditional ER indicators use static thresholds, this tool introduces a Volatility Normalization Engine. This engine compares the current Average True Range (ATR) against a historical baseline to create an ATR Ratio.

This ratio dynamically adjusts the efficiency threshold required to classify a market as "trending." In high-volatility environments, the threshold rises to filter out "volatile chop," while in low-volatility environments, it contracts to capture subtle emerging trends. The divergence detection logic uses confirmed swing points to ensure that signal markers do not repaint once the subsequent bar confirms the pivot.

Settings

Efficiency Ratio Settings

  • ER Lookback (N): The period used to calculate the ratio of price displacement to total path distance.
  • Base ER Threshold: The foundational efficiency level required for a trend classification under normal volatility.
  • Max Threshold Cap: A safety ceiling that prevents the dynamic threshold from reaching mathematically impossible levels during extreme volatility.

Volatility Normalization

  • ATR Length: The lookback period for the current Average True Range calculation.
  • ATR Mean Lookback: The historical window used to establish the volatility baseline for scaling.

Divergence Settings

  • Swing Definition Length: The window used to identify pivot highs and lows. Larger values detect major swings, while smaller values detect micro-structure.
  • Visual Toggles: Options to enable or disable markers and connecting lines for Regular and Hidden divergences.

FAQ

How do I interpret the dynamic threshold?

The white crossed line on the indicator represents the current volatility-adjusted requirement. When the colored Efficiency Ratio line is above this threshold, the market is considered to be in a trending regime.

What is the difference between Regular and Hidden divergences?

Regular divergences typically signal a potential trend reversal, whereas Hidden divergences act as a signal that the prevailing trend is likely to continue after a temporary counter-trend move.

How can I access Adaptive Regime Filter + Divergence (AER-VN)?

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
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

ninjatraderNinjaTrader
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

metatrader4MetaTrader 4/5
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

thinkorswimThinkorswim
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

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.