It analyses divergences for 10 predefined indicators and then draws line on the graph. Red for negatif divergence (means prices may go down or trend reversal), Lime for positive divergences (means prices may go up or trend reversal)
Divergences version 2 has latency because it waits higher time frame completion. in this new version the script uses and on every bar it checks divergence between last and current bar and if it finds any then immediately draws line and removes old one. so there is no latency with this version.
There are predefined 10 indicators in the script, you have option to choose which indicators the script would analyse for divergence. ( , , Histogram, , , Momentum, OBV, Diosc, VWMACD and CMF )
In replay mode you can see how the script puts new divergence line and removes old one. you better see it for yourself by using replay mode.
Hope you Enjoy!
if number of divergences is less than "Minimum Number of Divergence" then the script doesn't count it as divergence. for example if you set this to "2" then you will see then divergence line only if the number of divergence is equal or greater than "2".
I don't recommend to increase this number because sometimes divergence on only one indicator may show the trend reversal, so possible to miss trend reversal.
HIDDEN DIVERGENCES ADDED. not to make chart very crowded it shows Regular Divergence OR Hidden Divergence. if you select "Show Hidden Divergence" then it show ONLY Hidden once, if you unselect it then only Regular Ones are shown.
"Check Cut-Through in indicators" option was added. I recomment you to select/enable it. it checks there is cut-through in indicators or not, if no cut-through then it's shown as valid divergence.
В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения. Вы можете добавить этот скрипт в избранное и использовать его на графике.
The chains of divergences are very helpful, both in listing the indicators for each link in the chain and showing the pivot points.
But I'd like a way to alert that a chain of divergence signals has ended - as in, "No Negative Divergences detected for xx candles" - and it would be great if I could adjust the sensitivity of this signal.
I hope you don't mind me reaching out, im new to trading, ive been trying to optimize a strategy for myself and I would love to hear about your's on which other indicators you combine it with. I guess from someone with more experience.
Let me know if you have a minute :)