OPEN-SOURCE SCRIPT

FVG | iSolani

205
snapshot

Unveiling Market Inefficiencies with Precision
In fast-moving markets, spotting hidden opportunities often hinges on identifying imbalances between price and value. The FVG | iSolani indicator revolutionises this process by detecting Fair Value Gaps (FVGs)—zones where price action skips over "fair" valuation levels, creating potential retracement targets. Combining advanced filtering, dynamic visualisation, and automated management, this tool empowers traders to pinpoint high-probability setups with unprecedented clarity.


Core Methodology
The indicator employs a multi-layered approach to identify FVGs:
  • Three-Bar Gap Analysis: Bullish FVGs form when the current low exceeds the high of two bars prior, while bearish FVGs occur when the current high stays below the low of two bars back.
  • Volatility-Adjusted Filtering: Gaps are measured against a 100-bar standard deviation to exclude insignificant price jumps.
  • Volume Confirmation: Only gaps accompanied by above-average volume (relative to a 1-bar SMA) are validated, filtering out low-conviction moves.
  • Auto-Invalidation System: Continuously monitors price action to remove FVG zones once price closes within their range, maintaining chart cleanliness.


Breaking New Ground
This tool introduces three paradigm-shifting innovations:
  • Volume-Weighted Significance: Unlike traditional FVG detectors, it ties gap validity to volume spikes, emphasising institutional activity.
  • Adaptive Zone Management: Boxes automatically extend rightward (when enabled) and self-destruct when invalidated, eliminating manual cleanup.
  • Smart Color Encoding: Offers both monochrome (for multi-timeframe analysis) and standard bull/bear color schemes, with customisable transparency.


Engine Under the Hood
The script operates through four key processes:
  1. Gap Detection: Scans every new bar for three-candle patterns meeting FVG criteria.
  2. Statistical Filtering: Applies user-defined threshold (default: 1σ) to separate meaningful gaps from market noise.
  3. Box Rendering: Draws semi-transparent zones between gap boundaries using TradingView's box objects, styled according to user preferences.
  4. Array-Based Memory: Stores all active FVGs in arrays, enabling real-time validation checks against current price action.


Standard Configuration
Optimised default settings balance visibility and functionality:
  • Filter: 1.0 (1 standard deviation threshold)
  • Colors: "Mono" mode (gray boxes) with 90% transparency
  • Text Labels: Enabled in medium gray
  • Extension: Gaps extend indefinitely rightward
  • Borders: Dotted lines with visible outlines


Through its fusion of quantitative rigor and visual adaptability, the FVG | iSolani transforms raw price data into actionable intelligence. By focusing on volume-confirmed gaps and automating zone management, it cuts through market chaos to reveal structurally significant levels—a must-have for traders navigating breakouts, reversals, or order-flow analysis.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.