From now on, the indicator will calculate divergences for you, both regular and hidden ones. Of course you can set alerts over them.
You can customize colors and choose to hide the CVD plot in order to place the indicator in overlay on the chart to better see where divergences are found.
Divergences analysis window is set to 500 by default: the higher the number, the less divergences will be found, while the lower the number, the higher the number of divergences displayed.
Also source code has upgraded to pine script v5.