Smart Structure by Javad (Smart-FVG)

Smart Structure by Javad (Smart-FVG)

Automatically Detect, Draw, and Track Fair Value Gaps (FVGs) in Real Time

Description:
Smart Structure by Javad (Smart-FVG) is an advanced Fair Value Gap indicator that automatically detects, classifies, and updates bullish and bearish imbalances in real time. Using refined 3-bar displacement logic, it highlights active gaps in green or red, marks wick-touches in gray when only candle wicks enter the zone, and removes zones completely once a candle body fully closes into them. The indicator includes customizable gap and body size filters, tick-based scaling, adjustable colors and line width, and a built-in limit for displayed zones—offering a clean, high-precision view of institutional inefficiencies ideal for Smart Money Concepts and ICT-style analysis.

Each zone is drawn as a clean rectangular border—green for bullish, red for bearish, and gray for mitigated zones. Once price trades back into a zone, SmartFVG intelligently marks it as mitigated and can optionally hide it from view for a clearer chart.

Features:

  • :magnifying_glass_tilted_left: Automatic Detection: Finds valid 3-bar displacement gaps instantly as they form.

  • :gear: Configurable Quality Filters: Skip weak setups using a customizable minimum candle body size.

  • :brain: Smart Mitigation Logic: Choose between Full (complete fill) or Partial (first touch) mitigation modes.

  • :three_o_clock: Historical Tracking: Visualize each FVG’s lifecycle from creation to mitigation, with optional display of filled zones.

  • :artist_palette: Custom Styling: User-defined colors, line widths, and mitigation color for tailored chart visuals.

  • :high_voltage: Optimized for Real-Time Analysis: Works seamlessly on any timeframe or instrument.

Parameters:

  • fvgGap – Minimum gap size (price units).

  • minBodySize – Minimum body size of the displacement candle.

  • mitigationType – Choose full or partial mitigation.

  • showMitigatedZones – Toggle to display or hide filled zones.

  • bullishBorderColor, bearishBorderColor, mitigatedColor – Custom colors for each zone type.

  • lineWidth – Outline thickness.

Visual Output:

  • :green_square: Bullish FVG: Gap between the previous high and the next low.

  • :red_square: Bearish FVG: Gap between the previous low and the next high.

  • :white_large_square: Mitigated zones displayed in gray (optional).

Ideal Use Case:
For traders using Smart Money Concepts (SMC) or ICT-style analysis, SmartFVG provides an automated, accurate visualization of market inefficiencies and liquidity imbalances—helping you focus on premium setups without manually drawing zones.

NEW Visual Tools

Dashed Equilibrium Line (midpoint)

  • Every FVG includes a dashed midpoint line showing the zone equilibrium at (top + bottom) / 2.

Inverse FVG (Most Recent Only)

  • When an FVG is fully mitigated, the indicator can optionally draw an inverse FVG in Purple (#9013FE).

  • To prevent clutter, it only draws ONE inverse at a time: the most recently mitigated FVG.

  • The inverse draws from the original FVG start, and remains visible only for the next N candles after mitigation (user-editable).

Key Features

  • Automatic bullish/bearish FVG detection using 3-bar displacement

  • Wick-touch classification (gray)

  • Full mitigation removal logic (clean chart behavior)

  • Tick-scaled option for consistent filtering across instruments

  • Adjustable filters for gap size + displacement candle body size

  • Styling controls (colors + line width)

  • Display cap for active zones (prevents chart overload)

  • Dashed equilibrium line inside every zone

  • Optional inverse FVG (purple), only most recent, time-limited display

Parameters

  • useTicks / tickSize – Tick-based scaling for filters

  • fvgGap – Minimum gap size (price units or ticks)

  • minBodySize – Minimum displacement candle body size (price units or ticks)

  • maxActivePerSide – Max active bullish + bearish zones displayed

  • bullishBorderColor, bearishBorderColor, wickTouchColor

  • lineWidth

  • showInverseFVGs – Toggle inverse FVG drawing

  • inverseFVGColor – Default #9013FE

  • inverseFVGDisplayBars – How long the inverse stays after mitigation (default 100)

Ideal Use Case

Designed for traders using SMC / ICT-style analysis who want an automated, accurate view of imbalances and their mitigation behavior without manually drawing zones.

looks clean :ok_hand:
have you tried forward testing it in an algo yet?

Settings of the indicator dont work. I am trying to limit the number of fvgs that show to only 3 but it stays at 50 and doesnt let me change the value.

Love the indicator. Idea: Add the option to plot the high level FVG (e.g 15 min FVG on a 1/5 minute)

I can create indicator or automate trade for any one want. Dm at obacommunication@gmail.com