OPEN-SOURCE SCRIPT
RTH Gap (Dynamic Mitigation) Silent

RTH Gap (Dynamic Mitigation) Silent
A professional Real-Time Regular Trading Hours (RTH) Gap indicator that dynamically tracks gap mitigation, visualizes fill progress, and automatically manages completed gaps.
Unlike traditional gap indicators that simply mark the opening gap, RTH Gap (Dynamic Mitigation) Silent continuously updates each gap throughout the trading session, showing exactly how much of the gap has been filled while dynamically adjusting the visualization as price trades into it.
Designed for traders who monitor opening gaps as liquidity targets, the indicator provides an intuitive view of gap mitigation without cluttering the chart.
What the indicator does
At the Regular Trading Hours open, the script automatically detects the price gap between the previous RTH close and the current session open.
It then:
Draws the gap zone
Tracks how deeply price has entered the gap
Calculates the percentage of mitigation
Shrinks the remaining unfilled gap in real time
Visually highlights the filled portion
Detects when the gap has been completely filled
Optionally removes completed gaps automatically
This allows traders to instantly recognize whether a gap remains a valid liquidity target or has already been mitigated.
Main Features
Automatic RTH Gap Detection
The indicator automatically identifies opening gaps using the previous Regular Trading Hours close and the current market open.
Supports both:
Gap Up
Gap Down
Gap calculations are performed automatically every trading day.
Dynamic Gap Boxes
Each detected gap is displayed as a visual price zone.
Features include:
Custom colors
Adjustable transparency
Custom borders
Configurable number of historical gaps
Optional day labels
Optional right-side extension
Gap boxes can remain fixed or continuously extend throughout the trading session.
Real-Time Gap Mitigation
Unlike static gap indicators, the remaining gap continuously updates as price trades into it.
As price penetrates the gap:
The remaining gap shrinks
The filled portion expands
Fill calculations never reverse once mitigation occurs
The display reflects the true remaining imbalance
This provides a clear visual representation of how much liquidity remains inside the opening gap.
Live Gap Fill Percentage
The indicator continuously calculates the percentage of the gap that has been mitigated.
Features include:
Live percentage updates
Floating fill label
Adjustable colors
Automatic completion detection
The label always follows the current mitigation boundary, making fill progress easy to monitor in real time.
Gap Midline
Each gap includes an optional midpoint reference.
Features include:
Custom colors
Multiple line styles
Midline labels
Automatic fading after price crosses the midpoint
Once half of the gap has been mitigated, the midline can automatically change appearance to indicate that the 50% level has been reached.
Previous RTH Close Levels
The indicator can display the previous Regular Trading Hours closing price used to create each gap.
Features include:
Previous RTH close line
Price labels
Adjustable styles
Multiple historical close levels
Optional right-side extension
This provides an additional reference for traders monitoring daily opening auctions and gap behavior.
Automatic Gap Completion
When price completely fills the opening gap, the indicator can:
Automatically delete the completed gap
Leave it visible with a mitigated appearance
Display a completion confirmation
This keeps the chart focused on active, actionable gaps while preserving flexibility for historical analysis.
Flexible Session Timing
Users can adjust both the opening and closing reference times using configurable minute offsets.
This allows the indicator to adapt to:
Different broker feeds
Futures markets
Custom exchange schedules
while maintaining accurate gap calculations.
Designed For
RTH Gap (Dynamic Mitigation) Silent is ideal for traders who focus on:
Opening gap strategies
Smart Money Concepts (SMC)
ICT methodologies
Intraday trading
Liquidity-based execution
Futures
ETFs
Equities
Index products
Key Benefits
Automatically detects daily RTH opening gaps
Tracks gap mitigation in real time
Dynamically shrinks remaining gap zones
Displays live gap fill percentages
Includes optional midpoint reference with adaptive styling
Tracks previous RTH closing prices
Automatically manages completed gaps
Fully customizable appearance and historical display settings
Overall, this is best described as a dynamic opening-gap management tool rather than a standard gap indicator. Instead of simply marking where a gap occurred, it transforms each gap into a live, evolving liquidity zone, allowing traders to monitor mitigation progress and quickly identify which gaps remain active and which have already been fully filled.
A professional Real-Time Regular Trading Hours (RTH) Gap indicator that dynamically tracks gap mitigation, visualizes fill progress, and automatically manages completed gaps.
Unlike traditional gap indicators that simply mark the opening gap, RTH Gap (Dynamic Mitigation) Silent continuously updates each gap throughout the trading session, showing exactly how much of the gap has been filled while dynamically adjusting the visualization as price trades into it.
Designed for traders who monitor opening gaps as liquidity targets, the indicator provides an intuitive view of gap mitigation without cluttering the chart.
What the indicator does
At the Regular Trading Hours open, the script automatically detects the price gap between the previous RTH close and the current session open.
It then:
Draws the gap zone
Tracks how deeply price has entered the gap
Calculates the percentage of mitigation
Shrinks the remaining unfilled gap in real time
Visually highlights the filled portion
Detects when the gap has been completely filled
Optionally removes completed gaps automatically
This allows traders to instantly recognize whether a gap remains a valid liquidity target or has already been mitigated.
Main Features
Automatic RTH Gap Detection
The indicator automatically identifies opening gaps using the previous Regular Trading Hours close and the current market open.
Supports both:
Gap Up
Gap Down
Gap calculations are performed automatically every trading day.
Dynamic Gap Boxes
Each detected gap is displayed as a visual price zone.
Features include:
Custom colors
Adjustable transparency
Custom borders
Configurable number of historical gaps
Optional day labels
Optional right-side extension
Gap boxes can remain fixed or continuously extend throughout the trading session.
Real-Time Gap Mitigation
Unlike static gap indicators, the remaining gap continuously updates as price trades into it.
As price penetrates the gap:
The remaining gap shrinks
The filled portion expands
Fill calculations never reverse once mitigation occurs
The display reflects the true remaining imbalance
This provides a clear visual representation of how much liquidity remains inside the opening gap.
Live Gap Fill Percentage
The indicator continuously calculates the percentage of the gap that has been mitigated.
Features include:
Live percentage updates
Floating fill label
Adjustable colors
Automatic completion detection
The label always follows the current mitigation boundary, making fill progress easy to monitor in real time.
Gap Midline
Each gap includes an optional midpoint reference.
Features include:
Custom colors
Multiple line styles
Midline labels
Automatic fading after price crosses the midpoint
Once half of the gap has been mitigated, the midline can automatically change appearance to indicate that the 50% level has been reached.
Previous RTH Close Levels
The indicator can display the previous Regular Trading Hours closing price used to create each gap.
Features include:
Previous RTH close line
Price labels
Adjustable styles
Multiple historical close levels
Optional right-side extension
This provides an additional reference for traders monitoring daily opening auctions and gap behavior.
Automatic Gap Completion
When price completely fills the opening gap, the indicator can:
Automatically delete the completed gap
Leave it visible with a mitigated appearance
Display a completion confirmation
This keeps the chart focused on active, actionable gaps while preserving flexibility for historical analysis.
Flexible Session Timing
Users can adjust both the opening and closing reference times using configurable minute offsets.
This allows the indicator to adapt to:
Different broker feeds
Futures markets
Custom exchange schedules
while maintaining accurate gap calculations.
Designed For
RTH Gap (Dynamic Mitigation) Silent is ideal for traders who focus on:
Opening gap strategies
Smart Money Concepts (SMC)
ICT methodologies
Intraday trading
Liquidity-based execution
Futures
ETFs
Equities
Index products
Key Benefits
Automatically detects daily RTH opening gaps
Tracks gap mitigation in real time
Dynamically shrinks remaining gap zones
Displays live gap fill percentages
Includes optional midpoint reference with adaptive styling
Tracks previous RTH closing prices
Automatically manages completed gaps
Fully customizable appearance and historical display settings
Overall, this is best described as a dynamic opening-gap management tool rather than a standard gap indicator. Instead of simply marking where a gap occurred, it transforms each gap into a live, evolving liquidity zone, allowing traders to monitor mitigation progress and quickly identify which gaps remain active and which have already been fully filled.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.