OPEN-SOURCE SCRIPT

True RSI

1 750
True RSI | MisinkoMaster

The True RSI is a sophisticated reimagining of classical momentum. While the standard Relative Strength Index has served as a cornerstone of technical analysis for decades, it possesses a fundamental limitation: it treats all price movements equally, regardless of the time elapsed since the market made its last major peak or trough. The True RSI solves this structural blind spot by merging price magnitude with temporal trend strength, weighting gains and losses according to their cyclical maturity.

By dynamically scaling price changes against the time-distance of local extremes, this indicator filters out lateral market noise, reduces false overbought and oversold readings during strong trends, and delivers highly responsive execution signals.

How It Works (The Core Architecture)

Instead of relying solely on arithmetic averages of upward and downward price closes, True RSI filters raw market data through a multi-dimensional momentum matrix:

Temporal Trend Weighting: The algorithm continuously tracks how recently the market has formed local highs and lows. Gains are mathematically weighted against the strength of the upward cycle, while losses are weighted against the strength of the downward cycle.

Cycle-Weighted Ratio: The accumulated, time-weighted gains and losses are calculated over your lookback period to establish a true relative strength ratio. If gains occur during an actively surging upward cycle, they are heavily amplified; if they occur during a dying trend, they are heavily discounted.

Smoothing and Normalization: This ratio is translated into a normalized scale bounded between 0 and 100, providing an incredibly smooth yet responsive oscillator curve alongside a secondary momentum velocity histogram.

Key Features

Time-Weighted Velocity: True RSI prevents premature exhaustion signals during strong, healthy trends because it understands the cyclical age of the current market move.

On-Chart Candle Morphing: The system automatically tracks the oscillator state and alters the colors of your main price bars to keep you visually aligned with the macro trend.

Overlay Execution Labels: Prints pristine Long and Short labels directly on your price pane the moment the underlying structural momentum shifts past your designated thresholds.

Internal Divergence Histogram: Built directly behind the main oscillator is a custom acceleration histogram that monitors the rate of change of the index, pinpointing hidden momentum shifts before they reflect in the price.

Input Parameters & Optimization Guide

Lookback Period: Controls the baseline window for both the cycle-strength calculations and the price change evaluations. A default of 21 bars balances macro trend stability with immediate short-term utility.

Long / Short Thresholds: The structural boundaries that dictate trend shifts. By default, crossing above 50 signals a bullish regime, while dropping below 50 initiates a bearish regime.

Overbought / Oversold Thresholds: Tailored extremes designed to isolate true premium and discount zones. The default 80 and 20 boundaries act as high-probability mean-reversion targets.

Trading Strategies & Execution

Trend Regime Shift
When momentum builds structural backing, the indicator updates its trend state:

A crossing of the True RSI above the Long Threshold triggers a green Long label on the chart, changing candle colors to vibrant green.

A crossing of the True RSI below the Short Threshold triggers a pink Short label, shifting candle colors to pink.

Exhaustion Reversals
Because price movement is weighted against cycle time, entering the overbought (80) or oversold (20) zones represents a market that is genuinely overstretched both in terms of price velocity and time. Reversals from these zones carry high statistical significance for counter-trend scalps or trailing-stop targets.

Acceleration Divergences
Watch the central histogram centered around the 50 line. When the price is grinding flat but the histogram starts to rise or fall aggressively, it shows that the internal speed of the True RSI is accelerating. This hidden momentum often foreshadows explosive breakout expansions.

Disclaimer: Trading financial markets involves high risk. This technical script is designed as an informational analytical tool to support your rule-based mechanical execution system and does not constitute financial advice.

Declinazione di responsabilità

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.