OPEN-SOURCE SCRIPT
unFair Value Gap Detector [theUltimator5]

The unFair Value Gap Detector (uFVG) highlights imbalance zones that form when trend strength is weak but directional pressure spikes—a condition often followed by price reversion back into that level. Unlike the classic 3-candle ICT FVG, this tool is designed to help you have an unFair edge in gap retracement detection by plotting high probability gap reversion opportunities on the current timeframe and the next FIVE (yes five) higher timeframes.
What you’ll see:
Note: This indicator is intentionally minimalistic visually to minimize chart clutter, while still being an extremely powerful tool
Optional visuals:
Why it is unique and effective (the “unfair” edge):
How to use it:
Customization
What you’ll see:
- Gap line per event: A single, no-nonsense line at the level price most often returns to.
- Auto multi-timeframe view: uFVG ladders up through five higher timeframes and shows their levels too—each with its own color.
- Smart de-clutter: Near-duplicate lines across timeframes are filtered so your chart stays readable.
Note: This indicator is intentionally minimalistic visually to minimize chart clutter, while still being an extremely powerful tool
Optional visuals:
- Light background tint during quiet, coiling conditions.
- Soft fill from price to the active line for quick context.
- Compact labels that note the price and which timeframe printed it.
Why it is unique and effective (the “unfair” edge):
- Early, practical context: Spots levels near when the imbalance forms—useful before the crowd catches on.
- Clarity over noise: One line per event. No boxes, no sprawling zones, fewer “maybe” areas.
- Timeframe confluence: When multiple timeframes cluster around the same price, you’ve got a stronger focal point.
- Simple risk framing: If price slices through the line decisively, that idea’s done. Next.
How to use it:
- Mean-reversion play: Look for price to tag the line, take profits into it, or fade a first reaction.
- Continuation play: After the line is “mitigated,” reassess in the original direction.
- Prioritize by timeframe: Higher-timeframe lines tend to carry more weight.
- Respect clusters: Multiple lines stacked near one price often mark important pivots.
Customization
- Colors: Separate colors for current and higher-timeframe lines.
- Toggles: Turn on/off background highlights, line-to-price fill, and labels.
- Minimal fuss: The rest is auto—timeframes, line lifecycle, and de-duplication are handled for you.
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.