OPEN-SOURCE SCRIPT
Updated Stochastic RSI with crossover-indication and alerts

On the normal Stochastic RSI it may be hard to see the exact crosses between the two lines. This version makes that a little easier.
Shows green line when K-line crosses up the D-line, but below the 50-level (this treshold level can be adjusted in the settings).
Shows red line when K-line crosses down the D-line, but above the 50-level (treshold level can be adjusted).
Option to show lines on the subsequent one or two bars. For instance you can use a rule that a crossover is still valid for trade-entry when it happened 2 bars ago.
Shows green line when K-line crosses up the D-line, but below the 50-level (this treshold level can be adjusted in the settings).
Shows red line when K-line crosses down the D-line, but above the 50-level (treshold level can be adjusted).
Option to show lines on the subsequent one or two bars. For instance you can use a rule that a crossover is still valid for trade-entry when it happened 2 bars ago.
Release Notes
Cleaned up the code.Linewidth can now be adjusted.
In the style-settings you can get rid of the vertical lines, leaving just a tiny cross as an indication where the K and D have crossed.
Release Notes
New version can generate alerts with crossover / crossunder,but with additional condition that candle itself is bulllish (green) or bearish (red).Release Notes
.Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.