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

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
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
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。