Divergences for many indicators v2.0

A gift from me to all.

This script is developed to find Divergences for many indicators. it analyses divergences and then draws line on the graph. red for negatif, lime for positive divergences.

Currently script checks divergence for RSI , MACD , MACD Histogram, Stochastic , CCI , Momentum, OBV, Diosc, VWMACD and CMF indicators. You can use some or all of these indicators to check divergences as you wish by choosing them on the menu. Also you can add/remove many other indicators to the script to check if there is divergence.

The script first calculates tops/bottoms by using higher time frame zig zag and then finds divergences.

Higher Time Frames are
if currend period 1 min => HTF = 5 mins
if currend period 3 mins => HTF = 15 mins
if currend period 5 mins => HTF = 15 mins
if currend period 15 mins => HTF = 1 hour
if currend period 30 mins => HTF = 1 hour
if currend period 45 mins => HTF = 1 hour
if currend period 1 hour => HTF = 4 hours
if currend period 2 hours => HTF = 4 hours
if currend period 3 hours => HTF = 4 hours
if currend period 4 hours => HTF = 1 day
if currend period 1 day => HTF = 1 week
if currend period 1 week => HTF = 1 week

future plan : script finds regular divergences, soon I will add hidden divergences and also I plan to add alert ;)

Note di rilascio: Fixed some options
Note di rilascio: Added Alert !
Note di rilascio: in order to find tops and buttoms script waits for higher time frame completion and this may cause a few bars latency. To solve it, I changed script & added early alarm system. Before completion of HTM if there is divergences you can see red label above bar and lime label below bar. Red label above bar means alert for negative divergence and lime label below bar means positive divergence.
Note di rilascio: Fixed the redundant white line.
Note di rilascio: Added hidden and exaggerated divergences. showing hidden divergences is optional. P.S. I don't recommend using hidden divergences because it's not trustable as regular ones.
Rimuovi dagli script preferiti Aggiungi agli script preferiti
If you find my works useful, please consider a donation
BTC: 19qDW9AShZhBZsGuXcgRzam5Fbpc3EU8EV
ETH: 0x39c8552371b9b7f4e324197af460ba8bc8e18ef9


Ne Fonctionne plus, dommage...
No longer works, damage
how can i convert this script into v4. Anyone please help
@msir2762, I re-published it with new idea
a little bit late but thanks for ur work!
any possibility to apply this on C# ?
thank you very much man
+1 Rispondi
I published new version. you may want to look at it ;)
Hi, how does the alert's work do I have to have the pair open to get it or can I get them on my phone whenever any pair is showing divergence?
+1 Rispondi
@fx-insix, when you open chart, there is and alert button on right top side of screen. you set alert by using it. it has some abilities such pop-up message, send email etc. explanation and some examples https://www.tradingview.com/wiki/Creating_and_Managing_Alerts
I noticed that there is a delay of 2 bars, is this the earliest setup?
+2 Rispondi
@Lij_MC, it needs to find pivot points and this may cause delay a few bars
Home Screener azioni Screener forex Screener cripto Calendario economico Come funziona Caratteristiche Grafico Costi Invita un amico Regolamento Centro di supporto Soluzioni per broker & siti web Widget Librerie grafiche Libreria grafica leggera Blog & Novità Twitter
Profilo Impostazioni profilo Account e fatturazione Invita un amico I miei ticket di supporto Centro di supporto Idee pubblicate Follower Seguiti Messaggi Privati Chat Esci