Reversal with Bollinger Bands + RSI + ADX + ATR (Upgraded)
Apr 21, 2021

The Reversal with Bollinger Bands + RSI + ADX + ATR (Upgraded) indicator is a comprehensive strategy tool designed to identify high-probability reversal and breakout entries by filtering price action through volatility, momentum, and trend strength filters. It aims to capture mean-reversion moves in ranging markets and momentum shifts in trending environments while maintaining strict alignment with long-term trends using dual EMAs.
Usage
This script can be used in three distinct modes: Reversal, Breakout, or Both.
- Reversal Mode: Focuses on mean reversion. The script looks for price to touch or exceed the Bollinger Bands, followed by a reversal candlestick pattern. Entries are filtered by the ADX to ensure the market is not over-trending and by the RSI/Stochastic to ensure momentum is within specific ranging bounds.
- Breakout Mode: Focuses on trend following. Signals are triggered when price closes outside the Bollinger Bands during high ADX readings, indicating strong trend strength.
- Trend Filtering: Regardless of the mode, the script uses a 100 and 200 EMA filter. Long trades are only permitted when price is above both EMAs, and short trades are only permitted when price is below both EMAs.
- Exits: Positions can be closed based on opposite Bollinger Band touches combined with reversal candles, or through a volatility-based trailing stop derived from the ATR.
Details
The script integrates several classic technical analysis concepts into a unified logic:
- Bollinger Bands: Serve as the primary volatility envelope for identifying "overextended" price levels or breakout points.
- ADX (Average Directional Index): Used as a regime filter. Low ADX values suggest a ranging market (ideal for reversals), while high ADX values suggest a trending market (ideal for breakouts).
- RSI & Stochastic: Provide secondary confirmation of momentum to prevent entering reversals too early during strong trending moves.
- ATR (Average True Range): Used to calculate dynamic stop losses and trailing stops that adjust based on market volatility, helping to protect capital during adverse price swings.
Settings
Strategy
- Active Strategies: Select between "Reversal", "Breakout", or "Both" to determine which logic triggers trades.
- ATR Multiplier: Sets the distance of the stop loss relative to the ATR value.
Indicators
- EMA1 / EMA2 Input: Adjusts the periods for the two Exponential Moving Averages used for trend filtering.
Ranging / Trending Indicators
- Stochastic/RSI Max & Min: Defines the specific momentum thresholds required for an entry signal to be valid in ranging or trending states.
- ADX Max/Min Value: Sets the boundary for what the script considers "ranging" (Max) versus "trending" (Min).
Component Settings
- ADX Smoothing/DI Length: Controls the calculation period for the ADX indicator.
- BB Length/Source/StdDev: Configures the Bollinger Bands parameters.
- ATR Length/Lookback: Configures the ATR calculation and the lookback period used for structural stop losses.
FAQ
How do I use the Reversal with Bollinger Bands + RSI + ADX + ATR (Upgraded)? To use this script, add it to your chart and select your preferred strategy mode (Reversal or Breakout) in the settings. Ensure the EMA filters align with your preferred timeframe's trend.
Can I use this for automated trading? Yes, the script includes alert conditions for Long/Short entries and exits which can be connected to external execution bridges.
How do I access Reversal with Bollinger Bands + RSI + ADX + ATR (Upgraded)? 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.