Volatility-Based Mean Reversion Bands
Jun 5, 2023

The Volatility-Based Mean Reversion Bands indicator identifies potential mean reversion trading opportunities by dynamically adjusting bands based on market volatility.
Usage
The tool is primarily used to identify overbought and oversold market conditions. When the price interacts with the outer bands, it suggests the market has stretched too far from its average and may revert to the mean.
- Bearish Reversal: When the price exceeds the upper band, the bars and background change color (Green), signaling a potential move back down toward the mean line.
- Bullish Reversal: When the price falls below the lower band, the bars and background change color (Red), signaling a potential move back up toward the mean line.
- Confluence: If the RSI filter is enabled, signals (triangle shapes) only appear when the RSI is in overbought (above 70) or oversold (below 30) territory, providing additional confirmation for the reversal.
Details
The script utilizes the Average True Range (ATR) to determine the distance of the bands from the mean line. The mean line itself is a Simple Moving Average (SMA) of the closing prices. By using ATR rather than a fixed percentage or standard deviation, the bands expand during periods of high volatility and contract during periods of low volatility, adapting to current market behavior.
Settings
General Settings
- Lookback Period: Sets the number of bars used to calculate both the SMA (mean line) and the ATR. A higher value results in smoother bands that are less sensitive to noise.
- Multiplier: Controls the width of the bands. A higher multiplier requires a more significant price move to trigger a signal.
Confluence Settings
- Use RSI as Confluence: Enables or disables the Relative Strength Index filter for entry signals.
- RSI Length: Adjusts the period used for the RSI calculation.
FAQ
How do I use the entry arrows?
Entry arrows appear when the price is outside the bands and the optional RSI confluence condition is met. A triangle-down above the bar indicates a potential short entry, while a triangle-up below the bar indicates a potential long entry.
Can I use this on any timeframe?
Yes, the indicator is designed to adapt to any timeframe, though the "Lookback Period" and "Multiplier" may need adjustment to suit the specific volatility of the chosen interval.
How can I access Volatility-Based Mean Reversion Bands?
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.