OPEN-SOURCE SCRIPT

Every Hour 1st FVG vTDL

94
Every Hour 1st FVG vTDL


For more information on how to trade FVG's, refer to Michael J. Huddleston aka The Inner Circle Trader as he is the guy who invented the concept after all.
x.com/I_Am_The_ICT
youtube.com/@InnerCircleTrader

I'm just vibing plz dont take down my indicator pinescript people plz and thank you


What It Shows:
This indicator displays the first Fair Value Gap (FVG) that appears during each hourly session, based on lower timeframe price action.
Core Concept:
Fair Value Gap (FVG) Detection:
Uses a 3-candle pattern to detect price gaps
Key Features:
1. Hourly Time-Based Filtering:
Divides the trading day into hourly blocks
Shows ONLY the first FVG(s) that appear in each hour
Resets tracking at the start of each new hour
Uses America/New_York timezone
2. Two Display Modes:
"First Only": Shows whichever FVG appears first per hour (bullish OR bearish)
Once one box appears, no more boxes for that hour
"Show Both": Shows first bullish AND first bearish FVG per hour
Displays the first bull FVG + the first bear FVG independently
3. Multi-Timeframe Support:
Lower Timeframe Selection: Choose 15-second, 1-minute, or 5-minute FVG detection
Works on ANY chart timeframe:
On 1-min chart: Uses direct candle data
On higher timeframes (5-min, 15-min, hourly, etc.): Fetches lower timeframe data to detect gaps

NOTE: YOU CAN NOT GO LOWER THAN THE TIME FRAME SELECTED FOR FVG IT WILL NOT WORK BECAUSE WE ARE REQUESTING DATA FROM A LOWER TIME FRAME, IF YOU ARE LOWER THAN THAT TIME FRAME YOU WILL GET:
Error on bar 0: The chart's timeframe must be greater or equal to the timeframe used with `request.security_lower_tf()`.

4. Visual Display:
Colored boxes mark the FVG zones:
Blue (default) = Bullish FVG
Red (default) = Bearish FVG
Box positioning:
Left edge: When the FVG formed
Right edge: End of that hour (HH:59:59)
Height: The actual gap size
5. Size Filtering:
Minimum gap size setting (default: 4 ticks)
Filters out tiny, insignificant gaps


Trading Logic Behind It:
The indicator helps identify the first imbalance of each hour by:
Highlighting where price moved too fast, leaving imbalances
Traders watch these zones for setups and entry models

Wyłączenie odpowiedzialności

Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.