OPEN-SOURCE SCRIPT
FVG Clean MTF + IFVG (Deep Memory)

FVG Deep Memory [MTF + Independent History]
This is a highly optimized, Multi-Timeframe (MTF) Fair Value Gap indicator designed to solve the common "data limit" issues found in standard FVG scripts.
Most MTF indicators share a single "memory limit" for all zones. This causes a problem: specific high-frequency zones (like 1-minute gaps) flood the memory and accidentally delete your important Higher Timeframe levels (like Daily or 4H gaps).
FVG Deep Memory solves this by assigning Independent Memory Buckets to each timeframe. Your 1-minute noise will never delete your Daily structure again.
🚀 Key Features
1. "Deep Memory" Architecture
5 Independent Timeframes: Monitor the Chart, 15m, 1h, 4h, and Daily intervals simultaneously.
No Cannibalization: Each timeframe has its own dedicated allocation (e.g., 100 zones each). A flood of new zones on the 15m chart will not erase an old Daily zone. They coexist perfectly.
2. Dynamic "Gray Zone" State
SR Channel Logic: When price enters an active FVG, the zone dynamically changes color to Gray (customizable).
Why it helps: This provides an instant visual cue that price is "in traffic" or a decision point, separating it from untouched "fresh" zones.
3. Advanced Logic
Inversion Gaps (IFVG): When a Fair Value Gap is broken, it can automatically flip into an Inversion Gap (Support becomes Resistance) with a dashed style.
Mitigation Handling: Choose between extending zones until broken, or hiding them immediately upon mitigation to keep the chart clean.
Midlines: Optional median lines for precision entries.
4. Soft UI & Customization
Designed with "Soft" transparency to keep your chart readable.
Fully customizable colors for Bullish, Bearish, and "In-Zone" states.
Toggle any timeframe on/off individually without affecting the logic of others.
🛠 Settings Guide
Lookback Limit: How far back (in days) to scan for gaps.
Max Boxes PER Timeframe: The distinct memory limit for each timeframe bucket.
Show Inversion Gaps: Enables the "Support to Resistance" flip logic.
Hide Nested Gaps: Prevents clutter by merging overlapping zones.
Price In Zone Color: The color the zone turns when price is currently trading inside it.
⚠️ Credits
Original detection logic by LuxAlgo.
Heavily modified by Gemini_AI_Optimization to include Independent Memory Architecture, Gray Zone Logic, and Independent MTF Layering.
This is a highly optimized, Multi-Timeframe (MTF) Fair Value Gap indicator designed to solve the common "data limit" issues found in standard FVG scripts.
Most MTF indicators share a single "memory limit" for all zones. This causes a problem: specific high-frequency zones (like 1-minute gaps) flood the memory and accidentally delete your important Higher Timeframe levels (like Daily or 4H gaps).
FVG Deep Memory solves this by assigning Independent Memory Buckets to each timeframe. Your 1-minute noise will never delete your Daily structure again.
🚀 Key Features
1. "Deep Memory" Architecture
5 Independent Timeframes: Monitor the Chart, 15m, 1h, 4h, and Daily intervals simultaneously.
No Cannibalization: Each timeframe has its own dedicated allocation (e.g., 100 zones each). A flood of new zones on the 15m chart will not erase an old Daily zone. They coexist perfectly.
2. Dynamic "Gray Zone" State
SR Channel Logic: When price enters an active FVG, the zone dynamically changes color to Gray (customizable).
Why it helps: This provides an instant visual cue that price is "in traffic" or a decision point, separating it from untouched "fresh" zones.
3. Advanced Logic
Inversion Gaps (IFVG): When a Fair Value Gap is broken, it can automatically flip into an Inversion Gap (Support becomes Resistance) with a dashed style.
Mitigation Handling: Choose between extending zones until broken, or hiding them immediately upon mitigation to keep the chart clean.
Midlines: Optional median lines for precision entries.
4. Soft UI & Customization
Designed with "Soft" transparency to keep your chart readable.
Fully customizable colors for Bullish, Bearish, and "In-Zone" states.
Toggle any timeframe on/off individually without affecting the logic of others.
🛠 Settings Guide
Lookback Limit: How far back (in days) to scan for gaps.
Max Boxes PER Timeframe: The distinct memory limit for each timeframe bucket.
Show Inversion Gaps: Enables the "Support to Resistance" flip logic.
Hide Nested Gaps: Prevents clutter by merging overlapping zones.
Price In Zone Color: The color the zone turns when price is currently trading inside it.
⚠️ Credits
Original detection logic by LuxAlgo.
Heavily modified by Gemini_AI_Optimization to include Independent Memory Architecture, Gray Zone Logic, and Independent MTF Layering.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。