OPEN-SOURCE SCRIPT

RSI Probability Matrix [ChartPrime]

30 716
RSI Probability Matrix [ChartPrime]

🔶 OVERVIEW

Traders frequently rely on rigid, fixed overbought and oversold thresholds for the Relative Strength Index, ignoring how historical price action actually responds at different momentum levels. The RSI Probability Matrix [ChartPrime] introduces a statistical learning engine to your charts. It tracks and measures real-time trade outcomes across 10-point RSI brackets, turning historical momentum reactions into actionable win-rate probabilities.

Instead of guessing whether an overbought or oversold signal holds weight, this indicator dynamically evaluates success and failure rates using an ATR-based target and stop-loss matrix.

🔶 HOW IT WORKS

The indicator executes its statistical and tracking workflow through a multi-stage architecture:

  • Dynamic Momentum Engine: Calculates a standard RSI and smoothed signal line pair, backed by an Average True Range (ATR) volatility measurement to size structural targets and stops.
  • Real-Time Trade Tracking Array: Maintains live arrays spanning all 101 RSI index values (0 to 100), recording historical win and loss outcomes whenever buy or sell crossover triggers are hit.
  • ATR-Based Risk Framework: When an oversold buy or overbought sell signal triggers, the engine projects dynamic target and stop-loss levels based on a custom multiplier of the current ATR value.
  • Probability Matrix Dashboard: Aggregates the tracked data into 10-point bracket intervals, calculating real-time win percentages for both buy and sell directions across the entire chart history.


🔶 KEY FEATURES

  • Statistical Matrix Table: A clean, configurable dashboard displaying detailed trade counts and directional win probabilities broken down across structured RSI bands.
  • Automated Signal & Outcome Markers: Pins clear entry badges onto the chart along with success (✅) or failure (❌) markers when trades hit their target or stop parameters.
  • Gradient Color Customization: Fluidly shifts RSI line colors across customizable bullish and bearish palettes depending on prevailing momentum zones.
  • Flexible Target Management: Full control over ATR lookback periods, multiplier thresholds, and overbought/oversold trigger boundaries to fit your strategy.


🔶 TRADING APPLICATIONS

  • Probability-Weighted Entries: Before taking a trade at a specific RSI level, check the dashboard matrix to see the historical win percentage for that exact momentum bracket. Only take setups backed by favorable statistical odds.
  • Objective Risk-to-Reward Execution: Utilize the automated ATR target and stop lines to enforce disciplined trade management, allowing the probability engine to accurately record wins and losses.
  • Momentum Exhaustion Filtering: Combine overbought or oversold crossovers with the matrix summary totals to identify which RSI zones hold the strongest historical defense from institutional participants.


🔶 SETTINGS

  • Indicator Settings (RSI Length / Signal / OB-OS Levels): Controls the core lookback periods and the boundary thresholds required to trigger buy and sell signals.
  • Target & Stop Settings (ATR Length / Multiplier): Adjusts the volatility distance used to calculate structural profit targets and stop-loss zones.
  • Dashboard Settings (Visibility / Position / Size): Configures the placement and layout of the real-time statistical probability matrix table on your workspace.


🔶 CONCLUSION

The RSI Probability Matrix [ChartPrime] removes the guesswork from momentum trading. By dynamically tracking and grading historical trade success across customized RSI bands, it gives you a data-driven edge built entirely on real market feedback.

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.