Trend Lines v2

Hello Everyone. After working on new and better trend lines script for couple of weeks, finally I am proud to publish Trend Lines v2.

How it works?

- On each bar it finds last 10 higher and lower Pivot Points ( PP ).
- from first bar to 10. PP it search if a trend line is possible
- for each it starts searching from the last PP .
- it check 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
- if it finds a continues trend line and stop searhing more and draw trend line (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

optionally trend lines may be Solid or Dashed

optionally you may get rid of broken trend lines if you think it's crowded

and sometimes you may not see any trend line on the chart. this means you need to adjust the period for Pivot Points accordingly

also I made a video. if you watch this video you can see how the script works.

Important! after you add this tool to the chart you may need zoom-in and zoom-out to see all lines!

I thought a lot to make it free or not then I decided make it free and open source. you should know there is a lot of effort for this script, so if you think this is usefull please consider a donation ;)


릴리즈 노트: Important Update:
- "CHANGE BAR COLOR" option added. now able to change bar color when trendline was broken up or down.
- Alerts Added (for broken Trendlines)

A screenshot, how bar color changes when trendline was broken:
릴리즈 노트: Added Start Year, Month, Day. I did this because some users say they got "calculate takes too long to execute > 20000 ms" errow.

in current version now by default it starts calculation from 01.01.2020. You can set closer start date if you use small time frames like 3mins, 5mins, etc.

If you set start date accordingly, you will not get any error.

릴리즈 노트: After I saw some people copy/paste this script and sell, I decided to make it lighter.

for "Trend Lines Pro" script please visit following page:
즐겨찾기 스크립트에서 빼기 즐겨찾기 스크립트에 넣기
If you find my works useful, please consider a donation
BTC: 19qDW9AShZhBZsGuXcgRzam5Fbpc3EU8EV
ETH: 0x39c8552371b9b7f4e324197af460ba8bc8e18ef9

Earn $30


Wow!! LonesomeTheBlue, nice work and helps a lots of people like us who do not know coding.... keep growing the community.
Thanks again...
One question though, is it possible to get the script for the GAAN lines too....
+8 응답
@rkayasth, Thank you. currently I don't have plan for it. next month if I have time I am planning to make trend lines script for some indicators ;)
+2 응답
NarendranR LonesomeTheBlue
@LonesomeTheBlue, Great and Appreciate your Work !! Congrats
One of the best auto trendlines I,ve seen.Good Job.
+7 응답
Sir, if for example we apply this on the USDBTC 1H chart, we get an error "calculate takes too long to execute: >20000ms. How to surpass this?
+5 응답
@aciriaco, solved, you can set start date
aciriaco LonesomeTheBlue
@LonesomeTheBlue, super nice! thanks a ton! Just to get some sensibility, in the original TL (without fixing dates option), how many bars back does the script assume? 4000?
+2 응답
Good.... really helpful.

But I observed, some time trend line not connecting more than 2 picks... which some time give wrong trendline.
Is it possible for you to fix it in V2 only? :P

Just though.
+5 응답
LonesomeTheBlue bhavasarhemang
@bhavasarhemang, thanks for the comment. it's not easy to code to check more than 2 pivot points, in this script it needs a bit artificial inteligence or another idea. also it needs a channel idea as I did in my support and resistance script. trend lines v2 script is already complicated one and I believe if I add more controls for the things (such checking 3 and more PPs) the users can not see anything because it will take more than 200 miliseconds. also I believe this script can be improved and I better work on it.
bhavasarhemang LonesomeTheBlue
@LonesomeTheBlue, Thanka for quick reply.
+1 응답
홈으로 스탁 스크리너 포렉스 스크리너 크립토 스크리너 이코노믹 캘린더 사용안내 차트 특징 프라이싱 프렌드 리퍼하기 하우스룰(내부규정) 헬프 센터 웹사이트 & 브로커 솔루션 위젯 차팅 솔루션 라이트웨이트 차팅 라이브러리 블로그 & 뉴스 트위터
프로화일 프로화일설정 계정 및 빌링 리퍼드 프렌즈 코인 나의 서포트 티켓 헬프 센터 공개아이디어 팔로어 팔로잉 비밀메시지 채팅 로그아웃