OPEN-SOURCE SCRIPT

SMT-Fill [Oracle]

6 989
WHAT THIS INDICATOR DOES

ảnh chụp nhanh

SMT-Fill is a correlation-based fair value gap analysis tool that detects when correlated assets disagree on how they interact with their own imbalances. It identifies FVGs that form simultaneously across multiple correlated assets, then tracks whether each asset trades back into its respective gap — and flags when one asset fills its gap while the other does not.

A standard FVG tells you there is an imbalance. An SMT-Fill tells you there is an imbalance where correlated assets are disagreeing on whether it gets respected — a crack in correlation at the imbalance level, which increases the probability of a reaction.

ảnh chụp nhanh

This is an analysis and narrative tool. It does not generate buy or sell signals.

THE CONCEPTS — WHAT EACH ONE IS AND HOW IT IS CALCULATED

Fair Value Gaps (FVGs)

ảnh chụp nhanh

A fair value gap is a 3-bar price imbalance where the candle bodies moved so aggressively that a gap was left behind. The indicator detects these using standard FVG logic:


  • [] Bullish FVG — Bar 1's low is above bar 3's high. The gap between these two levels represents an area where price moved up without being fully traded, leaving an imbalance that price may return to fill.
    [] Bearish FVG — Bar 3's low is above bar 1's high. The gap represents a downward imbalance.


The indicator does not just detect FVGs on your chart — it simultaneously checks whether the same FVG pattern exists on each of the other assets in your triad at the exact same time, using request.security calls. For each asset where a concurrent FVG exists, it stores that asset's own gap boundaries (high, low, and midpoint) independently.

This means the indicator is tracking up to four versions of the same gap: your chart asset's FVG boundaries and each correlated asset's FVG boundaries, all formed on the same 3-bar window but at each asset's own price levels.

SMT-Fill Divergence Detection

ảnh chụp nhanh

This is the core concept. After an FVG forms across multiple assets, the indicator tracks whether price on each asset trades back into its respective gap. An SMT-Fill divergence occurs when one asset trades into its gap while a correlated asset does not trade into its corresponding gap — the assets disagree on whether the imbalance gets filled.

The indicator monitors three levels within each gap:


  • [] High — The top boundary of the FVG. Has price touched back into the gap at all?

    [] Midpoint (50%) — The equilibrium of the FVG. Has price traded through the halfway point?
  • Low — The bottom boundary of the FVG. Has price completely filled the gap?


For each level, the indicator maintains a "traded" flag for every asset. On every bar, it checks whether each asset's price has reached that level in its own FVG. A divergence is detected when your chart asset's traded flag differs from a correlated asset's traded flag at any level — meaning one has interacted with the gap at that level while the other has not.

This produces three variants of SMT-Fill, each representing a different degree of divergence:


  • [] Variant 1 — Touch divergence. One asset trades back into the gap (touching the high of the FVG), while the correlated asset fails to trade back into its gap at all.

    ảnh chụp nhanh

    [] Variant 2 — Midpoint divergence. One asset trades below 50% of its gap, while the correlated asset fails to reach the 50% level of its gap.

    ảnh chụp nhanh
  • Variant 3 — Full fill divergence. One asset completely fills its gap (price reaches the low/high boundary), while the correlated asset fails to completely fill its corresponding gap.


ảnh chụp nhanh

The indicator prioritises the most significant divergence level when drawing the SMT-Fill line. For bullish gaps, it checks the high level first (has any asset touched the gap while another hasn't), then midpoint, then low. For bearish gaps, it checks low first, then midpoint, then high.

Gap Lifecycle and Cleanup

Each tracked gap has a defined lifecycle:


  • [] Creation — A 3-bar FVG is detected on your chart, and the same FVG pattern exists on at least one other asset in the triad at the same time.
    [] Active tracking — The indicator monitors whether each asset's price interacts with its own version of the gap at the high, midpoint, and low levels.
    [] Divergence display — When the traded flags disagree between assets at any level, the gap is drawn as a colored box with an optional SMT divergence line at the diverging level.
    [] Closure — When price closes completely through the gap (close below the low for bullish, close above the high for bearish), the gap is automatically deleted from the chart.


Gaps where no divergence exists between assets are hidden by default — the indicator only shows FVGs where a crack in correlation has occurred within the imbalance.

SMT-Fill Divergence Line

ảnh chụp nhanh

When a divergence is detected, an optional horizontal line is drawn at the specific level where the disagreement occurs (high, midpoint, or low of the gap). This line marks the exact price level where one asset has interacted with the gap but the other has not — the precise point of the crack in correlation within the imbalance.

The line extends as long as any asset is still interacting with the gap, plus a configurable extension buffer.

HOW THE CONCEPTS WORK TOGETHER

SMT-Fill is not simply an FVG detector with extra assets overlaid. The concepts form a specific analytical sequence:

  1. Concurrent FVG formation establishes the setup. A fair value gap must form on your chart asset and on at least one correlated asset at the exact same time. This is the prerequisite — it means both assets experienced the same imbalance event simultaneously, establishing a shared reference point.
  2. Independent fill tracking reveals disagreement. After the gap forms, each asset's price moves independently. The indicator tracks whether each asset returns to its own gap boundaries. When one fills while the other holds, it reveals that the market is not treating the imbalance the same way across correlated assets — a crack in correlation specifically within the imbalance itself.
  3. The divergence level identifies the price point. The SMT-Fill line marks exactly where the disagreement is occurring — whether at the gap entry (high), equilibrium (midpoint), or full fill (low). This gives you a specific price level to work with, not just a directional bias.
  4. Gap lifecycle provides context. Gaps that are fully closed are automatically removed. Only gaps with active divergences are displayed. This keeps the chart clean and focused on the information that matters — where correlated assets are currently disagreeing on imbalance interaction.


HOW TO USE IT

For HTF Bias:

SMT-Fills on higher timeframes can frame lower timeframe trade ideas. For example, if you expect a bullish weekly candle and see price manipulate down into a daily FVG forming an SMT-Fill, you can assume that manipulation is likely the manipulation for the week — giving you a directional bias and allowing you to frame LTF entries accordingly.

As an Entry Model:

SMT-Fill can be combined with other Quarterly Theory concepts to build confluence. For example:


  • [] SSMT forms, then the first presented gap is an SMT-Fill — higher probability entry
    [] A PSP forms, then the first presented gap is an SMT-Fill — confirmed reversal with imbalance divergence
  • Any ICT entry model that involves an FVG can use SMT-Fill to increase the setup probability by confirming the gap is backed by a correlation crack


Step by step:


  1. [] Add the indicator to your chart. It will automatically detect your asset triad and begin scanning for concurrent FVGs.
    [] When an FVG forms on your chart and on at least one correlated asset simultaneously, the indicator begins tracking fill levels on all assets.
    [] Once one asset trades into its gap while another does not, a colored box appears showing the SMT-Fill gap with a label indicating which asset is diverging.
    [] The SMT-Fill divergence line marks the exact level where the disagreement is occurring.
  2. Gaps are automatically removed when fully closed, keeping your chart clean.


WHY THIS IS THIS INDICATOR WORTH USING?

Without this indicator, identifying an SMT-Fill requires a trader to:


  • [] Watch three charts simultaneously and mentally note when FVGs form at the same time across all of them
    [] Track the exact high, midpoint, and low of each gap on each asset independently
    [] Monitor in real time whether each asset trades back into its own gap at each of these three levels
    [] Compare the fill status across assets to determine if a divergence exists
  • Remember which gaps have been fully closed and which are still active


This is practically impossible to do manually in real time across three assets and multiple active gaps. The indicator automates the entire process — concurrent FVG detection, independent multi-level fill tracking across all triad members, divergence flagging, and automatic lifecycle management — into a single overlay.

The SMT-Fill concept itself — tracking whether correlated assets agree or disagree on how they interact with simultaneously-formed imbalances — is an entirely original implementation. No other TradingView indicator detects concurrent FVGs across multiple assets, independently tracks fill levels at three price points per asset, and flags the divergence when assets disagree. This cannot be replicated by combining existing public FVG indicators because they only track a single asset and have no concept of cross-asset fill comparison.

AUTO TRIAD

ảnh chụp nhanh

The indicator automatically assigns the correct correlated triad based on your chart ticker:


  • [] Index Futures: NQ / ES / YM (+ micro variants MNQ / MES / MYM)
    [] FX Indices: NAS100 / SPX500 / US30
    [] Metals (spot): XAUUSD / XAGUSD / Copper
    [] Metals (futures): GC / SI / HG
    [] Forex: EURUSD / GBPUSD / DXY
    [] Currency Futures: 6E / 6B / DXY
    [] Energy: CL / RB / HO
    [] Bonds: ZF / ZB / TN
  • Crypto (spot): BTCUSD / ETHUSD / XRPUSD via Kraken


For unsupported tickers, manual configuration is available.

SETTINGS OVERVIEW


  • [] Asset Selection — Auto triad toggle, manual ticker inputs for three assets
    [] General Settings — Maximum gaps tracked, box extension length
    [] Gap Display — Bullish/bearish toggles, gap colors, border display and width
    [] SMT-F Line — Divergence line toggle, color, style, width
    [] Labels and Text — Asset label toggle, text size, text color, label position
    [] Filtering — Active-only mode (only show gaps while price is interacting)
  • Watermark — Position, size, custom phrase


INDICATOR SETTINGS/FILTERS

Here is an inside look of how the SMT-Fill [Oracle] looks:

ảnh chụp nhanh

DISCLAIMER

This indicator is for educational and informational purposes only. It does not constitute financial advice. Trading involves substantial risk of loss. Always use proper risk management and conduct your own analysis.

CREDITS

Developed by Danielliuks (z3nius) and bucko. Conceptual framework based on ICT (Michael Huddleston) and Quarterly Theory as taught by TraderDaye.

Open Sourced For all.
Enjoy.

Thông báo miễn trừ trách nhiệm

Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.