OPEN-SOURCE SCRIPT
Updated FVG Detector (v2) STEW

FVGs with alerts
searches 15min, 30 min, 1 hr, 4 hr
searches 15min, 30 min, 1 hr, 4 hr
Release Notes
Newest update allows for alerts on 15,20,1hr,4hr timesheetsRelease Notes
This custom Pine Script detects Fair Value Gaps (FVGs) across multiple timeframes:⏱ 15m, 30m, 1H, and 4H
🟢 Bullish FVGs (price gaps to the upside)
🔴 Bearish FVGs (price gaps to the downside)
⚠️ Optional display of Disrespected FVGs (when price breaks through a zone)
Each FVG is drawn with colored boxes and labeled by timeframe. The script automatically manages box limits per timeframe to keep your chart clean.
✅ Features
Real-time detection of bullish/bearish FVGs
Fully customizable styling and timeframes
Auto-deletion of old FVGs (based on user-defined max)
Push notification alerts when a new FVG appears — only after the candle fully closes
Optional detection of disrespected (invalidated) FVGs
🔔 Alerts
This script includes built-in alerts for new FVGs on each timeframe:
"Bullish FVG (15m)", "Bearish FVG (30m)", etc.
Works with TradingView mobile push notifications
Alerts trigger only after candle close (no early alerts)
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.