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.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.