Downloading...
OPEN-SOURCE SCRIPT

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

4 131
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

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.