OPEN-SOURCE SCRIPT
MW - ICT Open Range Gap

MW - ICT Open Range Gap
Displays two key ICT concepts anchored to the RTH session transition: the Open Range Gap and the 1st Fair Value Gap of the New York morning session.
─────────────────────────────
RTH OPEN RANGE GAP
─────────────────────────────
Visualizes the price gap between the previous session close (~4:14 PM ET) and the RTH open (9:30 AM ET). The zone is subdivided into Premium (upper half) and Discount (lower half) relative to the 50% CE, with optional 25/75% quadrant lines and 0/1 boundary labels.
Direction-aware: Premium and Discount placement adapts automatically depending on whether the gap is bullish or bearish.
Mitigation tracking: the gap is considered mitigated when price closes at or beyond the 50% CE (Consequent Encroachment), consistent with ICT delivery principles. Once mitigated, the fill fades to a neutral color. Mitigation is monitored continuously across all visible gaps, not just the current session.
Unmitigated gaps can optionally be extended forward across subsequent sessions until the CE is reached. Boundary labels display the originating date in DD.MM format (e.g. "0 - 08.04" / "1 - 08.04") for past sessions.
─────────────────────────────
1st FVG (9:31 – 12:00 NY)
─────────────────────────────
Detects the first 3-bar Fair Value Gap formed on the 1-minute timeframe within the New York morning window. Computed via request.security_lower_tf for consistency on higher timeframes. Displays border, CE (50%), and 25/75% quadrant lines. Optional extension for Monday's FVG and/or all FVGs within the current trading week.
─────────────────────────────
SETTINGS
─────────────────────────────
• Configurable history depth (days)
• Right-side padding
• Disable above a chosen timeframe
• Independent color controls for all zone elements
• Mitigated fill color
• All extends off by default
─────────────────────────────
CREDIT
─────────────────────────────
Rewritten from scratch, inspired by the original concept from fadizeidan's "ICT Open Range Gap & 1st FVG" (fr.tradingview.com/script/gRgzwdXI-ICT-Open-Range-Gap-1st-FVG-fadi/).
Built in Pine Script v6.
Displays two key ICT concepts anchored to the RTH session transition: the Open Range Gap and the 1st Fair Value Gap of the New York morning session.
─────────────────────────────
RTH OPEN RANGE GAP
─────────────────────────────
Visualizes the price gap between the previous session close (~4:14 PM ET) and the RTH open (9:30 AM ET). The zone is subdivided into Premium (upper half) and Discount (lower half) relative to the 50% CE, with optional 25/75% quadrant lines and 0/1 boundary labels.
Direction-aware: Premium and Discount placement adapts automatically depending on whether the gap is bullish or bearish.
Mitigation tracking: the gap is considered mitigated when price closes at or beyond the 50% CE (Consequent Encroachment), consistent with ICT delivery principles. Once mitigated, the fill fades to a neutral color. Mitigation is monitored continuously across all visible gaps, not just the current session.
Unmitigated gaps can optionally be extended forward across subsequent sessions until the CE is reached. Boundary labels display the originating date in DD.MM format (e.g. "0 - 08.04" / "1 - 08.04") for past sessions.
─────────────────────────────
1st FVG (9:31 – 12:00 NY)
─────────────────────────────
Detects the first 3-bar Fair Value Gap formed on the 1-minute timeframe within the New York morning window. Computed via request.security_lower_tf for consistency on higher timeframes. Displays border, CE (50%), and 25/75% quadrant lines. Optional extension for Monday's FVG and/or all FVGs within the current trading week.
─────────────────────────────
SETTINGS
─────────────────────────────
• Configurable history depth (days)
• Right-side padding
• Disable above a chosen timeframe
• Independent color controls for all zone elements
• Mitigated fill color
• All extends off by default
─────────────────────────────
CREDIT
─────────────────────────────
Rewritten from scratch, inspired by the original concept from fadizeidan's "ICT Open Range Gap & 1st FVG" (fr.tradingview.com/script/gRgzwdXI-ICT-Open-Range-Gap-1st-FVG-fadi/).
Built in Pine Script v6.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。