All RSI Signals v1
Jun 27, 2020

The All RSI Signals indicator is a comprehensive momentum analysis tool that combines RSI, Stochastic RSI, and Linear Regression to identify high-probability buying and selling opportunities.
Usage
The Usage section focuses on how the three primary components interact to generate signals:
- Momentum Coloring: The RSI line changes color based on Stochastic RSI momentum. A blue line indicates a bullish uptrend (Stochastic K > D or above 80), while a red line indicates a bearish downtrend.
- Divergence Detection: The script automatically identifies and labels Regular and Hidden Bullish/Bearish divergences between price and the RSI. These labels (Bull, H Bull, Bear, H Bear) appear directly on the RSI plot to highlight potential reversals or trend continuations.
- Trend Direction via Linear Regression: A linear regression channel is projected onto the RSI data. This facilitates the identification of the current RSI trend direction and assists in spotting when momentum is overextending beyond statistical deviations.
- Filtering: For robust entries, users often look for RSI values between 30 and 70 coupled with Stochastic RSI levels between 20 and 60 to ensure a strong emerging trend rather than an exhausted one.
Details
The script integrates several technical concepts into a single pane:
- Stochastic RSI Integration: Rather than plotting a separate oscillator, the Stochastic RSI is used as a logic filter to color the main RSI line, reducing chart clutter while maintaining momentum awareness.
- Pivot-Based Divergence: The tool uses pivot high/low lookbacks to find peaks and troughs in both price and the RSI, ensuring that divergence signals are based on significant structural points.
- Statistical Significance: The Linear Regression component includes an optional Pearson's R calculation. This helps traders understand the strength of the linear correlation within the specified lookback period; a higher percentage indicates a more reliable linear trend.
Settings
RSI & Stochastic
- RSI Period: The lookback period for the Relative Strength Index calculation.
- RSI MA Length: The length of the Moving Average applied to the RSI for trend smoothing.
- RSI Source: The price source used for the RSI calculation (e.g., Close, HL2).
Divergence
- Pivot Lookback Right/Left: Determines the number of bars required to confirm a pivot point for divergence detection.
- Max/Min Lookback Range: The range of bars to look back when comparing price and RSI peaks.
- Plot [Type]: Toggles the visibility of Regular Bullish, Hidden Bullish, Regular Bearish, and Hidden Bearish signals.
Linear Regression
- Count: The number of bars used to calculate the linear regression slope.
- Upper/Lower Deviation: The multiplier for the standard deviation bands.
- Use Upper/Lower Deviation: Toggles whether to use standard deviation or raw high/low price deviations for the channel.
- Show Pearson's R: Displays the correlation coefficient to indicate the strength of the linear trend.
FAQ
How do I access All RSI Signals?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
What do the "H Bull" and "H Bear" labels mean?
These represent "Hidden" divergences. A Hidden Bullish divergence suggests trend continuation in an uptrend, while a Hidden Bearish divergence suggests continuation in a downtrend.
Can I set alerts for specific signals?
Yes, the script includes built-in alert conditions for positive/negative RSI momentum and all four types of divergence signals (Regular/Hidden Bullish and Bearish).
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.