Divergence for many indicator v3

Hello Everyone. Almost one year later, with Pine version 4, I developed new version of the Divergence for many Indicator.

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 Pivot Points and on every bar it checks divergence between last Pivot point 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. ( RSI , MACD , MACD Histogram, Stochastic , CCI , 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!

Feb 06
릴리즈 노트: alert condition fixed
Feb 07
릴리즈 노트: Added indicator names which has divergence! (optional and you must select it in the options menu)
Feb 19
릴리즈 노트: "Minimum Number of Divergence" option added. by default it's value is 1.

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.
Feb 19
릴리즈 노트: .
Feb 27
릴리즈 노트: Money Flow Index (MFI) added as 11. indicator for divergence
Feb 27
릴리즈 노트: Added "Change Width by Number of Divergence". If you enable this option then Line width changes by number of divergence. enabled by default.
Mar 09
릴리즈 노트: Added "Check Cut-Through in indicators" option. disabled by default. if you enable this option and if there is cut-through in any indicator then it's not shown as valid divergence.
즐겨찾기 스크립트에서 빼기 즐겨찾기 스크립트에 넣기
If you find my works useful, please consider a donation
BTC: 19qDW9AShZhBZsGuXcgRzam5Fbpc3EU8EV
ETH: 0x39c8552371b9b7f4e324197af460ba8bc8e18ef9


Amazing script, I have been doing some backtesting with my strategy and it's very powerful. Is there a possibility to set alerts?
+17 응답
LonesomeTheBlue tanya.favitta
@tanya.favitta, Thank you. there are two alerts when there is positive or negative divergence. do you mean any other alert?
+4 응답
showlimit = input(1, title="Minimum Number of Divergence", minval = 1)
please add an maxval 10
showlimit = input(1, title="Minimum Number of Divergence", minval = 1, maxval = 10)
good job buddy
+9 응답
@James_Bl, I am gonna add a few things, this added to "to do" list.
+4 응답
do i need premim account to use this i only see lines and numbers?
+8 응답
@ntsnow02, no, all users can use this. free and open-source script to all.
+3 응답
Realnate88 LonesomeTheBlue
@LonesomeTheBlue, donate to him!!!
+3 응답
@Realnate88, good idea :)
+2 응답
Realnate88 LonesomeTheBlue
@LonesomeTheBlue, yep! I’ll donate 5% of my profits from the weekend on my test account brother. Cheers!
+2 응답
Realnate88 LonesomeTheBlue
@LonesomeTheBlue, well, unless I get rekt from this indicator, then you can donate me 5% of my losses ;)
+2 응답
홈으로 스탁 스크리너 포렉스 스크리너 크립토 스크리너 이코노믹 캘린더 사용안내 차트 특징 프라이싱 프렌드 리퍼하기 하우스룰(내부규정) 헬프 센터 웹사이트 & 브로커 솔루션 위젯 차팅 솔루션 라이트웨이트 차팅 라이브러리 블로그 & 뉴스 트위터
프로화일 프로화일설정 계정 및 빌링 프렌드 리퍼하기 나의 서포트 티켓 헬프 센터 공개아이디어 팔로어 팔로잉 비밀메시지 채팅 로그아웃