Stochastic RSI with Crossover Alerts
Aug 17, 2017

The Stochastic RSI with Crossover Alerts indicator enhances the standard Stochastic RSI oscillator by providing visual confirmation and alerts for K and D line crossovers occurring at key levels. It aims to help traders identify potential bullish and bearish momentum shifts with increased clarity through integrated visual cues and automated notifications.
Usage
The Usage section focuses on the interpretation of the Stochastic RSI lines and the specific crossover signals generated by the script.
- Bullish Crossovers: A green column is plotted when the %K line crosses above the %D line within a specific lower range (typically between 10 and 60). This suggests a potential shift toward bullish momentum.
- Bearish Crossovers: A red column is plotted when the %K line crosses below the %D line within an upper range (typically between 40 and 95). This suggests a potential shift toward bearish momentum.
- Alerts: The indicator includes built-in alert functionality that triggers when these crossovers are confirmed on the bar close, allowing for real-time monitoring without constant screen observation.
Details
The script calculates the Relative Strength Index (RSI) based on a user-defined source and length. It then applies the Stochastic formula to these RSI values to determine the %K and %D lines.
The "Crossover Alerts" aspect is unique because it filters signals based on historical placement and current levels. Specifically, it looks for a confirmed cross that occurred on the previous bar to ensure the signal is stable. The visual columns are scaled based on the distance from mid-levels to provide a distinct visual representation of the crossover event directly within the oscillator pane.
Settings
- Smooth K: Determines the smoothing period for the %K line.
- Smooth D: Determines the moving average period applied to %K to create the %D line.
- RSI Length: Sets the lookback period for the underlying RSI calculation.
- Stoch Length: Sets the lookback period for the Stochastic calculation applied to the RSI.
- RSI Source: Specifies the price data (e.g., Close, Open, High, Low) used as the input for the RSI.
FAQ
How do I use the crossover signals?
The signals are intended to highlight momentum shifts. Green columns indicate a bullish crossover confirmed near the bottom or mid-range, while red columns indicate a bearish crossover confirmed near the top or mid-range.
Can I change the sensitivity of the alerts?
Yes, by adjusting the Smooth K, Smooth D, and Length settings, you can make the indicator more or less responsive to price changes, which will consequently change the frequency of the crossover alerts.
How can I access Stochastic RSI with Crossover Alerts?
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.