True Strength Index
- The TSI fluctuates between positive and negative territory. Positive territory means the bulls are more in control of the asset. Negative territory means the bears are more in control.
- When the indicator divergences with price, the TSI may be signaling the price trend is weakening and may reverse.
- A signal line can be applied to the TSI indicator. When the TSI crosses above the signal line it can be used as a buy signal, and when it crosses below, a sell signal. Such crossovers occur frequently, so use with caution.
- Overbought and oversold levels will vary by the asset being traded.
// True Strength Index
set pchange = close - ref(close,1)
set abschange = abs(pchange)
set emapchange1 = ema(pchange,25)
set emaabschange1 = ema(abschange,25)
set emapchange2 = ema(emapchange1,13)
set emaabschange2 = ema(emaabschange1,13)
set TSI = (emapchange2 / emaabschange2) * 100
set signal = sma(tsi,7)