Adaptive Mean Reversion Indicator
Jun 2, 2023

The Adaptive Mean Reversion Indicator tool provides a dynamic framework for identifying overextended price movements by adapting its calculation logic to current market volatility. It automatically switches between trending and ranging configurations to help traders find optimal mean reversion entries across varying market regimes.
Usage
The indicator can be used to identify potential market exhaustion points where price is likely to revert to its mean.
- Long Entry: A signal is generated when the price closes below the adaptive lower band while the RSI confirms an oversold condition (below 30). This is visually represented by fuchsia (or green) bar coloring and background highlights.
- Short Entry: A signal is generated when the price closes above the adaptive upper band while the RSI confirms an overbought condition (above 70). This is visually represented by lime (or red) bar coloring and background highlights.
- Trend Filtering: In trending markets, the tool uses a longer lookback and higher thresholds to avoid premature entries against strong momentum. In ranging markets, it uses tighter parameters to capture smaller oscillations.
Details
The indicator operates through a multi-step process:
- Regime Detection: It compares the 14-period Average True Range (ATR) against a user-defined Volatility Threshold to determine if the market is trending or ranging.
- Adaptive Parameter Selection: Based on the regime, the script selects different lookback periods and standard deviation multipliers (thresholds).
- Band Calculation: It calculates an adaptive mean (SMA) and sets upper/lower bands based on standard deviation. In ranging conditions, the bands are scaled by a factor of 0.75 to increase sensitivity.
- Confluence Filter: An integrated Relative Strength Index (RSI) acts as a momentum filter, ensuring that mean reversion signals only trigger when the market shows significant exhaustion.
Settings
Primary Settings
- Volatility Threshold: The ATR value used to distinguish between ranging and trending market regimes.
- Lookback Period (Trending): The window size used for SMA and Standard Deviation when the market is trending.
- Lookback Period (Ranging): The window size used when the market is ranging.
- Threshold Level (Trending): The standard deviation multiplier for bands during trending regimes.
- Threshold Level (Ranging): The standard deviation multiplier for bands during ranging regimes.
- RSI Length: The period used for the internal RSI confluence filter.
FAQ
How do I access the Adaptive Mean Reversion Indicator?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Can I use this on any timeframe?
Yes, the indicator is designed to adapt to volatility on any timeframe, though users should adjust the Volatility Threshold and lookback periods to suit the specific noise levels of their chosen chart.
What do the background colors signify?
The background colors indicate that both the price has breached an adaptive band and the RSI confluence condition has been met, signaling a high-probability mean reversion setup.
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.