Divergence Histogram for Many Indicator

Hello Traders,

This script analyses divergences for 11 predefined indicators and then draws column on the graph. Red columns for negatif divergence (means prices may go down or trend reversal), Lime columns for positive divergences (means prices may go up or trend reversal)

The script uses Pivot Points and on each bar it checks divergence between last Pivot Point and current High/Low and if it finds any divergence then immediately draws column. There is no Latency/Lag.

There are predefined 11 indicators in the script, which are RSI , MACD , MACD Histogram, Stochastic , CCI , Momentum, OBV, Diosc, VWMACD, CMF and MFI .

Smaller Pivot Point Period check smaller areas and if you use smaller numbers it would be more sensitive and may give alerts very often. So you should set it accordingly.

There is "Check Cut-Through in indicators" option, I recomment you to enable it. it checks that there is cut-through in indicators or not, if no cut-through then it's shown as valid divergence.

You should see following one as well if you haven't yet:

Skript med en öppen källkod

I sann TradingView-anda har författaren till detta skript publicerat det som öppen källkod, så att handlare kan förstå och verifiera det. Skål för författaren! Du kan använda den gratis men återanvändning av den här koden i en publikation regleras av våra Ordningsregler. Du kan göra den till favorit för att använda den i ett diagram.

Vill du använda det här skriptet i ett diagram?


Great work, man. Nothing makes me happier than when I get that notification "LonesomeTheBlue that you follow has published a new script"
+9 Svara
@jaggedsoft, Thank you!. I hope my works are usefull.
+4 Svara
statquo126b LonesomeTheBlue
@LonesomeTheBlue, I have the script copied but i don't not have it where it is drawing the lines im in need of help!
Junglistt jaggedsoft
@jaggedsoft, I agree! Keep up the good work!
+1 Svara
Thank you, brother. Please, please, please, edit your Divergence for Many Indicator to allow us to have both regular as well as hidden divs at the same time. I hate having to put it on my chart twice just for that.
+4 Svara
Your scripts are undoubtedly the most useful I can find on this platform, and the best quality as well.
I'm trying to build a multi time frame support and resistance indicator, as well as maybe trendlines.
Not sure of the path to take, I have a fair experience in coding, but not so familiar with PineScript yet.
I am learning a lot reading yours !

Anyhow, thank you and best of success !
+3 Svara
LonesomeTheBlue skytrading258
@skytrading258, Thank you!
+3 Svara
LonesomeTheBlue tdm900biker
@tdm900biker, you are welcome!
Great work. Keep up the good work! Out of curiosity, what is the best time frame to use this indicator? Daily, 4hr, 2hr? What's your experience?
+2 Svara