OPEN-SOURCE SCRIPT
已更新 FVG Detector (v2) STEW

FVGs with alerts
searches 15min, 30 min, 1 hr, 4 hr
searches 15min, 30 min, 1 hr, 4 hr
版本注释
Newest update allows for alerts on 15,20,1hr,4hr timesheets版本注释
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)
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。