Hello,
You can see my previous work for jos
https://www.freelancer.com/projects/software-architecture/Pine-Editor-create-indicator-TradingView/
for RSI divergence alert, you need first to create a pine script with alertcondition and apply that to a graph. Then you would create a new alert based on that condition.
The script would like like this:
//@version=3
study(title="RSI Divergence", shorttitle="RSI Divergence")
src_fast = close, len_fast = input(5, minval=1, title="Length Fast RSI")
src_slow = close, len_slow = input(14,minval=1, title="Length Slow RSI")
up_fast = rma(max(change(src_fast), 0), len_fast)
down_fast = rma(-min(change(src_fast), 0), len_fast)
rsi_fast = down_fast == 0 ? 100 : up_fast == 0 ? 0 : 100 - (100 / (1 + up_fast / down_fast))
up_slow = rma(max(change(src_slow), 0), len_slow)
down_slow = rma(-min(change(src_slow), 0), len_slow)
rsi_slow = down_slow == 0 ? 100 : up_slow == 0 ? 0 : 100 - (100 / (1 + up_slow / down_slow))
divergence = rsi_fast - rsi_slow
plotdiv = plot(divergence, color = divergence > 0 ? lime:red, linewidth = 2)
band = hline(0)
alertcondition(divergence > 0, title='Divergence crossed zero upwards', message='Divergence rised above zero!')
alertcondition(divergence < 0, title='Divergence crossed zero downwards', message='Divergence falled bellow zero!')
Please hire me and I will also tell you how to manually create the alert.
Best regards
George K