OPEN-SOURCE SCRIPT

MW - ICT Open Range Gap

706
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.

Thông báo miễn trừ trách nhiệm

Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.