OPEN-SOURCE SCRIPT
Cozy 1st FVG [MMT]

Cozy 1st FVG [MMT] automatically detects and plots the first Fair Value Gap (FVG) that forms within each 3‑hour New York time interval. This tool was developed in collaboration with Cozy, and is designed to fit seamlessly into his structured, time‑based workflow.
The indicator scans any chosen timeframe and displays only the earliest bullish or bearish FVG that appears inside each 3‑hour block (00–03, 03–06, 06–09, etc.). This keeps charts clean and focused on the most meaningful displacement of each interval.
How It Works
This approach mirrors Cozy’s methodology: one high‑signal FVG per interval, no clutter.
Features
Why Use This Indicator
This tool is ideal for traders who wants a clean, time‑anchored view of the most significant FVG in each interval. By focusing on the first gap only, it reduces noise and highlights the displacement that often sets the tone for the rest of the session.
The indicator scans any chosen timeframe and displays only the earliest bullish or bearish FVG that appears inside each 3‑hour block (00–03, 03–06, 06–09, etc.). This keeps charts clean and focused on the most meaningful displacement of each interval.
How It Works
- Converts chart timestamps to New York time for consistent session segmentation.
- Resets logic at the start of every 3‑hour block.
- Identifies the first valid FVG of that interval
This approach mirrors Cozy’s methodology: one high‑signal FVG per interval, no clutter.
Features
- Multi‑timeframe FVG detection
- Bullish and bearish color customization
- Adjustable box width (fixed bars or infinite extension)
- Optional labels with timeframe and session hour
- Multiple label placement modes (inside or right‑outside)
- Automatic cleanup of older FVGs for performance
- Dynamic right‑side label positioning on live bars
Why Use This Indicator
This tool is ideal for traders who wants a clean, time‑anchored view of the most significant FVG in each interval. By focusing on the first gap only, it reduces noise and highlights the displacement that often sets the tone for the rest of the session.
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.