OPEN-SOURCE SCRIPT
Mis à jour Macro & Hourly 1st P.FVG

This indicator highlights key intraday Macro time windows and Fair Value Gaps (FVGs) to help traders identify session-specific liquidity zones and directional bias on lower timeframes.
Macro Sessions
Visualizes 24 specific intraday Macro periods in America/New_York timezone (e.g., 02:50–03:10, 08:50–09:10, 09:50–10:10, up through 01:50–02:10).
Each enabled session draws an expanding box that captures the actual high/low range during that window.
Options include showing/hiding the box, text labels, and hour identifiers, plus full per-session toggles and a unified Macro box color with adjustable opacity.
Fair Value Gaps Inside Macro Sessions
Automatically detects FVGs that form within the active Macro windows.
1st Presented Hourly FVG
A dedicated hourly feature that plots the very first FVG presented in each hour.
Logic is tied exclusively to the middle candle (bar[1]) of the FVG formation, ensuring the FVG is assigned to the correct hour.
Up-closed middle candles (close[1] > open[1]) receive one color; down-closed middle candles receive another.
Boxes extend to the end of the hour and include an optional midpoint line.
The indicator is optimized for timeframes of 15 minutes and below (including seconds) and works best during active trading hours. All visual elements, colors, extensions, and session filters are fully customizable in the settings panel, allowing users to tailor the display to their specific trading style and market focus.
Macro Sessions
Visualizes 24 specific intraday Macro periods in America/New_York timezone (e.g., 02:50–03:10, 08:50–09:10, 09:50–10:10, up through 01:50–02:10).
Each enabled session draws an expanding box that captures the actual high/low range during that window.
Options include showing/hiding the box, text labels, and hour identifiers, plus full per-session toggles and a unified Macro box color with adjustable opacity.
Fair Value Gaps Inside Macro Sessions
Automatically detects FVGs that form within the active Macro windows.
1st Presented Hourly FVG
A dedicated hourly feature that plots the very first FVG presented in each hour.
Logic is tied exclusively to the middle candle (bar[1]) of the FVG formation, ensuring the FVG is assigned to the correct hour.
Up-closed middle candles (close[1] > open[1]) receive one color; down-closed middle candles receive another.
Boxes extend to the end of the hour and include an optional midpoint line.
The indicator is optimized for timeframes of 15 minutes and below (including seconds) and works best during active trading hours. All visual elements, colors, extensions, and session filters are fully customizable in the settings panel, allowing users to tailor the display to their specific trading style and market focus.
Notes de version
Fixed FVG Size calculation to include any volume imbalances.Notes de version
1. Added option to show the 1st Presented Hourly FVG vs both 1st Presented BISI and SIBI.2. Added Lookback option for a cleaner look. Default = 1
3. Deleted erroneous code.
Notes de version
1. Added 2am, 10am, and 2pm Silver Bullets (1st Hourly FVG) as separate toggles apart from the other Hourly 1st Presented Fair Value Gaps.2. Added separate toggles for 09:50 and 10:50 macro 1st P.FVG
3. Cleaned up input code.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.