OPEN-SOURCE SCRIPT

Divergence and Pivot - Detector For Any Indicator

Updated
I present to you an indicator capable of determining the divergence and convergence points for any indicator you choose. It will also determine Pivot points.

All you need to do is add the indicator to your favorites and call it. Next, you need a second indicator for which you want to find divergences or pivots. Next you need choise 'Oscillator Source' section in my indicator, after that you need to choose the name of the indicator for which you want to find divergences . - Done!

Thanks to the developers of TradingView for posting the source code of the "Divergence Indicator" indicator.
Release Notes
Small Visual Update
Release Notes
One more visual :)
Release Notes
// Add Alerts
Release Notes
I added more allerts:
~Alert Bull Divergence
~Alert Bear Divergence
~Alert Hidden Bull Divergence
~Alert Hidden Bear Divergence
~Alert Bull Pivot
~Alert Bear Pivot
detectorDivergencehighlowoptionsOscillatorsPivot points and levels

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer