BISI - SIBI (FVG) + Order Blocks + iFVG Impulsive Candles This indicator highlights three core price-action elements used in imbalance and liquidity-based trading:
Fair Value Gaps (FVG) — BISI / SIBI
• Bullish FVG (BISI): when the current low is above the high from two bars ago (low > high ).
• Bearish FVG (SIBI): when the current high is below the low from two bars ago (high < low ).
Each FVG is drawn as a box with customizable text, color, opacity, and borders.
Order Blocks (OB) — Displacement Logic
• Bullish OB: previous candle is bearish and current close breaks above the previous high (displacement).
• Bearish OB: previous candle is bullish and current close breaks below the previous low.
The Order Block is defined by candle high/low and drawn as a box.
iFVG Candle Coloring (Optional)
Bars are colored when an FVG or strict iFVG condition is detected. This allows quick visual identification of imbalance candles without overcrowding the chart.
AUTO STRETCH & AUTO DELETE — Clean Chart Logic
• Stretch: FVG and OB boxes extend to the right until mitigation.
• Auto-delete: once a zone is considered “filled,” it can be automatically removed to keep charts clean.
Definition of “filled” used in this script:
A zone is considered touched when the candle body (Open/Close range) crosses the box range:
min(open, close) < top AND max(open, close) > bottom.
This is intentionally stricter than wick-based fills to avoid premature invalidations.
KEY SETTINGS
• Lookback Bars — Limits detection range for performance and clarity.
• Max PD Arrays — Controls maximum stored zones to prevent overload.
• Stretch Until Filled — Extends zones dynamically.
• Auto-delete When Filled — Removes mitigated zones.
• Opacity & Borders — Full visual customization.
• Min Penetration (iFVG) — Controls strictness of iFVG qualification.
BEST PRACTICES
• FVGs are commonly used as retracement zones after displacement, especially within HTF structure alignment.
• Order Blocks are most effective when preceded by liquidity sweeps or strong expansion.
• iFVG coloring helps identify impulsive behavior quickly without clutter.
LIMITATIONS
• This is a visual analytical tool, not a standalone entry system.
• Fill logic is based on body penetration (not wick-based).
• Very low timeframes with large lookback settings may impact performance.
Pine Script® indicator






















