Trend Intensity Index With SignalLine

bennycjonesmusic 업데이트됨   
Hi guys,

This is my first public script on TV. I was just messing about with some simple ideas and I noticed that the difference between a signalLine and the TrendIntensity line was (potentially and theoretically) a good way of spotting a ranging market.

I was initially just going to release Evergets version of this with a histogram and a signal-line, but I decided I'd much rather put in the work and code it from scratch so I could practice my coding.

I am still relatively new to Pinescript, but I have compared this to Evergets version, and on the same settings it is 1 to 1.

How to use:

When TrendIntensity(aqua) is above SignalMa (maroon), it implies a bullish sentiment.

When SignalMa is above TrendIntensity, it implies a bearish sentiment.

The histogram is simply the absolute difference between the two. Green = bullish, Red = bearish, flat = potentially ranging.

Enjoy guys.

I would like to thank Everget for his Jurik moving average.

Feedback welcome, but be kind... this is free and open for you all to use as you please.

릴리즈 노트:
*Indicator developed by M.H Pee. Many thanks to him.
릴리즈 노트:
*added minor length as well for additional customisation
릴리즈 노트:
*Just wanted to change the pic on the front so other indicators were not in ;)
릴리즈 노트:
*Fixed confusing Histo colours.. was occasionally red when there was a strong uptrend, or green when there was a strong downtrend. This is because both lines hug the top or bottom when this happens, and the question of the TII being above or below the SignalLine in this case becomes unimportant.
릴리즈 노트:
*Got rid of minor length, as I find it better without it personally.
오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.


이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?