True Strength Index [RC Tools]

RC Tools — True Strength Index
────────────────────────────────────────────────────────────────────
█ OVERVIEW
Most momentum oscillators are jumpy, because they react to every bar's price change directly. William Blau's True Strength Index (TSI) takes a different approach: it smooths the price changes twice before measuring them, which removes much of the noise while keeping the oscillator responsive to genuine shifts in direction. This version adds a signal line, crossover markers on the price chart, alerts, and a choice of smoothing type.
█ WHAT IT DOES
Computes the TSI, a smoothed momentum oscillator between -100 and +100, plus a signal line and a histogram of the gap between them. Classifies each confirmed bar into one of four states from the TSI's position against its signal line and the zero line: Bullish, Recovering, Fading or Bearish. It marks bullish and bearish crossovers in the oscillator pane and optionally on the price chart. A table shows the current state, how long it has lasted, the TSI and signal values, the net-to-total movement share, and the last crossover with its age. Alert conditions are included for both crossovers.
█ THE THEORY BEHIND IT
The TSI is the double-smoothed net price change divided by the double-smoothed total (absolute) price change, expressed as a percentage. That makes it easy to read: a TSI of +25 means the smoothed net upward movement is 25% of the smoothed total movement. Direction is winning, but not completely. A reading near +100 or -100 would mean almost every recent move has been in one direction. In that sense TSI behaves like a smoothed, signed measure of how directional recent movement has been, rather than a classic bounded overbought/oversold oscillator. The double smoothing, a long smoothing followed by a short one, is what gives it its characteristic smooth line with relatively little noise.
█ HOW IT IS CALCULATED
1. Momentum m = price change over one bar.
2. Numerator: smooth m with a long average (default 25 bars), then smooth the result with a short average (default 13 bars).
3. Denominator: do the same to the absolute value of m.
4. TSI = 100 x numerator / denominator, bounded between -100 and +100.
5. Signal line = a further smoothing of the TSI (default 13 bars).
6. States: TSI above signal and above zero = Bullish; above signal and below zero = Recovering; below signal and above zero = Fading; below signal and below zero = Bearish.
7. Crossovers: Bullish when the TSI crosses up through its signal line; Bearish when it crosses down.
Everything updates ONLY on confirmed bar close. States, markers, the table and alerts all use closed bars, so nothing flips mid-bar.
█ SETTINGS & CONFIGURATION
• Source (default close)
• Long and Short Smoothing Lengths (defaults 25 and 13, Blau's classical values)
• Smoothing Type (default EMA, Blau's original): EMA, SMA, WMA, RMA, HMA, DEMA or TEMA. Faster types react sooner but can overshoot; the TSI is clamped to the -100 to +100 range when they do
• Signal Line Length (default 13) and Signal Line Type
• Reference Level (default +/-25): reference lines only, drawn for context. They do NOT drive the classification
• Histogram, crossover markers on the main chart, pane and chart background tinting, table position and all colours are configurable
• Two alert conditions: Bullish Cross and Bearish Cross
█ HOW TO USE IT
Use it as a smooth momentum read alongside your own process. The zero line separates net-upward from net-downward recent momentum; the signal line shows whether that momentum is strengthening or weakening. A bullish cross while the TSI is still below zero is a different situation from one above zero, which is why the four states split on both lines. Many traders use the crossovers as timing cues in the direction of a larger trend they have identified separately, rather than taking every cross.
Works on any asset and timeframe. The defaults are Blau's published starting values, not values tuned for a particular market.
█ LIMITATIONS
• The TSI is double-smoothed, so it lags price by construction. Crossovers confirm a shift after it is already under way, never before it.
• It is bounded at +/-100 but rarely gets near those extremes. The +/-25 lines are reference lines, not overbought/oversold levels, and the classification does not use them.
• In choppy, range-bound markets the TSI and its signal line cross often, producing clusters of crossovers that do not follow through.
• States describe the current momentum balance. They do not forecast the next move.
• Faster smoothing types (HMA, DEMA, TEMA) can overshoot.
• The defaults are published starting points, not optimised values for any asset or timeframe.
• Four states are a deliberate simplification of a continuous reality.
• States and crossovers update on confirmed bar close only. This script does NOT repaint.
█ DISCLAIMER
For educational and informational purposes only. Nothing here is financial advice. Past behaviour of any state or crossover does not indicate future results. Trade at your own risk.
────────────────────────────────────────────────────────────────────
────────────────────────────────────────────────────────────────────
█ OVERVIEW
Most momentum oscillators are jumpy, because they react to every bar's price change directly. William Blau's True Strength Index (TSI) takes a different approach: it smooths the price changes twice before measuring them, which removes much of the noise while keeping the oscillator responsive to genuine shifts in direction. This version adds a signal line, crossover markers on the price chart, alerts, and a choice of smoothing type.
█ WHAT IT DOES
Computes the TSI, a smoothed momentum oscillator between -100 and +100, plus a signal line and a histogram of the gap between them. Classifies each confirmed bar into one of four states from the TSI's position against its signal line and the zero line: Bullish, Recovering, Fading or Bearish. It marks bullish and bearish crossovers in the oscillator pane and optionally on the price chart. A table shows the current state, how long it has lasted, the TSI and signal values, the net-to-total movement share, and the last crossover with its age. Alert conditions are included for both crossovers.
█ THE THEORY BEHIND IT
The TSI is the double-smoothed net price change divided by the double-smoothed total (absolute) price change, expressed as a percentage. That makes it easy to read: a TSI of +25 means the smoothed net upward movement is 25% of the smoothed total movement. Direction is winning, but not completely. A reading near +100 or -100 would mean almost every recent move has been in one direction. In that sense TSI behaves like a smoothed, signed measure of how directional recent movement has been, rather than a classic bounded overbought/oversold oscillator. The double smoothing, a long smoothing followed by a short one, is what gives it its characteristic smooth line with relatively little noise.
█ HOW IT IS CALCULATED
1. Momentum m = price change over one bar.
2. Numerator: smooth m with a long average (default 25 bars), then smooth the result with a short average (default 13 bars).
3. Denominator: do the same to the absolute value of m.
4. TSI = 100 x numerator / denominator, bounded between -100 and +100.
5. Signal line = a further smoothing of the TSI (default 13 bars).
6. States: TSI above signal and above zero = Bullish; above signal and below zero = Recovering; below signal and above zero = Fading; below signal and below zero = Bearish.
7. Crossovers: Bullish when the TSI crosses up through its signal line; Bearish when it crosses down.
Everything updates ONLY on confirmed bar close. States, markers, the table and alerts all use closed bars, so nothing flips mid-bar.
█ SETTINGS & CONFIGURATION
• Source (default close)
• Long and Short Smoothing Lengths (defaults 25 and 13, Blau's classical values)
• Smoothing Type (default EMA, Blau's original): EMA, SMA, WMA, RMA, HMA, DEMA or TEMA. Faster types react sooner but can overshoot; the TSI is clamped to the -100 to +100 range when they do
• Signal Line Length (default 13) and Signal Line Type
• Reference Level (default +/-25): reference lines only, drawn for context. They do NOT drive the classification
• Histogram, crossover markers on the main chart, pane and chart background tinting, table position and all colours are configurable
• Two alert conditions: Bullish Cross and Bearish Cross
█ HOW TO USE IT
Use it as a smooth momentum read alongside your own process. The zero line separates net-upward from net-downward recent momentum; the signal line shows whether that momentum is strengthening or weakening. A bullish cross while the TSI is still below zero is a different situation from one above zero, which is why the four states split on both lines. Many traders use the crossovers as timing cues in the direction of a larger trend they have identified separately, rather than taking every cross.
Works on any asset and timeframe. The defaults are Blau's published starting values, not values tuned for a particular market.
█ LIMITATIONS
• The TSI is double-smoothed, so it lags price by construction. Crossovers confirm a shift after it is already under way, never before it.
• It is bounded at +/-100 but rarely gets near those extremes. The +/-25 lines are reference lines, not overbought/oversold levels, and the classification does not use them.
• In choppy, range-bound markets the TSI and its signal line cross often, producing clusters of crossovers that do not follow through.
• States describe the current momentum balance. They do not forecast the next move.
• Faster smoothing types (HMA, DEMA, TEMA) can overshoot.
• The defaults are published starting points, not optimised values for any asset or timeframe.
• Four states are a deliberate simplification of a continuous reality.
• States and crossovers update on confirmed bar close only. This script does NOT repaint.
█ DISCLAIMER
For educational and informational purposes only. Nothing here is financial advice. Past behaviour of any state or crossover does not indicate future results. Trade at your own risk.
────────────────────────────────────────────────────────────────────
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.