PROTECTED SOURCE SCRIPT
ที่อัปเดต:

Ultimate Market Structure + MTF Dashboard [FIXED]

143
Ultimate Market Structure + MTF Dashboard — Indicator Description
🔶 Overview

Ultimate Market Structure + MTF Dashboard is a fully-automated Smart Money Concepts (SMC) market-structure indicator designed to give traders extremely clean and accurate structural mapping on any timeframe.
It intelligently detects:

External (Swing) Structure

Internal Structure

BOS / CHoCH (Break of Structure / Change of Character)

HH/HL/LH/LL swing labels

Strong/Weak Highs & Lows

Equal Highs (EQH) & Equal Lows (EQL)

Internal BOS/CHoCH (micro-structure)

Multi-Timeframe Structure Dashboard (D, H4, H1, M15, M5)

This indicator eliminates clutter, repaints nothing, and provides crystal-clear visual understanding of market direction.

🎯 What This Indicator Solves

Most structure indicators fail because they:

✔ spam BOS/CHoCH everywhere
✔ repaint pivots
✔ mix internal and external structure
✔ draw messy lines
✔ ignore confluence
✔ don’t show higher timeframe structure

This script solves all of that by using:

Gap-proof pivot detection

Strict internal/external structure separation

Proper BOS/CHoCH logic using previous break

“LastBreak memory” system (no double BOS on same leg)

ATR-filtered internal pivots

Candle-context confluence filter

User-controlled filters for BOS/CHoCH only

Everything is designed for clean, reliable structure.

🧠 How It Works (Logic Explained Clearly)
1️⃣ Swing Structure – External

Based on user-defined swing length (default: 50).
Detects major turning points and evaluates:

HH / HL → Bullish structure

LH / LL → Bearish structure

Once a swing high/low is confirmed, the indicator tracks:

Has price crossed that pivot?

If yes → BOS or CHoCH depending on previous break direction.

2️⃣ Internal Structure – Micro Trend

A second layer using small length pivots (default: 5).
Useful for:

Entries

Scalp-level reversals

Early CHoCH detection

Internal structure uses ATR distance from swing pivots to avoid overlap.

3️⃣ BOS / CHoCH Logic

The script uses a very strict rule:

If previous break direction was opposite → CHoCH

If previous break direction was same → BOS

This eliminates false CHoCH spam and improves trend clarity.

4️⃣ Strong & Weak High/Low Detection

Each time a BOS occurs:

In bearish trend → last swing high = Strong High

In bullish trend → last swing low = Strong Low

Opposite becomes Weak High/Weak Low

These are important Smart Money Concepts levels for:

Premium/discount zones

Liquidity targets

Stop hunts

5️⃣ Equal Highs & Equal Lows (EQH/EQL)

The script automatically identifies EQH/EQL using:

Percentage threshold

Confirmation bar count

Useful for:

Liquidity sweep setups

Inducement

Stop runs

6️⃣ Multi-Timeframe Dashboard

Displays Internal & External structure for:

D (Daily)

H4

H1

M15

M5

Each cell is color-coded:

🟢 Bullish
🔴 Bearish
⚪ Neutral

This gives you instant top-down analysis without switching charts.

📌 What You Can Use This Indicator For
✔ Trend Trading

Keep trades aligned with:

Higher timeframe external trend

Lower timeframe internal entries

For example:

Daily → Bullish

H1 → Bullish

M5 → CHoCH bullish

Entry → Pullback to strong low

✔ Scalping

Internal structure (i-BOS, i-CHoCH) gives:

Fast reversals

Micro CHoCH entries

High-frequency trend shifts

Works extremely well on 1M–5M.

✔ Smart Money Concepts Trading

This indicator gives every SMC component you need:

Liquidity (EQH/EQL)

Swing structure

Internal structure

BOS/CHoCH

Strong/Weak High/Low

Multi-TF context

Perfect for ICT/SMC trading style.

✔ Institutional Order Flow Mapping

Using strong/weak highs/lows and BOS, you can easily determine:

Where smart money targets your stops

Where displacement started

Where structure shifted

Where mitigation may occur

✔ High-Timeframe Confirmation

The dashboard prevents you from trading against:

Daily trend

H4 liquidity levels

H1 structure direction

📈 Who Is This Indicator For?
Beginners

Learn structure visually instead of guessing.

Advanced Traders

Combine structure with:

Liquidity sweeps

FVG

OB

Breaker blocks

Momentum shifts

Scalpers

Use internal BOS/CHoCH for sniper entries.

Swing Traders

Use swing BOS to hold trades for large R:R moves.

ICT / SMC Traders

Perfect for order-block & FVG models.

📌 Recommended Settings
Swing Structure

Length: 50–100

Best for BTC, FX, XAU

Internal Structure

Length: 3–7

Best for scalping

EQ Threshold

FX: 0.10% – 0.25%

Crypto: 0.35% – 0.5%

Confirm Method

Close = safer

Wick = aggressive (scalping)

🧩 Unique Features (Compared to Other Indicators)

✔ Advanced gap-proof pivot engine
✔ Proper historical vs. present structure mode
✔ ATR-filtered internal pivots
✔ Smart confluence filter (detect candle context)
✔ Chart remains clean & minimal
✔ Works on all timeframes including 1-second
✔ No repaint structure
✔ Optimised for high-volatility assets like XAUUSD

🔚 Final Notes

This indicator was engineered to give traders a complete structure toolkit with professional-grade accuracy normally found only in premium paid tools.

With:

Clean BOS/CHoCH

Perfect swing tracking

Full multi-TF dashboard

Smart liquidity detection

Strong/weak level mapping

You can analyse any market with clarity and confidence.
เอกสารเผยแพร่
What this indicator does

This script is a complete market structure suite built around clean Smart Money / swing logic:

External swing structure with BOS / CHoCH lines

Internal structure for finer intraday moves

HH / HL / LH / LL swing labels (optional)

Strong / Weak Highs & Lows auto-extended as live S/R

Equal Highs / Lows (EQH / EQL) liquidity levels

Multi-Timeframe Market Structure Dashboard (D, H4, H1, M15, M5)

Optional Micro Reversal BUY / SELL signals with two modes:

Mode A – Early (aggressive, first reaction after liquidity sweep)

Mode B – Safer (requires stronger confirmation after the sweep)

The main idea:
Use the structure engine to understand where price is in the trend, and use the micro-reversal engine only to time entries at the extremes (bottoms for buys, tops for sells).

🔹 Core logic – Market Structure Engine

1. External Swing Structure (BOS / CHoCH)

Uses a custom gap-proof pivot detection (phExt/plExt) with swingLength.

Marks major swing highs/lows and tracks when price breaks them.

At a break, it classifies the move as:

BOS (Break of Structure) – continuation of current trend

CHoCH (Change of Character) – potential trend reversal

You can choose confirmation method:

Close above/below the pivot

Wick touch above/below

You can filter what you see:

Bullish swings: All / BOS only / CHoCH only

Bearish swings: All / BOS only / CHoCH only

Lines are drawn at the broken pivot price with labels “BOS” or “CHoCH”, in your chosen colors & styles.

2. Internal Structure (i-BOS / i-CHoCH)

Uses shorter pivots (internalLength) to track internal leg structure.

Same BOS/CHoCH logic, but applied to internal highs/lows.

Optional Confluence Filter:

Bullish internal pivots only accepted on strong bullish candles.

Bearish internal pivots only accepted on strong bearish candles.

This removes a lot of noise inside ranges.

3. Swing Points (HH / HL / LH / LL)

For both swing and internal structures, the indicator can label:

HH – Higher High

HL – Higher Low

LH – Lower High

LL – Lower Low

These help you quickly read trend progression visually.

4. Strong / Weak Highs & Lows

The script tracks trailing high/low levels and labels them dynamically:

In a downtrend, recent highs tend to act as Strong Highs, and lows become Weak Lows.

In an uptrend, recent lows become Strong Lows, and highs become Weak Highs.

These levels are extended to the right and labeled, giving you auto S/R levels that align with the actual structure context.

5. Equal Highs & Lows (EQH / EQL)

When two swing highs (or lows) are within a configurable percentage threshold (eqThreshold) and separated by at least eqConfirmBars candles, the script marks them as:

EQH – Equal Highs (potential liquidity pool above)

EQL – Equal Lows (potential liquidity pool below)

This is useful for spotting liquidity resting above/under clean double tops/double bottoms.

🔹 Multi-Timeframe Dashboard

The built-in dashboard shows internal + external structure direction across:

D, H4, H1, M15, M5

For each timeframe it calculates if structure is:

Bullish (making HH + HL or general up progression)

Bearish (making LH + LL or general down progression)

Neutral (no clear structure yet)

Cells are color-coded:

Green → Bullish

Red → Bearish

Gray → Neutral

You can move the dashboard to any corner of the chart and customize swing lengths used for the dashboard via:

dashExtLength (external)

dashIntLength (internal)

Use this as your HTF bias filter – only take buys when higher-timeframe structure is bullish, and only take sells when it’s bearish.

🔹 Micro Reversal Engine (BUY/SELL signals)

On top of the clean structure, the script has an optional micro reversal module designed to catch short-term turns around key levels.

Inputs (Micro Group):

Enable Micro Reversal Signals – master toggle

Mode: A Early / B Safer / Off

Signal Display Style – Arrow / Text / Box / Arrow + Text

Buy Label Color, Sell Label Color

Bars Between Signals – anti-spam filter

Core logic:

Liquidity Sweeps

Bullish side: sweepLow = low < low[1] or low < low[2]

Bearish side: sweepHigh = high > high[1] or high > high[2]
→ This checks for stop hunts / liquidity grabs on recent lows or highs.

Candle Direction

bullish = close > open

bearish = close < open

Mode A – Early (Aggressive)

BUY A: sweepLow + bullish candle

SELL A: sweepHigh + bearish candle
→ Fires on the first reaction candle after the sweep. Very early, more signals, more noise.

Mode B – Safer (Filtered)

BUY B:

Sweep under prior lows

Bullish candle

Close above previous high

Body vs wick filtered using ATR ((close - low) > atr * 0.3)

SELL B:

Sweep above prior highs

Bearish candle

Close below previous low

Body vs wick filtered ((high - close) > atr * 0.3)
→ This requires strong rejection + follow-through, so fewer but cleaner signals.

Micro Mode Selector

microMode = "A" → uses A logic

microMode = "B" → uses B logic

microMode = "Off" → no micro signals (pure market structure only)

Signal Display

Buys are drawn near lows

Sells are drawn near highs

You can show them as:

Arrows

Text (“BUY” / “SELL”)

Box

Arrow + Text

🔹 How to use it (practical guide)

1. For pure Smart-Money market structure (no signals):

Set microMode = "Off"
→ You get only BOS/CHoCH, HH/HL/LH/LL, Strong/Weak levels, EQH/EQL, and the MTF dashboard.

This is the cleanest view if you just want to mark structure and trade manually.

2. For cleaner micro-reversal signals (recommended):

Use microMode = "B" (Safer)

Keep Bars Between Signals at 1 or 2 to avoid spamming multiple signals in a tight cluster.

Execution rules:

Only BUY near the bottom of the leg:

Micro BUY signal should appear close to a swing low, Strong Low level, or demand area.

Avoid buying when a BUY appears near the top of the move or near a Strong High / resistance.

Only SELL near the top of the leg:

Micro SELL signal should appear near swing highs, Strong High level, or supply area.

Avoid selling if the signal prints low in the leg or into obvious support.

Always respect the MTF dashboard:

If D/H4/H1 are all bullish → focus on BUYS only.

If D/H4/H1 are all bearish → focus on SELLS only.

The indicator is meant to give you structure first, and signals only as confirmation, never the other way around.

🔹 Timeframes & Markets

Designed around XAUUSD, but works on any FX / indices / crypto.

Best used on M5–M15 for micro entries, with H1/H4/D providing the higher-timeframe structure on the dashboard.

🔹 Disclaimer

This indicator does not guarantee 90% win rate and is not financial advice.
It’s a tool to visualize structure, liquidity, and potential reversal points.
Always combine with your own risk management and forward testing before trading live.

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน