I am not sure if someone else has already thought about it. But this is something I use to measure the meaningful oversold and overbought level, provided the stock is in a trend. I will add a Trend Indicator along with this in the next version.
I have added RSI, ROC, Stoch to compare. From the code below, i am using Stochastic, but the idea is same, if you use RSI. Experiment with your own comfortable time frames.
This is not a holy grail, The oversold and overbought in a trend transition period could be misleading. But over all, Its a good measure to trade overbought and oversold region
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 publication is governed by House rules. You can favorite it to use it on a chart.
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.