This script points regular and optionally hidden types of bullish and bearish RSI divergences on the chart by drawing the divergence lines and optionally labels.
Hidden divergence is disabled by default, it can be enabled over settings window.
There is an option to display the price channel additionally.
Added alerts for 4 types of divergences
Titles and messages are the same:
"Regular Bearish Divergence"
"Regular Bullish Divergence"
"Hidden Bearish Divergence"
"Hidden Bullish Divergence"