This public indicator helps you to find as many divergences with as many indicators you like, without the long hassle of knowing and coding the divergence yourself.
Just replace the "Divergence Condition" with your formula and give it a title in the second step, everything simply illustrated to someone without any coding experience!
This example is calculating A/D Divergences.
Let's make 2021 great!
With help of @madoqa.
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.