RSI/RSX Divergence
Feb 26, 2022

The RSI/RSX Divergence indicator is a comprehensive momentum analysis tool that combines traditional Relative Strength Index (RSI) with a noise-free RSX variant to identify market reversals through divergence detection. It aims to provide more reliable trading signals by filtering out market noise and highlighting discrepancies between price action and momentum.
Usage
The indicator can be used to spot potential trend reversals by identifying regular and hidden divergences. Traders can toggle between the standard RSI and the RSX, which offers a smoother, "noise-free" calculation without the typical lag associated with moving averages.
- RSI Analysis: Standard momentum measurement to identify overbought (>70) or oversold (<30) conditions.
- RSX Analysis: Use the RSX for a clearer view of momentum trends, as it attempts to eliminate jitter while maintaining responsiveness to price changes.
- Divergence Detection: Automatically plots positive (bullish) and negative (bearish) divergences. A positive divergence occurs when price makes lower lows while the indicator makes higher lows, suggesting a potential upward reversal.
- Histogram: A customizable histogram can be enabled to visualize the strength of RSI or RSX relative to a chosen moving average.
Details
The script integrates two primary oscillators:
- Relative Strength Index (RSI): A classic oscillator measuring the speed and change of price movements.
- RSX: Based on the SharkCIA implementation, this is a "noise-free" version of the RSI. Unlike simple smoothing which introduces lag, the RSX uses a sophisticated multi-stage filtering process to maintain alignment with price while removing volatility.
The indicator also supports volume-based calculations for both RSI and RSX, allowing users to factor in market liquidity. Extensive smoothing options are available, including DEMA, TEMA, KAMA, and Jurik-style variations, to tailor the output to specific market conditions.
Settings
- Calculation Source: Determines the price input used for calculations (e.g., Close, HLC3).
- Histogram Group: Controls the visibility, variant (RSI or RSX), and moving average type used for the histogram.
- RSI Group: Toggles the RSI line, volume-based calculation, divergence markers, and overbought/oversold breakout coloring. Includes independent period and smoothing settings.
- RSX Group: Toggles the RSX line, volume-based calculation, and divergence markers. Includes independent period and smoothing settings.
- Divergence Identification: Adjusts the pivot lookback (left/right) and range (min/max) to fine-tune how divergences are detected.
- Levels: Sets the threshold values for overbought, oversold, and the equilibrium crossline.
FAQ
How do I use the RSX instead of the standard RSI? You can enable or disable either oscillator in the settings menu under the "RSI: On/Off" and "RSX: On/Off" toggles. They can be viewed simultaneously for comparison.
What does the volume-based calculation do? When enabled, the RSI/RSX calculation incorporates volume data into the relative strength formula, which can help confirm if momentum changes are supported by market activity.
How can I access RSI/RSX Divergence? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
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.

