Peter_O

Multiple divergences NON-REPAINT by PeterO

Divergences are well-known tool for finding trend reversals. Powerful, yet... unreliable. Sometimes they show up, sometimes they don't. Sometimes they really mean trend end, sometimes the trend continues. I've witnessed countless discussions about which indicator to hunt for divergences on. All pointless.

Earlier today I found a very inspirational script by Lonesometheblue, combining multiple divergences together. Actually - summing them up and showing hunted divergences count in a label. Because if a divergence shows up on a single indicator like RSI , it can indeed mean trend reversal, but... yeah, check previous pargraph. But if this divergence shows up on 8 different indicators at the same time, then chances increase, don't they?

I decided to do my own version of Lonesome's indicator, because that one is using Label.New, which doesn't allow analysing entire script, only latest 50 occurences or so. I'm not going to hide it - I copy-pasted a lot from Lonesome's code. And from Everget's built-in divergences script, which you can find in PineScript/New. I didn't even bother to modify variable names or cover tracks in any other way, pretending it is my work from scratch. All with these two gentlemen consent and blessing. I added labels from myself, plus bit of rework and here it is:)

I hope you'll find it useful.

P.S. While analyzing divergences today, I discovered one thing. Hidden divergences are not useless, as many people think. But they should be used at trend dips to join the trend, not at trend ends, as reversals. Experiment yourself.

P.S.2 Still, never use only divergences. They need confirmation, they are not self-fulfilling prophecy.
즐겨찾기 스크립트에서 빼기 즐겨찾기 스크립트에 넣기
I auto-execute TradingView Alerts into MT4/MT5 using this: https://www.tradingconnector.com. 1-second delivery.

코멘트

why open source something that works? Makes it absolete once everyone starts using it...
+5 응답
Peter_O raovida
@raovida, That's the beauty of open source, isn't it?

But seriously - read the description. Divergences are only a part of the game, you need to check trend direction, etc.
응답
Open-source in action! Good idea.
+4 응답
Peter, thanks a lot for this great work, but i am having trouble setting alarms as too many options pop up, how about a simple alert calling negative or positive divergence
+1 응답
Peter_O johnveluchamy
@johnveluchamy, Let's make a deal - if this script reaches 1000 likes, I'll add alerts. How does that sound?
응답
@Peter_O, Cheers agreed. Keep up the good work.
응답
Hi, did the uncheck box "repaint" by default is the good choice? or need to check it to be able to see a more accurate signal? thanks!
응답
Peter_O 5samnup
@5samnup, repainting signal will never be better :) It will look better on past screenshots, but that's all. Repainting means that indicator pretends it was showing signals based on the information it didn't have in that moment of time = it is fake.

"Repaint" checkbox was added to emphasize that this script DOES NOT REPAINT. Keep it unchecked.
+1 응답
@Peter_O, Sometimes the labels appear and after, when the bars goes to the opposite direction, the labels dissappear...

I need to do more confirmations and tests... but i think that is not repainted...
응답
Peter_O thierryap
@thierryap, it only appears and disappears until the candle closes. But that is not a repaint. Besides, look into the code - there is nothing that could repaint.
응답
홈으로 스탁 스크리너 포렉스 스크리너 크립토 스크리너 이코노믹 캘린더 사용안내 차트 특징 프라이싱 프렌드 리퍼하기 하우스룰(내부규정) 헬프 센터 웹사이트 & 브로커 솔루션 위젯 차팅 솔루션 라이트웨이트 차팅 라이브러리 블로그 & 뉴스 트위터
프로화일 프로화일설정 계정 및 빌링 프렌드 리퍼하기 나의 서포트 티켓 헬프 센터 공개아이디어 팔로어 팔로잉 비밀메시지 채팅 로그아웃