LonesomeTheBlue

Trend Follower

Hello Traders!

While analysing the charts, one of the biggest problem is to see if there is trend or not, or is it in a congestion zone/area? While thinking about it, I found the idea to analyse moving averages in channel and their momentum according to channel width.


How it calculates and works?

On each bar it creates a channel by highest/lowest point of a MA. highest point is upper point and lowest point is lower point of the MA channel,
It gets highest and lowest point of last 300 bars, (say Price Channel )
If the width of MA channel is greater than certain rate of price channel then it decides there is trend
After it decided there is trend, it calculates the rate between channel and MA. Bigger result means stronger trend.
According to rate of MA channel and the price channel , bar color becomes lighter/darker. so when you look at the bar color you can see the trend strength.


Short explanation on the chart:


Also by changing channel or size other options (such MA length etc) you can see congestion zones/areas:


Another one, about trend direction and its strength:


Options:

You can choose following MA types as source: EMA , SMA , RMA, WMA , VWMA
"Period to Check Trend" is the period to create MA channel. Bigger period cause more sensitivity.
MA Period is the Length of the MA that will be checked
"Trend Channel Rate %" is rate of price channel . Price channel created by using highest/lowest of last 300 bars. I did this to make the script works on all time frames correctly.
"Use Linear Regression" is used to get rid of noise. it may cause 1-2 bars latency. (I use it)


The idea was created by LonesomeTheBlue.


Enjoy!
릴리즈 노트: Added Alerts for:
- Trend is UP
- Trend is DOWN
- No Trend
즐겨찾기 스크립트에서 빼기 즐겨찾기 스크립트에 넣기
If you find my works useful, please consider a donation
BTC: 19qDW9AShZhBZsGuXcgRzam5Fbpc3EU8EV
ETH: 0x39c8552371b9b7f4e324197af460ba8bc8e18ef9

코멘트

Thank you lord of code for this amazing work, please can you bring us a script more like Martin trend meter. We are grateful and thankful Sir.
응답
i would like to plot macd on top of this chart how can i do that.
응답
Thanks for this Great work!
Can you add divergence line with respect to price in indicator.
i.e if price go higher high n indicator make lower low?
+1 응답
@wagla_21, if I have time this month I can do this.
응답
wagla_21 LonesomeTheBlue
@LonesomeTheBlue, Thank you for consideration!
응답
What temporality is better to use?
응답
LonesomeTheBlue UnknownUnicorn7226877
@UnknownUnicorn7226877, it works on all time frames, generally I think 15 min or higher time frames may be better
응답
genesis42 LonesomeTheBlue
@LonesomeTheBlue, super stuff. Your contributions to TV are immense.
+2 응답
Great! thank you
+2 응답
nice work
+2 응답
홈으로 스탁 스크리너 포렉스 스크리너 크립토 스크리너 이코노믹 캘린더 사용안내 차트 특징 프라이싱 프렌드 리퍼하기 하우스룰(내부규정) 헬프 센터 웹사이트 & 브로커 솔루션 위젯 차팅 솔루션 라이트웨이트 차팅 라이브러리 블로그 & 뉴스 트위터
프로화일 프로화일설정 계정 및 빌링 프렌드 리퍼하기 나의 서포트 티켓 헬프 센터 공개아이디어 팔로어 팔로잉 비밀메시지 채팅 로그아웃