编辑精选
OPEN-SOURCE SCRIPT
已更新

Fair Value Gaps by DGT

116 219
Fair Value Gaps
A refined, multi-timeframe Fair Value Gap (FVG) detection tool that brings institutional imbalance zones to life directly on your chart.
Designed for precision, it visualizes how price delivers into inefficiencies across chart, higher, and lower (intrabar) timeframes — offering a fluid, structural view of liquidity displacement and market flow.

The script continuously tracks unfilled, partially repaired, and fully resolved imbalances, revealing where liquidity inefficiencies concentrate and where price may seek rebalancing.
Overlapping zones naturally expose institutional footprints, potential liquidity targets, and key re-pricing regions within the broader market structure.

KEY FEATURES

⯌ Multi-Timeframe Detection
Detect and display FVGs from the current chart, higher timeframes (HTF), or lower timeframes (LTF)
快照

⯌ Smart Fill Tracking
Automatic real-time monitoring of each FVG’s fill progress with live percentage updates
快照

⯌ Custom Fill Logic
Choose your preferred definition of when a gap is considered filled:
  • Any Touch
  • Midpoint Reached
  • Wick Sweep
  • Body Beyond
快照

⯌ Dynamic Labels & Tooltips
Labels can be toggled on/off. Even when hidden, detailed tooltips remain available by hovering over the FVG midpoint.
快照

⯌ Adaptive Lower-Timeframe Mode
When set to “Auto,” the script intelligently selects the optimal lower timeframe based on the chart resolution.
快照

DISCLAIMER

This script is intended for informational and educational purposes only. It does not constitute financial, investment, or trading advice. All trading decisions made based on its output are solely the responsibility of the user.
版本注释
⯌ Label Rendering Update

Adapted label rendering to the latest Pine Script engine update. Transparent elements now display reliably, ensuring chart annotations remain accurate and glitch-free.
版本注释
⯌ Compatibility Update — Timeframe Input Fix

This update addresses a recent TradingView Pine Engine enhancement that affected timeframe input handling.

In certain cases, minute-based inputs were being interpreted as months, which could cause unexpected behavior.

The input handling logic has now been hardened to ensure stable and correct timeframe behavior across all resolutions.

No changes to core logic — compatibility fix only.

免责声明

这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。