LonesomeTheBlue

Trend Lines for RSI, CCI, Momentum, OBV

Hello Traders!

After publishing Trend Lines for RSI yesterday, I realized that Trend Lines for more indicators needed by the traders. so I decided to make it for four different indicators: RSI, CCI , OBV, Momentum

In the indicator options you can choose the indicator from pull-down menu.


How it works?

- On each bar it finds last 10 higher and lower Pivot Points ( PP ) for the indicator.
- from first bar to 10. Pivot Point it searchs if a trend line is possible
- for each PP it starts searching from the last PP .
- it checks if drawing a trend line possible or not and also it's broken or not
- if it's broken then optionally it shows broken trend lines as dotted (or you can option not to see broken lines)
- if it finds a continues trend line then it stops searhing more and draw trend line , this is done by checking angles (I did this to make the script faster, otherwise you may get error because of it needs time more than .2sec)
- the script makes this process for each PP
- then shows the trend lines


P.S. it may need 3-10 seconds when you added the script to the chart at first (because of calculations)


Trend lines for CCI:


Trend Lines for OBV



Trend Lines for Momentum:


You may want to watch how Trend Lines script works
(that was made for RSI )
https://s3.tradingview.com/d/dxBXxzE5_bi...


If you still didn't see Trend Lines v2 then visit:


All Comments are welcome..


Enjoy!
릴리즈 노트: Added "Show EMA line" option, default EMA length = 9. it adds EMA line for the selected indicator. you can change the EMA Length.
즐겨찾기 스크립트에서 빼기 즐겨찾기 스크립트에 넣기
If you find my works useful, please consider a donation
BTC: 19qDW9AShZhBZsGuXcgRzam5Fbpc3EU8EV
ETH: 0x39c8552371b9b7f4e324197af460ba8bc8e18ef9

코멘트

One of the Finest Pinecoders..Marvelous Masterpiece
응답
You are so talent. Thank you for your great work!
응답
This is great
응답
Hey Mate, i love your work. just a quick question please, i want RSI to look like based on the script below, but not sure how i amend your script... Can you please assist?

src = close, len = input(21, minval=1, title="Length")
up = rma(max(change(src), 0), len)
down = rma(-min(change(src), 0), len)
rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))
plot(rsi, color=color.black)
band4 = hline(75)
band3 = hline(58)
band2 = hline(50)
band1 = hline(42)
band0 = hline(25)
fill(band1, band0, color=color.green, transp=90)
fill(band4, band3, color=color.purple, transp=90)
응답
Excelente work.

Thanls for share!

If you can add divergences lines, this script will se the most complete and useful rsi!
+3 응답
Hello Lonesome

i ndeed to write script thats find rsi privous close near 70 and then going back from 35-60 how to do it in PINE
응답
good job
+1 응답
great work
+1 응답
홈으로 스탁 스크리너 포렉스 스크리너 크립토 스크리너 이코노믹 캘린더 사용안내 차트 특징 프라이싱 프렌드 리퍼하기 하우스룰(내부규정) 헬프 센터 웹사이트 & 브로커 솔루션 위젯 차팅 솔루션 라이트웨이트 차팅 라이브러리 블로그 & 뉴스 트위터
프로화일 프로화일설정 계정 및 빌링 프렌드 리퍼하기 나의 서포트 티켓 헬프 센터 공개아이디어 팔로어 팔로잉 비밀메시지 채팅 로그아웃