OPEN-SOURCE SCRIPT
已更新 FVG Atlas

FVG Atlas — Multi-Timeframe Gap Mapping
FVG Atlas maps Fair Value Gaps across up to four timeframe layers, helping you see nearby zones, overlapping imbalances, and how price interacts with them.
Designed around a clean 1-minute NQ workflow, its timeframes, filters, and display settings are adjustable for other charts.
Features
How gaps are tracked
A bullish FVG forms when candle 3’s low is above candle 1’s high. A bearish FVG uses the opposite relationship.
Choose when a zone retires: first touch, midpoint reached, full wick penetration, or a confirmed chart close at or beyond its far edge. Invalidation and complete filling are tracked separately.
Live mode displays developing gaps that can change or disappear. Confirmation is processed when the next candle of that timeframe begins, so session breaks can delay confirmation. Higher-timeframe candles are assembled from chart data.
Reading the signals
Third-candle classifications describe formation behavior; they do not predict continuation or a fill.
Rejection triangles mark price touching a confirmed zone and subsequently closing back outside its near edge within the configured window. They represent observed reactions, not buy/sell instructions.
The dashboard reports detected zones, active records, invalidation statistics, and completed first-touch reactions. These are descriptive statistics—not strategy win rates.
Customization
Adjust minimum gap size, timeframe layers, drawing lookback, Focus limits, session hours, labels, colors, and alerts. Drawing and record limits keep the display manageable. Session labels use a configurable clock window rather than an exchange holiday calendar.
For alerts, enable the desired events in settings and create a TradingView alert using “Any alert() function call.”
FVG Atlas maps Fair Value Gaps across up to four timeframe layers, helping you see nearby zones, overlapping imbalances, and how price interacts with them.
Designed around a clean 1-minute NQ workflow, its timeframes, filters, and display settings are adjustable for other charts.
Features
- Multi-timeframe FVGs: Track bullish and bearish gaps with independent colors and invalidation rules for each layer.
- Focus mode: Display nearby zones while hidden records continue tracking fills, reactions, and statistics.
- 50% midpoint: Show consequent encroachment and emphasize it once reached.
- Origin markers: Retain a small outline where an invalidated FVG originally formed.
- BPR and confluence: Highlight opposing-gap overlaps within a layer and overlapping FVGs across distinct timeframes.
- Session labels: Identify gaps formed during your configured regular-session window or outside it.
- Nearest-gap panel: Show the distance in points to the closest active bullish and bearish FVG.
- Third-candle classification: Describe confirmed FVG formation as Expansion, Inside, Opposing, or Neutral.
- First-touch reactions: Mark confirmed rejections and provide hover details identifying the contributing zones.
- Optional tools: Volume Imbalances, Opening Gaps, inverse FVGs, formation grading, and configurable lifecycle alerts.
How gaps are tracked
A bullish FVG forms when candle 3’s low is above candle 1’s high. A bearish FVG uses the opposite relationship.
Choose when a zone retires: first touch, midpoint reached, full wick penetration, or a confirmed chart close at or beyond its far edge. Invalidation and complete filling are tracked separately.
Live mode displays developing gaps that can change or disappear. Confirmation is processed when the next candle of that timeframe begins, so session breaks can delay confirmation. Higher-timeframe candles are assembled from chart data.
Reading the signals
Third-candle classifications describe formation behavior; they do not predict continuation or a fill.
Rejection triangles mark price touching a confirmed zone and subsequently closing back outside its near edge within the configured window. They represent observed reactions, not buy/sell instructions.
The dashboard reports detected zones, active records, invalidation statistics, and completed first-touch reactions. These are descriptive statistics—not strategy win rates.
Customization
Adjust minimum gap size, timeframe layers, drawing lookback, Focus limits, session hours, labels, colors, and alerts. Drawing and record limits keep the display manageable. Session labels use a configurable clock window rather than an exchange holiday calendar.
For alerts, enable the desired events in settings and create a TradingView alert using “Any alert() function call.”
版本注释
Update - Live Previews: Chart TF OnlyNew setting under Detection: "Live Previews: Chart TF Only" (default off).
When enabled, forming (dashed) FVG previews are drawn only for strata whose effective timeframe matches the chart timeframe. Higher-timeframe strata wait for the completed three-candle pattern before drawing, exactly as they do in On Bar Close mode. This removes the shrinking and disappearing HTF preview boxes while keeping live previews on the chart timeframe.
Notes
- A stratum set to Chart, one set to the same timeframe as the chart, or one that fell back to the chart all keep live previews.
- No effect when Detect Zones is On Bar Close.
- Confirmed zones, statistics, alerts, BPR and confluence are unchanged. Only the preview stage differs.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。