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
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.