OPEN-SOURCE SCRIPT

MTF Trend + SMC Structure (EMA/SMA Mix - HH/HL)

321
Objective

To provide a quick, visual, and reliable reading of market trends and structure.

Combines dynamic moving averages and SMC (market structure) logic.

Effectively integrates into the chart via a clear table displayed in the top right corner.

📊 What the indicator displays (by timeframe: M5, M15, M30, H1, H4, D1, W1)
🟢 1. MA Trend
Based on two moving averages (short and long).

Average Type:

EMA for M5 to M30 (reactive)

SMA for H1 to Weekly (smoother)

Display:

🟢 Up if short MA > long MA

🔴 Down if short MA < long MA

Customizable lengths per timeframe

🧱 2. Structure (SMC logic)
Detects Higher High / Higher Low and Lower High / Lower Low

Based on significant pivots (pivothigh, pivotlow)

Logic inspired by SMC swing trading

Display:

🟢 Up = bullish structure (HH + HL)

🔴 Down = bearish structure (LH + LL)

⚪ Neutral = no clear structure

✅ Advantages
🔍 Instant view of the overall multi-timeframe context

📉 Combines trend by MA and SMC structure

🎯 Helps filter out bad entries Countertrend

⚡️ Very useful for intraday, swing, or SMC traders

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.