OPEN-SOURCE SCRIPT
FVG (stormbey)

📊 Overview
This indicator automatically detects and displays Fair Value Gaps (FVG) across multiple timeframes simultaneously on a single chart. FVGs are imbalances in price action that often act as support/resistance zones where price tends to return.
🎯 Key Features
• Multi-Timeframe Analysis: Monitor up to 5 different timeframes at once (Chart, 15m, 1H, 4H, Daily)
• Smart Timeframe Filtering: Automatically hides FVGs from lower timeframes than your current chart (e.g., on Daily chart, only Daily FVGs are shown)
• Inverse FVG Detection (iFVG): Optionally display inverse FVGs when original gaps are filled
• Customizable Labels: Labels displayed inside boxes showing timeframe origin
• Auto-Delete on Fill: Boxes automatically removed when price fills the gap
• Flexible Fill Detection: Choose between Close or Wick-based fill detection
⚙️ Settings
TIMEFRAMES
- Enable/disable each of the 5 timeframes independently
- Default: Chart, 15m, 1H, 4H, Daily
FVG SETTINGS
- Wait for candle close to identify FVGs
- Hide FVGs lower than current chart timeframe
- Show/Hide regular FVG and inverse FVG (iFVG)
- Filled FVG Type: Close, Wick, or None
- Max bars back to search for FVGs
LABEL SETTINGS
- Show/Hide labels
- Customize label text for each timeframe
- Label distance adjustment for extended boxes
BOX SETTINGS
- Delete boxes after fill
- Extend boxes to current bar
- Adjustable box length
- Separate colors for Bullish/Bearish FVG and iFVG
BORDER SETTINGS
- Border style: Solid, Dashed, Dotted, None
- Border width customization
- Separate border colors for FVG and iFVG
📈 How to Use
1. Add the indicator to your chart
2. Enable the timeframes you want to monitor
3. FVG boxes will automatically appear showing imbalances
4. Green boxes = Bullish FVG (potential support)
5. Red boxes = Bearish FVG (potential resistance)
6. Use these zones for potential entry/exit points
💡 Trading Tips
- Higher timeframe FVGs are generally more significant
- FVGs often get "filled" before price continues in the original direction
- Combine with other confluence factors (S/R levels, order blocks, trend)
- Use iFVG feature to spot when gaps flip from support to resistance (or vice versa)
⚠️ Disclaimer
This indicator is for educational purposes only. Always do your own research and use proper risk management. Past performance does not guarantee future results.
---
If you find this indicator helpful, please leave a like and follow for more trading tools!
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.