OPEN-SOURCE SCRIPT
Telah dikemas kini ICT 9:30am First FVG

This indicator is designed based on ICT (Inner Circle Trader)'s algorithmic price action theory, specifically targeting the first fair value gap (FVG) that forms immediately after the New York Stock Exchange opens at 9:30am. The FVG represents an imbalance in the price delivery where a significant price action gap occurs, which can play a crucial role in future price movements.
Features:
Purpose:
The first fair value gap formed after the market opens is an important algorithmic price range in ICT's price action theory. This indicator simplifies the identification of these critical gaps and helps in understanding their impact on future price action.
Features:
- Identification of First FVG: Automatically identifies and plots the first fair value gap that forms post the 9:30am NY open.
- Customizable Visualization: Choose between block or line styles for visual representation, with customizable colors and border styles.
- Date Labeling: Optionally displays date labels for each identified gap to track patterns over time.
- Imbalance Extension: Options to extend the imbalances to the current bar, helping to visualize their influence on ongoing price action.
Purpose:
The first fair value gap formed after the market opens is an important algorithmic price range in ICT's price action theory. This indicator simplifies the identification of these critical gaps and helps in understanding their impact on future price action.
Nota Keluaran
Update: Only render on timeframe <= 15m.Nota Keluaran
Added customization for how FVGs can be extended (extended to current candle, current candle + n, or to end of trading session).Nota Keluaran
Fixed:- C.E. does not fully extend to fill the box
- Added labels for lines display
Nota Keluaran
Fixed:- Timeframes other than 1m could incorrectly plot FVGs by including bars prior to 9:30am
Nota Keluaran
Update nameNota Keluaran
- Added options to show Volume Imbalances and Liquidity Voids
- Include imbalance type (FVG, VI, LV) in the label
- Organized settings with additional style options
- Fixed some calculations incorrectly showing old imbalances
Nota Keluaran
- Fixed: Incorrect float calculation could cause imbalances to extend left infinitely .
- Improvement: Gaps are now plotted based on `time` instead of `bar_index`, offering future support for different chart vs indicator timeframes (in progress).
- Improvement: Added option to include gaps (VI/LV) between candle close/open as part of the FVG calculation.
Nota Keluaran
Major UpdatesMulti-Session Support
- Upgraded from single 9:30am NY session to 6 configurable sessions
- Pre-configured: Midnight (00:00), NY AM (09:30), NY PM (13:30)
- Three additional user-defined custom sessions
- Sessions can cross midnight (e.g., 23:30-01:00)
- Each session independently tracks its first imbalance
Intelligent FVG Replacement System
- New "Prioritize Displacement" feature allows stronger FVGs to replace earlier ones
- Exponential time decay (λ) penalizes older gaps, favoring earlier session imbalances
- Grace period protects the first FVG for a configurable duration after session start
- Superiority factor requires new FVGs to exceed existing ones by a specified multiple
- ATR normalization enables fair comparison across different volatility regimes
- Option to keep replaced FVGs visible with distinct coloring
Enhanced Extension Options
- Enum-based extension modes: None, Session End, Day End, Week End
- Monday FFVG special handling: Option to extend Monday's first FVG through the entire trading week
- Previous imbalance extension: Control whether historical imbalances continue extending
Session Boundary Visualization
- Visual session boundaries with configurable start/end lines
- Session titles positioned above price action with ATR-based scaling
- Session fill colors for each configured session
Improved Label System
- Custom label patterns with placeholders:
Pine Script® {date}, {time12}, {time24}, {type} - Default formatting remains available with toggle-based customization
Technical Improvements
- Upgraded to Pine Script v6
- Type-based state management for better performance and reliability
- Improved cleanup logic based on unique trading days (accounts for weekends/holidays)
- Better code organization with comprehensive tooltips
Bug Fixes
- Fixed extension bug where only the last imbalance extended
- Improved session detection logic for all imbalance types (FVG, VI, LV)
- More accurate date-based tracking and cleanup
Nota Keluaran
- Fixed array boundary error on higher timeframe
- Fixed Monday FFVGs not extending through Friday EOD
Nota Keluaran
- Re-added support for forward offset extension
- Introduced alerts for when new imbalances are created as well as when they are retraced back into for the first time.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.