This Script uses the original code from the 'PPO Divergence alerts' by Scarf
Only difference is the RSI is used as the input instead.
Adjust the smoothing setting as required to change sensitivity for alerts.
Feel free to contact me if you would like more info.