RSI Divergence Indicator (with alerts)

Many have requested me for indicator version with alerts for the RSI Divergence strategy. Here is the one ...

Please note alert triggers in delay by number of bars defined in the settings. (same as strategy) ...
Bar color also changes when alert triggers ...

Yellow Bar shows BUY
Purple Bar shows EXIT ( Exit the Long position ... NO SHORTing )

On each Yellow Bar can be added to existing position
On each Purple Bar , exit partial position OR exit the whole position

Appreciate your feedback.

Use for education purpose only ...
Release Notes: Bar color changed to Blue when it is in Long trade

Here is the color code...

Bar turns Yellow when it takes Long Position

Once in Long position , Bar color turns to Blue

Bar turns to Purple when price reaches profit level defined in settings OR when bear condition appears
Open-source script

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.

Want to use this script on a chart?


Great, however, alerts don't work for me. Any idea why? Thank you
+5 Reply
mohanee RobinTrader89
@RobinTrader89, I don't know ... Check the strategy version and let me know
how can you decrease the "delay" before the divergence appears on the RSI? I can see it formed and then it spears after few candles close...?
Hey man!

Im quite new as this. But why is it delaying?
Shouldnt not the yellow flag appers immediately when the the indicator finds an divergence?

Really thankful if you reply :)

abbe3 abbe3
Is this scrip also for 1D? Is it possible for you to make it for 1H?
abbe3 abbe3
@mohanee, sorry last question..
When I set an alert. Which one do i use?
- Only once
- Once per bar
- Once per bar close
- Once per minute
how can I set the alerts exactly??
mohanee alshehri94
@alshehri94, click on alert icon on trading view
alshehri94 mohanee
@mohanee, there are too many setting could you JUST please provide me the exact instructions how to do them?!
Home Stock Screener Forex Screener Crypto Screener Economic Calendar About Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Private Messages Chat Sign Out