True Strength Index TSI

True Strength Index TSI

The true strength index (TSI) is a technical indicator used in the analysis of financial markets that attempts to show both trend direction and overbought/oversold conditions. It was first published William Blau in 1991. The indicator uses moving averages of the underlying momentum of a financial instrument. Momentum is considered a leading indicator of price movements, and a moving average characteristically lags behind price. The TSI combines these characteristics to create an indication of price and direction more in sync with market turns than either momentum or moving average. (source: wikipedia)

 

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

  1. Martial Schaff • 10/26/2015 #

    Hello,
    The formula you describe in this post is not the same as in the prorealtime tool (predefined indicators).
    Could you please show the formula used in prorealtime?
    Thanks

  2. Dunkelmann • 10/26/2015 #

    I think if you substitute Momentum for ROC in the code you get the tool values.

  3. marzibre • 10/26/2015 #

    Hello Nicholas I confirm you that the formula it is not the same. Could you please give me a link where I can find the predifined code of True Strenght Index? I need to it to take as example to create the True Directional Index (another William Blau indicator)

  4. gelex911 • 10/26/2015 #

    I confirm too that the formula given above differs from the predefined TSI. Why this missmatch?

  5. Bateson • 10/26/2015 #

    Bonjour.
    L’indicateur fonctionne remarquablement.
    Je n’arrive cependant pas à l’intégrer dans une stratégie “croisement TSI / TMA”. Pourriez-vous m’indiquer comment faire ?
    Cordialement

  6. Fernando • 312 days ago #

    Hi I had same problem, so I translated from NinjaTrader TSI’s formula to PRT code, seems the same values now!

    Fast = 3
    Slow = 14

    constant1 = 2 / (1 + Slow)
    constant2 = 1 – (2 / (1 + Slow))
    constant3 = 2 / (1 + Fast)
    constant4 = 1 – (2 / (1 + Fast))

    IF BarIndex = 0 THEN
    fastAbsEma = 0
    fastEma = 0
    slowAbsEma = 0
    slowEma = 0
    Valor = 0
    ELSE
    momento = Close[0] – Close[1]
    slowEma = momento * constant1 + constant2 * slowEma
    fastEma = slowEma * constant3 + constant4 * fastEma
    slowAbsEma = Abs(momento) * constant1 + constant2 * slowAbsEma
    fastAbsEma = slowAbsEma * constant3 + constant4 * fastAbsEma[1]
    IF fastAbsEma = 0 THEN
    Valor = 0
    ELSE
    Valor = 100 * fastEma[0] / fastAbsEma[0]
    ENDIF
    ENDIF

    Return Valor AS “TSI”

avatar
Register or

Likes

avatar
Related users ' posts
Iván
1 year ago
oliTR Yes, I am sure it should work perfectly, but I found very strange vehavior like this one: ...
oliTR well, it seems that the issue came from my backTest period which was not long enough. sorry
oliTR Dear Ivan, why, in line 86, there is "currentsuperTrend[i]" and not "currentsuperTrend" only?
Iván Hi We could find stocks with sweep on: //PRC_Sweep Institucional //version = 0 //28.0...
inverse Like the way you think Ivan ... :)
ar Bonjour Ivan et merci pour ton partage, Est-il possible d'avoir ce code en ITF
Iván Hi You should delete from the indicator code all drawing functions and all variables not us...
Iván I've created a screener to show [longcondition or shortcondition]
Chrisinobi Hallo Ivan, Danke das ist Perfekt !! Kannst du bitte in der Screener-Bibliothek die itf. hoc...
Gio56 Super idée. j'ai juste un souci. j'ai pas de barre verte mais plusieurs lignes de couleurs.....
DeathMetal change line in histgram, (click on indicator name, click on tool (
Gio56 Super merci.
Razz Bonjour Je pense que votre indicateur est très bon. Serait-il possible d'afficher la heatma...
philippe59139 if marketEtHeamap=1 then drawtext("#touch#",barindex+10,checkprice,SansSerif,Standard,10) c...
philippe59139 voici pour toi RAZZ il te faut simplement ajouter les drawtext https://www.prorealcode.com...
MaoRai54 Thanks, now it's OK. in your first code at line 15-16 it's missing.
Madrosat Hello Ivan Did you try a strategy with this indicator
Iván Hi. No I didn't. This is a code translation requested by an user a few days ago.
Fgats https://www.prorealcode.com/topic/indicateur-3-sigma-documentation/ lien pour la documentat...
DELBERT Bonjour , merci pour le partage et la traduction , je vais essayer d'assimiler ce nouvelle i...
Iván
1 year ago
cjr30 Simplemente modifica las lineas 19 y 21 por las siguientes: drawtext("▲",barindex,low-0.1*a...
groelandes Gracias!!
WhyAskOZ i copied the code into strategy and it gives error on line 21 and 23. it says " Line 1: ...
Iván
1 year ago
Madrosat Hello Ivan You have interesting topics on indicators , smart supertrend, optimised trend t...
Iván Hi! thanks. All of these codes are translations requested in the forum. I've on mind to back...
Raspete01 Buenos días Iván, estoy intentando llevar el código eliminando los colores y pasando un Back...
jacquesgermain sì da aggiungere
Maik2404 auf welchen Wert muss ich die Kompresionsperiode stellen?
jacquesgermain — Période de compression : ce paramètre détermine la période de rétrospection utilisée pour ...
Iván
1 year ago
winnie37 Hi Ivan, if i want to use it, and call the oscillator value (in grey, green or red), how to...
Iván The oscillator is smoothtype. In inputs there is de lag to configure the output
ARLEQUIN49 Hello Ivan, Would it be possible to convert the code of this QQE MOD indicator which accomp...
ARLEQUIN49 here is the code: //@version=4 //By Glaz, Modified // study("QQE MOD") RSI_Period = i...
Iván Hi, Yes I can translate it but please, create a new topic for it.
philippe59139 Bravo super travail
xpe74 top job ......
xpe74 Hello, cet indicateur a il fait l'objet d'une conversion en stratégie de trading ?? does thi...
gidien Thanks for the hint. I think i know now, why this happen. The "settings" block was added by ...
LucasBest Thank you for sharing your work, both original and very disconcerting. When I went through t...
gidien Hello LucasBest, thanks for your comment. Point 1: Yes your are right. The Zigzag ve...
gidien
1 year ago
Cram13 Bonjour, qu'elles sont les valeurs des variables ? Avec mes remerciements Marc
gidien This indicator will not return any value. You can change the last line to : return ao...
gidien SMA1 = MovingAverage Length applied to the source candles (high , low, op...
Fgats quelques explications en Français ici : Some explanations in French here : https://www.p...
Nicolas Merci pour cette contribution, j'apprécie ! :)
Fgats Merci Nicolas pour ces encouragements et merci aussi pour le commentaire en Anglais accompa...

Top