All indicators

SMC Structures and FVG (+Alerts JSON)

Aug 10, 2025

Static chart image
Support and ResistanceSignalsFibonacciFVGLiquidityPatterns

The SMC Structures and FVG indicator provides a comprehensive toolkit for identifying Smart Money Concepts such as Fair Value Gaps, structural breaks, and key Fibonacci retracement levels. It is specifically optimized for automated workflows, featuring a JSON-based alert system designed for seamless integration with webhooks and external applications.

Usage

The indicator can be used to identify trend shifts and liquidity zones by monitoring structural changes and price imbalances.

Market Structure The script automatically identifies Break of Structure (BOS) and Change of Character (CHOCH). Users can choose whether to confirm these breaks using the candle body or wick. When a new structure is formed, the tool calculates and plots specific Fibonacci retracement levels relative to the current high-low range.

Fair Value Gaps (FVG) Bullish and bearish imbalances are highlighted on the chart as boxes. These zones remain active until price action mitigates them. The indicator provides options to reduce the size of mitigated gaps or change their color to differentiate between fresh and tested liquidity zones.

Fibonacci Levels Five configurable Fibonacci levels are plotted to help identify potential reversal zones (Premium/Discount). The indicator includes a "tick tolerance" setting, allowing for precise alerts when price enters a specific proximity of a level.

Details

The script uses a standardized JSON format for its alert() functions, making it compatible with API-based trading bots or mobile applications. It tracks a historical number of structures and FVGs to keep charts clean while maintaining context. Calculations for structural highs and lows utilize dynamic lookback logic to ensure that significant swing points are captured regardless of volatility.

Settings

Fair Value Gap

  • Display FVG: Toggles the visibility of Fair Value Gaps.
  • FVG Colors: Customizable colors for Bullish, Bearish, and Mitigated gaps.
  • Number of FVG to show: Controls the historical depth of gaps displayed on the chart.
  • Reduce mitigated FVG: When enabled, shortens the FVG box once price enters the zone.
  • Confirm FVG at candle close: Requires the candle to close before confirming an imbalance.

Structures

  • Break with candle's body: Determines if a structural break requires a body close or just a wick touch.
  • Display current structure: Toggles the plotting of the active swing high and low.
  • BOS/CHoCH Styling: Customizable colors, line styles, and widths for structural breaks.
  • Number of break to show: Limits the amount of historical structural labels.
  • Confirm BOS/CHOCH/Fibo: Requires the bar to close before triggering structural or Fibonacci alerts.

Structure Fibonacci

  • Fibo Levels (1-5): Customizable percentage values (e.g., 0.786, 0.618) and visual styles.
  • Tick Tolerance: The distance in ticks price must be from a level to trigger a "touch" alert.

Alerts

  • Use Programmatic Alerts (JSON): Enables standardized JSON output for webhooks.

FAQ

How do I use this for automated trading? You can enable the "Usar alert() con JSON" setting and paste your webhook URL in the TradingView alert creation dialogue. The script will send structured data whenever a BOS, CHOCH, FVG, or Fibonacci touch occurs.

Can I change the Fibonacci levels? Yes, all five Fibonacci levels are fully adjustable in the settings menu, allowing you to use standard levels like 0.618 or custom OTE (Optimal Trade Entry) levels.

How do I get access to the SMC Structures and FVG? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.