OPEN-SOURCE SCRIPT
已更新 Trend Intensity Index With SignalLine

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.
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的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。