Here, I modified the script "Trend Intensity Index" (TII) of @everyget.
TTI was developed by M.H. Pee, who also published other trend analysis indicators like the Trend Trigger/Continuation Factor
It helps to determine how strong the current trend is.
The stronger the trend, the higher the chance the price may continue moving in the current...
This study is an experimental variation of Peter Martin's Ulcer Index that calculates the risk measures in the long and short direction for comparison.
The index is a measure of volatility that can be used to locate low risk trading opportunities.