Quixilver_stx

Relative Strength Index with Highlights and Success Test

This script does two things:

1- Highlights extreme levels on RSI
2- Calculates what % of the time, price closed higher (lower) with some minimum threshold when RSI was below oversold (overbought) level in a predefined number of bars.

I use this to understand if buying the dip/selling the rip works for a security and on what time frame and if it could be a profitable strategy that can generate large enough moves.

No guarantees on the accuracy of the code. Let me know if you see anything wrong

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

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.

Want to use this script on a chart?