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.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.