OPEN-SOURCE SCRIPT
Updated 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.
Release Notes
Fixed FVG Size calculation to include any volume imbalances.Release Notes
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.
Release Notes
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.