You can customize the source of the signal (open, close, etc), as well as oversold/overbought levels, and RSI length.
Use the wait time and TP % to set-up your trade parameters, then fine tune your RSI settings until you get only the signals you want.
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.