True Strength Index

Author Notes:
- The zero line is included in this script, since it's a standard feature of the True Strength Index momentum oscillator.
- I did not include support and resistance levels, as I'm still researching the best way to incorporate this, rather than using a simple horizontal line for each.
- The original True Strength Index momentum oscillator utilizes the Exponential Moving Average, but with this release, you have the option to use the Hull Moving Average (as an alternative). Feel free to experiment and adjust the settings to whatever suits your trading style.
- I plan on improving/updating this indicator, but for now, releasing this early version.
* This is being provided as is and the information provided by this script is meant for informational/entertainment purposes only.
After several hours of brainstorming and experimentation, I think I came up with a better solution to the oversold and overbought levels. You can read the description comment area of the source code (released publicly) for more information on how to use the oversold and overbought lines. The oversold and overbought lines aren't enabled by default, so if you want it, ensure you manually enable it.
Also, after a while, my source code started getting a bit sloppy as I kept getting frustrated with wanting to terminate each line of code with a semicolon, etc... since I've come from a C++, Javascript/NodeJS background. In any case, this version also comes with a couple of minor changes. You can check it for yourself through the indicator settings and each setting has a detailed tooltip to assist you.
Please note that the trend direction helper isn't enabled by default. You have to manually activate it, if you want it through the indicator settings.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.
Penafian
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.