Modified from the various scripts I've found on TradingView. This scripts adds alerts for oversold overbought conditions. It also has the ability to add in another RSI at a different time interval.
I've also added an MFI with bollinger bands to the chart to preceed the RSI . This can sometimes tell you the direction the RSI is moving. usually when it is out of the bollinger bands on the MFI the price/ RSI tends to slow.
changed the name of RSI to MFI to correctly identify the plot.
added alerts for RSI