tr4ever

Trend Intensity

132
The Trend Intensity indicator measures the strength of the trend. Trend intensity tells us whether we are in an up or downtrend.

Ex:
A TI value of 150 means that the 7 day moving average is currently 50% above the 65 day moving average. This tells us that prices were moving up quickly in recent history.
A TI value of 80 tells us that the 7 day moving average is currently 20% below the 65 day moving average. This tells us that prices were moving down in recent history.
Skrypt open-source

Zgodnie z prawdziwym duchem TradingView, autor tego skryptu opublikował go jako open-source, aby traderzy mogli go zrozumieć i zweryfikować. Brawo dla autora! Możesz używać go za darmo, ale ponowne wykorzystanie tego kodu w publikacji jest regulowane przez Dobre Praktyki. Możesz go oznaczyć jako ulubione, aby użyć go na wykresie.

Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.

Chcesz użyć tego skryptu na wykresie?
study(title = "Trend Intensity", shorttitle="TI", overlay=true)
src = close

len = input(7, minval=1, title="Length")
smma = na(smma[1]) ? sma(src, len) : (smma[1] * (len - 1) + src) / len
plot(smma, color=red)

lenn = input(65, minval=1, title="Length")
smmaa = na(smmaa[1]) ? sma(src, lenn) : (smmaa[1] * (lenn - 1) + src) / lenn
plot(smmaa, color=green)

TI = smma/smmaa * 100
plot(TI, color=blue)