OPEN-SOURCE SCRIPT
FVG Alert Indicator

FVG Alert Indicator – Confirmed Fair Value Gaps with Auto-Fill Cleanup
This indicator detects and marks Fair Value Gaps (FVGs) — the price imbalance left when a sharp move causes a gap between the high of one candle and the low of a candle two bars later (or vice versa for bearish gaps).
Key features:
Confirmed signals only — Unlike many FVG scripts, this indicator waits for the third candle to fully close before marking a gap as "formed." This eliminates false/early alerts that fire mid-bar before the pattern is actually complete.
Clean visual zones — Each FVG is plotted as a borderless, semi-transparent fill box so the zone is easy to read without cluttering your chart with extra outlines.
Auto-fill removal — Once price trades back through a gap and fills it, the zone is automatically deleted from the chart. Only live, unfilled FVGs remain visible, so you're always looking at gaps that are still relevant.
Minimal markers — Small, clean arrow icons mark exactly where each bullish or bearish FVG formed, without the bulkier triangle shapes used by default.
Built-in alerts — Set alerts for bullish or bearish FVG formation and get notified the moment a gap is confirmed — no more, no less.
How it works:
A bullish FVG forms when the low of the current candle is above the high of the candle two bars back, leaving an unfilled gap below price. A bearish FVG is the mirror case. This script tracks every gap individually, extending the zone bar-by-bar until price returns to fill it, at which point the zone is removed.
Best used for:
Identifying imbalance zones that price is statistically likely to revisit, spotting potential support/resistance from gap fills, and combining with your own trend or structure analysis for entries/exits.
This indicator detects and marks Fair Value Gaps (FVGs) — the price imbalance left when a sharp move causes a gap between the high of one candle and the low of a candle two bars later (or vice versa for bearish gaps).
Key features:
Confirmed signals only — Unlike many FVG scripts, this indicator waits for the third candle to fully close before marking a gap as "formed." This eliminates false/early alerts that fire mid-bar before the pattern is actually complete.
Clean visual zones — Each FVG is plotted as a borderless, semi-transparent fill box so the zone is easy to read without cluttering your chart with extra outlines.
Auto-fill removal — Once price trades back through a gap and fills it, the zone is automatically deleted from the chart. Only live, unfilled FVGs remain visible, so you're always looking at gaps that are still relevant.
Minimal markers — Small, clean arrow icons mark exactly where each bullish or bearish FVG formed, without the bulkier triangle shapes used by default.
Built-in alerts — Set alerts for bullish or bearish FVG formation and get notified the moment a gap is confirmed — no more, no less.
How it works:
A bullish FVG forms when the low of the current candle is above the high of the candle two bars back, leaving an unfilled gap below price. A bearish FVG is the mirror case. This script tracks every gap individually, extending the zone bar-by-bar until price returns to fill it, at which point the zone is removed.
Best used for:
Identifying imbalance zones that price is statistically likely to revisit, spotting potential support/resistance from gap fills, and combining with your own trend or structure analysis for entries/exits.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。