PROTECTED SOURCE SCRIPT
Dual Layer FVG (Dynamic + Static)

Overview This indicator visualizes Fair Value Gaps (FVG) using a unique dual-layer approach. Standard FVG indicators usually either shrink as price touches them OR stay at their original size. This script combines both methods to give you a complete picture of market imbalance and mitigation.
Key Concepts
Dynamic FVG (Foreground): This layer represents the remaining gap. As price moves into the FVG (mitigation), this zone shrinks in real-time, showing you exactly how much unfilled imbalance is left.
Static FVG (Background/Ghost): This layer represents the original gap size. It remains fixed even when price penetrates it, allowing you to see the historical depth of the imbalance.
Features
Multi-Timeframe (MTF) Support: View Higher Timeframe (HTF) FVGs on your current chart (e.g., Daily FVG on a 1-hour chart).
Visual Customization: Fully adjustable colors and transparency for both the Dynamic and Static layers.
Mitigation Tracking: The gap is automatically removed only when it is fully mitigated.
Smart Labels: Toggle labels on/off and adjust their position (Top, Mid, Bottom) relative to the gap.
Settings Guide
Timeframe: Choose 'Chart' for current timeframe or select a specific HTF.
Dynamic FVG: Controls the shrinking zone. Usually set to a higher opacity.
Static FVG: Controls the fixed 'Ghost' zone. Recommended to keep transparency high (around 90) for a subtle background effect.
Max Bars Back: Adjusts how far back in history the script calculates. Increase this if you are viewing very high timeframe FVGs on very low timeframe charts.
Key Concepts
Dynamic FVG (Foreground): This layer represents the remaining gap. As price moves into the FVG (mitigation), this zone shrinks in real-time, showing you exactly how much unfilled imbalance is left.
Static FVG (Background/Ghost): This layer represents the original gap size. It remains fixed even when price penetrates it, allowing you to see the historical depth of the imbalance.
Features
Multi-Timeframe (MTF) Support: View Higher Timeframe (HTF) FVGs on your current chart (e.g., Daily FVG on a 1-hour chart).
Visual Customization: Fully adjustable colors and transparency for both the Dynamic and Static layers.
Mitigation Tracking: The gap is automatically removed only when it is fully mitigated.
Smart Labels: Toggle labels on/off and adjust their position (Top, Mid, Bottom) relative to the gap.
Settings Guide
Timeframe: Choose 'Chart' for current timeframe or select a specific HTF.
Dynamic FVG: Controls the shrinking zone. Usually set to a higher opacity.
Static FVG: Controls the fixed 'Ghost' zone. Recommended to keep transparency high (around 90) for a subtle background effect.
Max Bars Back: Adjusts how far back in history the script calculates. Increase this if you are viewing very high timeframe FVGs on very low timeframe charts.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.