OPEN-SOURCE SCRIPT
RSI Extremes

RSI Extremes — Educational Indicator (Pine v5)
Per-Tick Dual-RSI Extremes · Real-Time Visualization · Cooldown Logic
Overview
RSI Extremes is a real-time educational indicator built to show where the Relative Strength Index (RSI) reaches its most extreme levels during every tick of live price action.
Instead of using only the candle close, it continuously tracks both RSI(low) and RSI(high) to reveal how deeply each bar stretches into demand or supply extremes.
This tool is meant solely for study and visualization, helping you understand how RSI behaves intrabar when price wicks expand. It produces no signals, no alerts, and no trade suggestions — it’s a microscope for momentum pressure.
Core Idea
Standard RSI hides a lot of the wick-based stress in price because it calculates from close values only.
RSI Extremes solves this by splitting the measurement into two perspectives:
RSI of LOW (green) → shows how far momentum falls into potential demand exhaustion.
RSI of HIGH (red) → shows how far momentum extends into potential supply exhaustion.
Seeing both together exposes the full oscillation envelope — what RSI looks like between candle opens and closes, not just after the fact.
What Gets Plotted
RSI (Low) — green line representing intrabar downside pressure.
RSI (High) — red line representing intrabar upside pressure.
RSI Ghost (Smoothed) — gray line for soft context only.
Bands: 30 / 50 / 70 visual guides with a shaded 30–70 region.
Markers:
Enter marker when RSI(low) ≤ levelEnter (default 15).
Exit marker when RSI(high) ≥ levelExit (default 85).
Markers appear in real time as soon as a touch occurs and are locked per bar to avoid duplicates.
Inputs & Educational Purpose
Input Description Learning Focus
Source (for ghost smoother) Data used for the ghost RSI. Observe RSI smoothing lag.
RSI Length Period for both RSI(high) and RSI(low). Shorter = faster reaction; longer = smoother.
RSI-based MA Length (ghost) Smoothing for the ghost line. Compare sharp vs smoothed RSI rhythm.
levelEnter (touch or below) Default 15. Study how deep RSI(low) falls during market stress.
levelExit (touch or above) Default 85. Study how high RSI(high) rises during momentum bursts.
Rest period (bars) Cooldown after any event. Encourages post-event observation and prevents overlap.
Real-Time Behavior
Evaluates conditions per tick, not only at bar close.
Uses both real-time detection and bar-close backup for reliability.
Employs per-bar locks to prevent duplicate markers.
Integrates a cooldown so new markers only appear after the rest period.
The result is a clean, stable display of RSI stress points in live price motion — no flicker, no repaint.
How to Study with RSI Extremes
Watch how Enter markers form during sharp sell wicks — these highlight where intrabar RSI(low) dives into extreme territory.
Watch how Exit markers appear during aggressive tops — these show when RSI(high) surges beyond its upper boundary.
Compare both lines to the gray ghost: if the ghost is rising while Enter markers print, you’re seeing a temporary overshoot within strengthening momentum; if it’s falling while Exit markers print, you’re seeing supply exhaustion in weakening momentum.
Use cooldown spacing to examine how long markets take to recover or consolidate after an extreme tick.
Educational Value
Learn how RSI behaves inside a candle rather than only at its close.
Visualize how volatility affects the amplitude of RSI swings.
Understand that extremes don’t mean reversal — they measure intensity, not direction.
Build intuition for momentum saturation and liquidity hunts.
This indicator turns RSI into a real-time stress monitor rather than a delayed oscillator.
Category & Tags
Category: Indicator → Momentum (or Indicator → Educational / Research)
Tags: indicator, rsi, momentum, extremes, enter-exit, levelenter, levelexit, realtime, educational, research, visualization, pine-v5
Disclaimer
This indicator is intended exclusively for educational and research purposes.
It does not issue trade signals or financial advice.
All market activity carries risk; use this tool to learn, not to predict or execute trades.
Per-Tick Dual-RSI Extremes · Real-Time Visualization · Cooldown Logic
Overview
RSI Extremes is a real-time educational indicator built to show where the Relative Strength Index (RSI) reaches its most extreme levels during every tick of live price action.
Instead of using only the candle close, it continuously tracks both RSI(low) and RSI(high) to reveal how deeply each bar stretches into demand or supply extremes.
This tool is meant solely for study and visualization, helping you understand how RSI behaves intrabar when price wicks expand. It produces no signals, no alerts, and no trade suggestions — it’s a microscope for momentum pressure.
Core Idea
Standard RSI hides a lot of the wick-based stress in price because it calculates from close values only.
RSI Extremes solves this by splitting the measurement into two perspectives:
RSI of LOW (green) → shows how far momentum falls into potential demand exhaustion.
RSI of HIGH (red) → shows how far momentum extends into potential supply exhaustion.
Seeing both together exposes the full oscillation envelope — what RSI looks like between candle opens and closes, not just after the fact.
What Gets Plotted
RSI (Low) — green line representing intrabar downside pressure.
RSI (High) — red line representing intrabar upside pressure.
RSI Ghost (Smoothed) — gray line for soft context only.
Bands: 30 / 50 / 70 visual guides with a shaded 30–70 region.
Markers:
Enter marker when RSI(low) ≤ levelEnter (default 15).
Exit marker when RSI(high) ≥ levelExit (default 85).
Markers appear in real time as soon as a touch occurs and are locked per bar to avoid duplicates.
Inputs & Educational Purpose
Input Description Learning Focus
Source (for ghost smoother) Data used for the ghost RSI. Observe RSI smoothing lag.
RSI Length Period for both RSI(high) and RSI(low). Shorter = faster reaction; longer = smoother.
RSI-based MA Length (ghost) Smoothing for the ghost line. Compare sharp vs smoothed RSI rhythm.
levelEnter (touch or below) Default 15. Study how deep RSI(low) falls during market stress.
levelExit (touch or above) Default 85. Study how high RSI(high) rises during momentum bursts.
Rest period (bars) Cooldown after any event. Encourages post-event observation and prevents overlap.
Real-Time Behavior
Evaluates conditions per tick, not only at bar close.
Uses both real-time detection and bar-close backup for reliability.
Employs per-bar locks to prevent duplicate markers.
Integrates a cooldown so new markers only appear after the rest period.
The result is a clean, stable display of RSI stress points in live price motion — no flicker, no repaint.
How to Study with RSI Extremes
Watch how Enter markers form during sharp sell wicks — these highlight where intrabar RSI(low) dives into extreme territory.
Watch how Exit markers appear during aggressive tops — these show when RSI(high) surges beyond its upper boundary.
Compare both lines to the gray ghost: if the ghost is rising while Enter markers print, you’re seeing a temporary overshoot within strengthening momentum; if it’s falling while Exit markers print, you’re seeing supply exhaustion in weakening momentum.
Use cooldown spacing to examine how long markets take to recover or consolidate after an extreme tick.
Educational Value
Learn how RSI behaves inside a candle rather than only at its close.
Visualize how volatility affects the amplitude of RSI swings.
Understand that extremes don’t mean reversal — they measure intensity, not direction.
Build intuition for momentum saturation and liquidity hunts.
This indicator turns RSI into a real-time stress monitor rather than a delayed oscillator.
Category & Tags
Category: Indicator → Momentum (or Indicator → Educational / Research)
Tags: indicator, rsi, momentum, extremes, enter-exit, levelenter, levelexit, realtime, educational, research, visualization, pine-v5
Disclaimer
This indicator is intended exclusively for educational and research purposes.
It does not issue trade signals or financial advice.
All market activity carries risk; use this tool to learn, not to predict or execute trades.
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。