Hi Thanks!
But it seems it is somewhat different than wht I mean. I create it as follow:
REM Berechnet die tägliche Abweichung
MyMA = Average[maLength](close)
UP = MAX(0, close – MyMA)
DOWN = MAX(0, MyMA – close)
totalUP = summation[p](UP)
totalDOWN = summation[p](DOWN)
myTII = totalUP/(totalUP + totalDOWN)*100
RETURN myTII COLOURED(0,0,255) AS “Trend Intencity Index”, 90 COLOURED(0,255,0) as “HI”, 10 COLOURED(255,0,0) as “LO”
Here is an article: https://patternswizard.com/trend-intensity-index/