OPEN-SOURCE SCRIPT
RSI Reverse

RSI Reverse is an analytical tool that reverse-engineers the Relative Strength Index (RSI) to project the estimated price levels required to reach your specific Overbought (OB) and Oversold (OS) targets.
Instead of acting solely as a lagging oscillator, this script calculates the mathematical distance price needs to travel over a user-defined number of future bars to push the RSI to your desired levels. (Note: These are mathematical projections based on current calculations, intended to be used as reference levels rather than guaranteed absolute predictions.)
Here is a breakdown of the indicator's configuration:
⚙️ Core Configuration
RSI Length: The lookback period for the base RSI calculation (Default: 14).
Overbought Target (OB): The upper RSI target level you want to project a price for (e.g., 70, 80).
Oversold Target (OS): The lower RSI target level you want to project a price for (e.g., 30, 20).
⏱️ The 5-Scenario Projections (Time Horizons)
Reaching an RSI of 70 on the very next bar requires a significantly different price movement compared to reaching it gradually over 30 bars. To account for this, the script provides 5 independent and fully customizable time scenarios:
Scenario 1 to 5 (Bars): You can define the exact number of bars for each of the 5 scenarios (Default: 1, 5, 14, 30, 60 bars).
The indicator simultaneously calculates and displays the required price to hit your OB/OS targets across all 5 time horizons. This allows you to observe how the target price dynamically shifts depending on how fast or slow the market moves.
🎨 Clean UI Dashboard
To keep your charts clean from visual clutter, all 10 projected target prices are displayed in a compact, non-intrusive table.
Table Position: Choose between Top-Right, Middle-Right, or Bottom-Right to ensure it never blocks your price action.
Text Size: Adjustable from Small to Large to fit your screen setup.
🔬 Under the Hood: Accuracy & Logic
Mathematical Precision: For Scenario 1 (Next Bar), the target is a 100% mathematically exact reverse-calculation. For multi-bar scenarios, the engine does not merely divide the required movement linearly. Instead, it utilizes an advanced ATR (Average True Range) step-distribution to simulate realistic market volatility, yielding a highly logical price estimate rather than a rigid straight line.
The Analytical Limitation: It is crucial to remember that a projected target is a mathematical destination assuming current momentum is maintained. Relying purely on technical analysis from a single timeframe has inherent limitations and can expose you to market noise.
💡 Practical Application & MTFA
Multi-Timeframe Analysis (MTFA): To overcome the limitations of single-timeframe chart analysis, it is highly recommended to combine this tool with MTFA. For example, if your higher-timeframe macro structure is in a bullish trend, look to execute limit buy orders exactly at the projected Oversold (OS) levels on your lower timeframe.
Dynamic Reference Levels: Use the projected prices as dynamic areas of interest to gauge where the market might become mathematically overextended.
Confluence: Combine these projected price matrixes with your existing chart analysis (e.g., support/resistance, order flow, or liquidity blocks) to identify high-probability zones for potential take-profits or limit entries.
Instead of acting solely as a lagging oscillator, this script calculates the mathematical distance price needs to travel over a user-defined number of future bars to push the RSI to your desired levels. (Note: These are mathematical projections based on current calculations, intended to be used as reference levels rather than guaranteed absolute predictions.)
Here is a breakdown of the indicator's configuration:
⚙️ Core Configuration
RSI Length: The lookback period for the base RSI calculation (Default: 14).
Overbought Target (OB): The upper RSI target level you want to project a price for (e.g., 70, 80).
Oversold Target (OS): The lower RSI target level you want to project a price for (e.g., 30, 20).
⏱️ The 5-Scenario Projections (Time Horizons)
Reaching an RSI of 70 on the very next bar requires a significantly different price movement compared to reaching it gradually over 30 bars. To account for this, the script provides 5 independent and fully customizable time scenarios:
Scenario 1 to 5 (Bars): You can define the exact number of bars for each of the 5 scenarios (Default: 1, 5, 14, 30, 60 bars).
The indicator simultaneously calculates and displays the required price to hit your OB/OS targets across all 5 time horizons. This allows you to observe how the target price dynamically shifts depending on how fast or slow the market moves.
🎨 Clean UI Dashboard
To keep your charts clean from visual clutter, all 10 projected target prices are displayed in a compact, non-intrusive table.
Table Position: Choose between Top-Right, Middle-Right, or Bottom-Right to ensure it never blocks your price action.
Text Size: Adjustable from Small to Large to fit your screen setup.
🔬 Under the Hood: Accuracy & Logic
Mathematical Precision: For Scenario 1 (Next Bar), the target is a 100% mathematically exact reverse-calculation. For multi-bar scenarios, the engine does not merely divide the required movement linearly. Instead, it utilizes an advanced ATR (Average True Range) step-distribution to simulate realistic market volatility, yielding a highly logical price estimate rather than a rigid straight line.
The Analytical Limitation: It is crucial to remember that a projected target is a mathematical destination assuming current momentum is maintained. Relying purely on technical analysis from a single timeframe has inherent limitations and can expose you to market noise.
💡 Practical Application & MTFA
Multi-Timeframe Analysis (MTFA): To overcome the limitations of single-timeframe chart analysis, it is highly recommended to combine this tool with MTFA. For example, if your higher-timeframe macro structure is in a bullish trend, look to execute limit buy orders exactly at the projected Oversold (OS) levels on your lower timeframe.
Dynamic Reference Levels: Use the projected prices as dynamic areas of interest to gauge where the market might become mathematically overextended.
Confluence: Combine these projected price matrixes with your existing chart analysis (e.g., support/resistance, order flow, or liquidity blocks) to identify high-probability zones for potential take-profits or limit entries.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.