OPEN-SOURCE SCRIPT

Fair Value Gap [Tradeuminati]

89
Fair Value Gap [Tradeuminati]

Fair Value Gap [Tradeuminati] is a clean and rule-based Fair Value Gap indicator for TradingView, designed to display only valid and confirmed Fair Value Gaps (FVGs) and Inverted Fair Value Gaps (iFVGs).

The indicator is built on a strict 3-candle FVG definition and operates exclusively on candle close, ensuring no repainting and no premature signals.

🔹 Key Features

Valid Fair Value Gaps (FVG)
- Detects bullish and bearish Fair Value Gaps using a precise 3-candle structure
- FVGs are only plotted after the confirming candle has closed
- A Fair Value Gap remains visible only as long as it is valid
- Once price closes beyond the FVG, it is removed or converted

Inverted Fair Value Gaps (iFVG)
- When a valid FVG is invalidated by a candle close, it can be converted into an iFVG
- iFVGs retain the original price range and structure
- Only valid iFVGs are displayed
- As soon as price closes through an iFVG, it is automatically removed

Clean & Controlled Visualization
- Only the last N active FVGs are displayed (bullish + bearish combined)
- Only the last N valid iFVGs are shown
- Boxes automatically extend to the current price + configurable bars
- Labels are dynamically positioned at the right edge of each zone

🔹 Technical Notes
- No repainting
- No intrabar signals
- Close-based validation only
- Works on all markets and timeframes
- Lightweight and performance-friendly

⚠️ Disclaimer
This indicator is for technical analysis purposes only and does not constitute trading or investment advice.

Declinazione di responsabilità

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.