OPEN-SOURCE SCRIPT
تم تحديثه 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.
ملاحظات الأخبار
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.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.