OPEN-SOURCE SCRIPT
Fair Value Gaps BOOSTED [LuxAlgo & mqsxn]

Fair Value Gaps BOOSTED [LuxAlgo & mqsxn]
This enhanced version of LuxAlgo’s Fair Value Gap indicator takes market imbalance detection to the next level. Built on the trusted foundation of the original, this extension introduces powerful new features designed for traders who want deeper insight and more control:
Extended Visualization – Fair Value Gaps now stretch farther into the past with customizable bar extensions, so you can easily track unmitigated gaps over longer distances of time.
Intersection Highlights – Automatically identify and shade overlapping bullish/bearish FVGs, giving instant visual clarity on high-confluence zones.
Center Lines & Mitigation Tracking – Optional center lines improve precision, while mitigation markers help confirm when gaps are filled.
Advanced Filtering – Control visibility with minimum gap sizes, custom start dates for gap formations, and per-direction display limits.
Dashboard Stats – On-chart metrics show the number of detected and mitigated gaps, plus percentages, at a glance.
Alerts Ready – Set up alerts for fresh FVG formation or mitigation events, so you never miss a key signal.
Whether you’re scalping, day trading, or swing trading, Fair Value Gaps BOOSTED helps you pinpoint institutional price imbalances and trade around them with confidence.
------
Inputs & Settings
Threshold % / Auto
Defines the minimum gap size as a percentage of price. Enable Auto to let the script automatically adapt thresholding based on volatility.
Unmitigated Lines (combined)
Draws guide lines for a set number of the most recent unmitigated gaps.
Mitigation Levels
Shows dashed lines where gaps have been fully mitigated (filled).
Timeframe
Lets you calculate Fair Value Gaps on a higher or lower timeframe than the chart you’re viewing.
Style
Dynamic Mode
Keeps the most recent gap area actively updating with price as long as it remains unmitigated.
Extend Right (bars)
Controls how many bars into the future each gap visualization will project.
Bullish / Bearish Colors
Customize the fill colors of bullish and bearish gaps.
Center Line & Width
Adds a dotted line through the midpoint of each gap for visual precision.
Filter
Min Gap Size (ticks)
Only display gaps greater than or equal to this size.
Min Formation Date (days ago)
Show gaps formed within a given lookback window (e.g., only last 4 days).
Display
Show Last Bullish / Bearish (unmitigated)
Limit how many recent bullish or bearish gaps appear at once (set to 0 for unlimited).
Intersections
Show Intersections
Highlight overlapping bullish and bearish gaps as shaded zones.
Show Intersections Only
Hide individual gaps and show only the overlapping regions.
Intersection Color
Customize the fill for overlap areas.
Intersection Center Line / Width
Optionally plot a midpoint line through the overlap zone.
Dashboard
Show Dashboard
Display a compact on-chart table of bullish vs bearish counts and mitigation percentages.
Location
Choose where the dashboard sits (top right, bottom right, bottom left).
Size
Adjust text size (Tiny, Small, Normal).
This enhanced version of LuxAlgo’s Fair Value Gap indicator takes market imbalance detection to the next level. Built on the trusted foundation of the original, this extension introduces powerful new features designed for traders who want deeper insight and more control:
Extended Visualization – Fair Value Gaps now stretch farther into the past with customizable bar extensions, so you can easily track unmitigated gaps over longer distances of time.
Intersection Highlights – Automatically identify and shade overlapping bullish/bearish FVGs, giving instant visual clarity on high-confluence zones.
Center Lines & Mitigation Tracking – Optional center lines improve precision, while mitigation markers help confirm when gaps are filled.
Advanced Filtering – Control visibility with minimum gap sizes, custom start dates for gap formations, and per-direction display limits.
Dashboard Stats – On-chart metrics show the number of detected and mitigated gaps, plus percentages, at a glance.
Alerts Ready – Set up alerts for fresh FVG formation or mitigation events, so you never miss a key signal.
Whether you’re scalping, day trading, or swing trading, Fair Value Gaps BOOSTED helps you pinpoint institutional price imbalances and trade around them with confidence.
------
Inputs & Settings
Threshold % / Auto
Defines the minimum gap size as a percentage of price. Enable Auto to let the script automatically adapt thresholding based on volatility.
Unmitigated Lines (combined)
Draws guide lines for a set number of the most recent unmitigated gaps.
Mitigation Levels
Shows dashed lines where gaps have been fully mitigated (filled).
Timeframe
Lets you calculate Fair Value Gaps on a higher or lower timeframe than the chart you’re viewing.
Style
Dynamic Mode
Keeps the most recent gap area actively updating with price as long as it remains unmitigated.
Extend Right (bars)
Controls how many bars into the future each gap visualization will project.
Bullish / Bearish Colors
Customize the fill colors of bullish and bearish gaps.
Center Line & Width
Adds a dotted line through the midpoint of each gap for visual precision.
Filter
Min Gap Size (ticks)
Only display gaps greater than or equal to this size.
Min Formation Date (days ago)
Show gaps formed within a given lookback window (e.g., only last 4 days).
Display
Show Last Bullish / Bearish (unmitigated)
Limit how many recent bullish or bearish gaps appear at once (set to 0 for unlimited).
Intersections
Show Intersections
Highlight overlapping bullish and bearish gaps as shaded zones.
Show Intersections Only
Hide individual gaps and show only the overlapping regions.
Intersection Color
Customize the fill for overlap areas.
Intersection Center Line / Width
Optionally plot a midpoint line through the overlap zone.
Dashboard
Show Dashboard
Display a compact on-chart table of bullish vs bearish counts and mitigation percentages.
Location
Choose where the dashboard sits (top right, bottom right, bottom left).
Size
Adjust text size (Tiny, Small, Normal).
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.