OPEN-SOURCE SCRIPT
Updated Market Structure MTF Dashboard v6.3 [SMC]

Tired of cluttering your charts with manual lines, missing high-probability setups, and getting trapped by low-volume fakeouts?
Market Structure MTF Dashboard v6.3 is a institutional-grade analytical engine engineered for traders utilizing Smart Money Concepts (SMC) and Price Action. This script completely automates your technical analysis by scanning market structure, validating breaks with raw volume metrics, tracking institutional liquidity sweeps, and filtering micro-noise—all condensed into a beautiful, ultra-compact graphical dashboard.
Whether you trade Crypto, Forex, or Indices, this tool does the heavy lifting in the background, shifting your focus from tedious chart drawing to executing razor-sharp setups.
🛠️ Core Engine Features & Built-in Logic
1. High-Precision Swing & BOS Engine
2. Smart Money Footprints: Sweeps & FVGs
3. Multi-Timeframe (MTF) Context & Premium/Discount Matrix
4. Next-Gen Smart UI (Dashboard Layout)
📘 How to Trade It: Official Rules (Trading Rules)
This script is designed to act as an educational market assistant, providing pure mechanical logic and potential structural entry points rather than blind commercial trading signals. For maximum probability, follow these two systematic setups:
🟩 The Institutional Long Setup
🟥 The Institutional Short Setup
📅 Smart Weekend Protection Filter
No more distorted charts or broken session calculations during illiquid market closures.
Disclaimer: Past performance is not indicative of future results. Use proper risk management and treat this tool as a systematic structural assistant to streamline your confluence.
Market Structure MTF Dashboard v6.3 is a institutional-grade analytical engine engineered for traders utilizing Smart Money Concepts (SMC) and Price Action. This script completely automates your technical analysis by scanning market structure, validating breaks with raw volume metrics, tracking institutional liquidity sweeps, and filtering micro-noise—all condensed into a beautiful, ultra-compact graphical dashboard.
Whether you trade Crypto, Forex, or Indices, this tool does the heavy lifting in the background, shifting your focus from tedious chart drawing to executing razor-sharp setups.
🛠️ Core Engine Features & Built-in Logic
1. High-Precision Swing & BOS Engine
- Dynamic Pivot Detection: Automatically maps swing structure using adjustable left/right structural wings (leftBars / rightBars).
- True Break of Structure (BOS): Choose between conservative body-close confirmation (breakByClose) or aggressive wick breaches.
- RVOL Filtering: Eliminates low-liquidity fakeouts. A structure break is only considered validated if the breakout candle is backed by expansion volume exceeding the 20 SMA.
2. Smart Money Footprints: Sweeps & FVGs
- Liquidity Sweep Tracking: Detects false breakouts at key major highs/lows. If the price spikes past an old extreme but closes back inside the range, the engine instantly highlights a liquidity grab—one of the most powerful reversal signals in trading.
- Adaptive Fair Value Gaps (FVG): Tracks institutional inefficiencies. FVGs are dynamically filtered based on a minimum percentage size of the asset price (fvg_min_size) to avoid noise, and they remain live until fully mitigated (tested) by price action.
3. Multi-Timeframe (MTF) Context & Premium/Discount Matrix
- HTF Core Scanning: Fetches 4-Hour and Daily structural trends directly in the background.
- Equilibrium 0.5 Line: Plots the crucial midline of the 4H trading range.
- Value Assessment: Instantly updates whether price is inside the Premium Zone (expensive — look for Shorts) or Discount Zone (cheap — look for Longs) relative to the HTF range.
4. Next-Gen Smart UI (Dashboard Layout)
- Real-time Context Trigger (Top Row): Shows active Fibonacci expansion targets (T1 / T2) with exact real-time prices, live unmitigated FVG levels, or flashing institutional confirmations (⚡ SWEEP L / SWEEP H).
- Market Sentiment Histogram: A clean visual matrix (🟩/🟥) aggregating multi-timeframe weights to score total buyer vs. seller control.
- Chronological Session Tracker: Fully optimized single-row display.
- Left tile: Color-coded active session (Asia, London, NY) or overlaps (e.g., LON+NY).
- Right tile: Displays the exact local opening time of the upcoming session based on your custom tzOffset. No confusing countdowns—you know exactly when volatility is hitting the clock.
📘 How to Trade It: Official Rules (Trading Rules)
This script is designed to act as an educational market assistant, providing pure mechanical logic and potential structural entry points rather than blind commercial trading signals. For maximum probability, follow these two systematic setups:
🟩 The Institutional Long Setup
- HTF Trend Alignment: The 4H matrix block must be green (Bullish structure).
- Premium/Discount Context: Current price must be trading in the Discount Zone (below the yellow dashed Equilibrium line).
- The Trigger: The dashboard prints a flashing ⚡ SWEEP L: CONFIRMED LONG signal, showing that retail sell-stops were hunted and price recovered.
- Targets: Take profit at T1 / T2 prices printed on the dashboard, with the ultimate target being the high of the 4H range.
🟥 The Institutional Short Setup
- HTF Trend Alignment: The 4H matrix block must be red (Bearish structure).
- Premium/Discount Context: Current price must be trading in the Premium Zone (above the yellow dashed Equilibrium line).
- The Trigger: The dashboard prints a flashing ⚡ SWEEP H: CONFIRMED SHORT signal, showing that retail buy-stops were grabbed before a sudden drop.
- Targets: Take profit at T1 / T2 short target prices, aiming down toward the low of the 4H range.
📅 Smart Weekend Protection Filter
No more distorted charts or broken session calculations during illiquid market closures.
- Forex & Indices: The session tracker automatically freezes on Saturdays and Sundays, displaying a clean ⏸️ WEEKEND status tile.
- Crypto Markets: The filter automatically detects asset types, bypassing the weekend pause to ensure continuous 24/7/365 live session mapping.
Disclaimer: Past performance is not indicative of future results. Use proper risk management and treat this tool as a systematic structural assistant to streamline your confluence.
Release Notes
Welcome to the v6.3 Core Stabilization & Precision Update. This release focuses on stripping out legacy evaluation code, fixing critical compiler bugs, and maximizing real-time target clarity directly within the structural interface.🛠️ What's New & Fixed in v6.3
- Fixed Critical Compiler Bug (CE10272): Removed an invalid legacy condition evaluating syminfo.tuesday. Day-of-week logic has been entirely streamlined to standard strict enumerations, resolving the compilation error and ensuring full compatibility with the modern Pine Script environment.
- Purged Structural Code Noise: Cleaned up legacy logic checks from old testing phases. The core evaluation loop is now faster, lighter, and consumes fewer runtime resources.
- Precision Target Formatting: Dynamic Fibonacci expansion targets (T1 & T2) displayed on the master alert header now utilize format.mintick. This completely eliminates long floating-point decimals, replacing them with accurate, clean asset price quotes matching your current broker's feed.
- Optimized Multi-Timeframe Matrix: Refined background calls for 4-Hour and Daily structure parsing to ensure real-time UI synchronization without visual lag during high-volatility session crossovers.
Update instructions: If you are currently running an older version, simply copy the newly updated English source code, paste it into your Pine Editor, and hit "Save" / "Add to Chart" to immediately apply the fixes.
Release Notes
🚀 Release Notes: Market Structure MTF Dashboard v6.3Welcome to the major Advanced SMC Engine Integration update. This version bridges the gap between raw market structure and institutional order flow analysis by injecting deep fractals, internal liquidity tracking, and zone testing mechanics directly into the core calculation engine.
🛠️ What's New & Upgraded in v6.3
- Dynamic Liquidity Pools Radar (EQH / EQL): The engine now automatically scans for relatively equal highs and lows. When retail double tops or double bottoms form, their exact price levels are captured and displayed on the dashboard as active liquidity magnets.
- POI Mitigation & Testing Engine: The FVG module has been upgraded to track real-time state changes. Instead of just monitoring structural gaps, it now actively detects when price enters a previously unmitigated Higher Timeframe (HTF) Zone of Interest (POI) for a retest before the next expansion leg.
- Strict Triple-Fractal Alignment: Introduced a heavy-weight trend synchronization matrix across the Daily, 4-Hour, and execution timeframes to instantly pinpoint maximum-probability trading phases.
- UI Contrast & Legibility Fix: Corrected a text rendering bug where the text color blended into the background of the alert cell, ensuring pristine readability across all light and dark chart themes.
📖 Dashboard Notification Playbook (Action Guide)
The top row of the dashboard now functions as an intelligent context filter. Here is exactly what each status means and how you should react to it:
1. 🔮🔮 FRACTAL ALIGNMENT: MAX LONG / SHORT
- What it means: The highest probability market setup. The current execution timeframe, the 4-Hour trend, and the Daily trend are all perfectly aligned in the same direction, while the price is sitting inside an advantageous HTF Discount/Premium zone.
- Trader Action: Maximum Focus. This represents a phase of the strongest and cleanest institutional order flow. Look for an entry trigger on lower timeframes (LTF Choch / Flip) strictly in the direction of the alignment. The trade potential is a major run toward the external structural highs/lows.
2. ⚡ SWEEP L / H: CONFIRMED LONG / SHORT
- What it means: A mechanical liquidity sweep has just occurred at a key swing high/low while being fully synchronized with the 4H trend context. Institutional capital has harvested retail stop-losses and pushed the candle close back inside the trading range.
- Trader Action: Aggressive Entry Setup. A liquidity sweep provides the immediate fuel needed for a sharp reversal. You can hunt for an entry on the current timeframe with a tight stop-loss placed just past the sweep wick. The nearest targets are the range Equilibrium (0.5) or the opposing liquidity pools.
3. ⏳ POI MITIGATION IN PROGRESS
- What it means: Price is currently interacting with an active, unmitigated Fair Value Gap (FVG) and holding its boundaries. Smart money is actively refilling institutional limit orders within this zone.
- Trader Action: Trigger Monitoring Mode. Do not jump into market orders blindly. Wait for the current candle close to print a clear structural reaction to the POI (such as a reversal candlestick pattern or an LTF structural shift inside this specific zone).
4. 🟢 BUY ZONE FVG / 🔴 SELL ZONE FVG ➔ [Price]
- What it means: A strong market imbalance has been created, but price hasn't returned to it yet. The script pre-calculates and highlights the exact price of the zone of interest that lines up with the dominant market trend.
- Trader Action: Set Alerts or Limit Orders. This is your primary high-probability execution zone. Mark this specific level on your chart or place a standard TradingView alert there so you are fully prepared to trade once price pulls back to mitigate it.
5. LONG / SHORT ➔ T1 / T2: [Price]
- What it means: The local structural trend is fully confirmed, and price is moving through its standard Fibonacci expansion targets (0.272 / 0.618).
- Trader Action: Trade Management. If you are already in a position, these are your precise Take Profit 1 and Take Profit 2 targets. If you are not in a trade, it is too late to chase the market as the move is near completion—wait for the next structural cycle to develop.
6. 🧲 EQH / EQL: [Price] (Row 4 Radar)
- What it means: This is not a static alert string, but a continuous internal liquidity tracker showing the exact prices where retail stop-losses have accumulated behind equal highs or equal lows.
- Trader Action: Use these specific price quotes as ideal target magnets for your take-profits. Price will seek out these pools of liquidity with a very high probability before any major trend reversal can occur.
Release Notes
What's New & Upgraded- Dynamic Target Solver for Alignment Modes (New!): The 🔮 MAX LONG and 🔮 MAX SHORT notification cells are no longer passive. They now actively calculate and display your trade target right inside the alert bar. The engine automatically looks for near-term Equal Highs/Lows (EQH/EQL) to use as targets. If liquidity is completely clear, it dynamically scales up to target the major structural 4H Range Boundaries.
- Dynamic Liquidity Pools Radar (EQH / EQL): The engine automatically scans for relatively equal highs and lows within your custom threshold. When retail double tops or double bottoms form, their exact price levels are captured and displayed in the tracking matrix as active liquidity magnets (or show CLEAR when no clean retail pools are present).
- POI Mitigation & Testing Engine: The FVG module has been upgraded to track real-time state changes. Instead of just monitoring structural gaps, it now actively detects when price enters a previously unmitigated Higher Timeframe (HTF) Zone of Interest (POI) for a retest before the next expansion leg.
- Strict Triple-Fractal Alignment: Introduced a heavy-weight trend synchronization matrix across the Daily, 4-Hour, and execution timeframes to instantly pinpoint maximum-probability trading phases.
- UI Contrast & Legibility Hotfix: Corrected a text rendering bug where the text color blended into the background of the mitigation alert cell, ensuring pristine readability across all light and dark chart themes.
Release Notes
POI Mitigation & Retest Range Tracking: The FVG module now provides absolute clarity during execution phases. When the price is actively mitigating a zone of interest, the dashboard status row dynamic text upgrades to ⏳ POI MITIGATION ➔ [Min Price - Max Price]. This delivers the precise institutional imbalance bounds straight to the header, removing the need to manually hunt for FVG lines on the chart.Release Notes
🛠️ FVG Engine Hotfix & Invalidation Update- Fixed POI Mitigation "Sticky" Status Bug: Resolved a critical logic bug in the Fair Value Gap (FVG) module where the dashboard alert row would remain locked in the ⏳ POI MITIGATION state after the price had already broken out and expanded away from the zone.
- Advanced Dynamic Invalidation Logic: Completely overhauled the area clearance engine. The script now instantly nullifies an active FVG and clears the mitigation status as soon as the current candle's low moves completely above a bullish FVG's upper bound, or the candle's high falls completely below a bearish FVG's lower bound.
- Real-Time POI Retest Range Tracking: Upgraded the header status cell to actively parse and display the exact, absolute price boundaries of the tested institutional imbalance in a ➔ [Min Price - Max Price] format, ensuring perfect clarity during execution phases without needing to manually hunt for FVG lines on the chart.
Release Notes
🛠️ Order Flow Filter & Inverted FVG (IFVG) Integration- Integrated Bearish/Bullish Breakout Detection (IFVG Engine): Upgraded the institutional POI tracking module to actively detect when Fair Value Gaps are invalidated by an aggressive expansion bar closing through the zone rather than reacting to it.
- Dynamic Order Flow Sentiment Override: Implemented a structural fail-safe to prevent false MAX LONG or MAX SHORT readings during sharp market turnarounds. If a bullish FVG is cleanly pierced downward and a candle closes below its lower bound, the dashboard automatically penalizes the bullish score (deducting 60 points) and allocates momentum to the short side.
- Real-Time UI Proactive Alert Matrix: High-priority execution states have been added to the master cell. The system now overrides generic multi-timeframe directional bias and displays a high-visibility warning—⚠️ IFVG: BEARISH BREAKOUT or ⚠️ IFVG: BULLISH BREAKOUT—the moment a local structural block gets cleanly breached by candle body close.
Release Notes
🛠 Key Changes & Engineering Updates- Isolated Dual-Stream POI Tracking Engine
- The Problem: Previously, the script utilized a unified FVG memory pool shared between bullish and bearish states. Generating a new setup instantly purged the historical counter-setup context from memory.
- The Solution: Fully removed active_fvg_* global variables. Introduced isolated, parallel memory streams (bull_fvg_* and bear_fvg_*). The engine now monitors, tracks, and evaluates both bullish and bearish Fair Value Gaps simultaneously.
- Trend-Agnostic FVG Scanning
- The Problem: FVG identification was strictly gated behind the current local structural trend (marketTrend == 1 or -1). If price rapidly flushed into a higher-timeframe discount array before the local trend flipped, valid reversal POIs remained invisible.
- The Solution: Completely dropped local trend verification from the initialization logic. The engine now continuously maps all structurally valid gaps across the order flow, regardless of immediate localized direction.
- Precision IFVG & Invalidation Mechanics
- The Problem: FVG validation and destruction metrics triggered prematurely on arbitrary wick containment or strict low > fvg_upper_bound violations, destroying high-value historical test zones.
- The Solution: Migrated the logic to structural validation based purely on candle body close execution (close). Gaps are now dynamically checked against a strict $2\%$ macro noise buffer before full structural cleanup occurs.
- Dynamic Sentiment Scoring Recalibration
- The Problem: Inverted FVGs previously triggered a destructive flat $-60$/$+60$ override. This heavily skewed the mathematical balance, causing the UI panel to freeze at 100% Short or 100% Long, completely blind to crucial Premium/Discount positioning.
- The Solution: Re-engineered the calculation grid using fixed weight tiers (Structure max $75\%$, Range Location max $25\%$). Inverted FVGs now act as an aggressive $+50$ momentum modifier rather than a total structural override. The dashboard now properly displays real-time relative strength metrics even during massive extension sweeps.
📦 Deployment
This is a drop-in update for v6.4. Paste the updated source file directly into your Pine Script editor, save, and add it to your active layout to unlock the optimized telemetry.
Release Notes
🛠 Key Changes & Engineering Updates- Multi-Timeframe Tuple Optimization
The Problem: The engine previously performed multiple, isolated request.security calls to fetch various 4H data points (trends, highs, lows). Each independent call multiplied the rendering overhead and increased script latency.
The Solution: Bundled all 4H data pipeline requests (trend_4h, high_4h, and low_4h) into a single unified tuple execution context. This significantly reduces data fetching roundtrips and optimizes history load times. - Candle-Close Validation Framework (Repainting Protection)
The Problem: Inverted FVG breakouts and testing levels were evaluating active, incomplete candle data in real-time. This caused the dashboard status to fluctuate or "flicker" rapidly before the hourly candle officially closed.
The Solution: Migrated structural invalidation and IFVG breakout logic to look strictly at historical confirmed candle execution data (close[1]). The dashboard state remains stable throughout the life of the current bar without losing immediate wick testing telemetry.
📦 Deployment
This is a standard minor update. Replace your existing Pine Script code with the v6.4.2 source file, save the script, and refresh your current chart layout.
Release Notes
AddedHard Trend Fail-Safe System: Implemented a structural override inside the scoring calculation. If both the local timeframe and the 4H higher timeframe trends are perfectly aligned as bearish (-1), the long bias score is instantly throttled to 0.0%. Conversely, if both are strictly bullish (1), the short bias score is zeroed out. The engine now respects aggressive momentum over mathematical premium/discount zones.
Fixed
False Long Bias on Impulsive Sells: Fixed a critical logical bug where the scoring engine generated a LONG bias during aggressive downtrends. This occurred because the asset dropped deep below the HTF range (isDiscountHTF), which mathematically forced the indicator to aggressively scale down short weight and hunt for counter-trend reversals.
UI-Context Dissonance: Fixed the visual discrepancy where the asset was printing red, impulsive bearish candles while the dashboard mistakenly suggested long targets (LONG ➔ T1).
Inverted FVG Status Overlaps: Fixed an issue where the dashboard would display a red breakout alert due to a single historical candle body close below an old FVG, even though the overall volume matrix and higher timeframe trend were heavily dominated by buyers (L 79%).
Changed
UI Hierarchy Realignment: Refactored the dashboard status bar block to protect the interface from noise. High-impact signals like IFVG: BEARISH BREAKOUT are now filtered through a trend dominance barrier. They will only override the status panel if the current mathematical scoring matrix confirms that the respective side actually holds over 50% market control (shortPct > 50 or longPct > 50).
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.