RSI bands
Aug 4, 2020

The RSI bands indicator projectively translates RSI levels into price points on the chart to help traders determine a likely trading range and identify overextended market conditions. By visualizing these momentum levels directly on the price action, it provides a clear perspective on trend strength and potential reversal zones.
Usage
The Usage section focuses on interpreting the relationship between price and the projected bands. Traders can use the mid-line (RSI 50) to determine the immediate trend bias and the outer bands (RSI 80 and RSI 20) to spot extreme volatility or exhaustion points.
- Trend Identification: When the price remains consistently above the RSI 50 midline, the market is in a bullish phase. Conversely, price action below the midline suggests a bearish regime.
- Reversal Zones: The RSI 80 and RSI 20 bands act as dynamic thresholds. Price movements reaching or exceeding these levels often indicate "overbought" or "oversold" conditions, where a mean-reversion move toward the midline might occur.
- Volatility Contraction/Expansion: The distance between the bands provides a visual representation of current market volatility based on the underlying ATR calculations.
Details
The script functions by calculating a baseline (RSI 50) using an Exponential Moving Average (EMA) of the OHLC4 price over a 27-period lookback. To simulate the standard RSI range in terms of price, it utilizes the Average True Range (ATR).
The specific levels are derived as follows:
- RSI 50: EMA(ohlc4, 27)
- RSI 60/40: RSI 50 ± (1 * ATR)
- RSI 80/20: RSI 50 ± (3 * ATR)
This methodology allows the indicator to adapt to changing market volatility while maintaining a constant relationship with momentum-based thresholds.
Settings
- RSI 80/60/50/40/20 Toggle: Enable or disable the visibility of specific RSI level bands.
- Color Selection: Customize the color and transparency for each individual band.
- Color Candles: When enabled, this feature dynamically changes the color of the price bars based on their position relative to the bands (e.g., strong green above RSI 80, strong red below RSI 20).
- Color Bands: Toggles the background fill between the upper and lower band sets for better visual grouping.
FAQ
How do I use the RSI bands for trade entries?
Traders often look for price to cross the RSI 50 midline for trend continuation or wait for price to touch the RSI 80/20 bands for potential counter-trend opportunities.
Can I change the lookback period?
The current implementation uses a fixed 27-period lookback for the EMA and ATR calculations to maintain the specific "JD" calibration.
How can I access this indicator?
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.