OPEN-SOURCE SCRIPT
MTF 9 SMA of High (W/M/3M/6M/Year)

MTF SMA is a powerful multi‑timeframe indicator that plots higher‑timeframe Simple Moving Averages (SMA) on any lower timeframe chart.
It helps traders clearly identify higher‑timeframe trend, dynamic resistance, and support levels without switching charts.
This indicator is especially useful for intraday and swing traders who want higher‑timeframe context while trading on lower timeframes.
✅ Key Features
📐 Multi‑Timeframe SMA Plotting
Default timeframes:
Weekly
Monthly
3‑Monthly
6‑Monthly
Yearly (12M)
Plus 2 additional custom timeframe placeholders
All SMAs are visible on any chart timeframe (1m, 5m, 1H, Daily, etc.)
🎯 Source Selection (Dropdown)
Choose one common source for all SMAs:
High
Close
Open
Low
This makes the indicator flexible for different trading styles:
High → resistance mapping
Low → support mapping
Close → trend confirmation
Open → session bias analysis
🏷️ Smart Labels (Optional)
Enable/disable labels per timeframe
Labels show:
Timeframe
SMA length
Optional live SMA value
Labels update only on the last bar (clean & clutter‑free)
Automatic vertical offset to avoid overlap
🎛️ Full Customization
Show / hide each SMA line individually
Custom colors and line width
Label position offset (right side)
Works seamlessly on all instruments (Equities, Indices, Crypto, Forex)
🧠 How to Use
Use Weekly / Monthly SMAs as major trend direction
Watch for price reaction near HTF SMAs on lower timeframes
Combine with:
Breakouts
Pullbacks
VWAP / RSI / Price Action
Ideal for top‑down analysis
⚙️ Technical Notes
Built using Pine Script v6
Uses request.security() for accurate higher‑timeframe values
Non‑repainting (no future data leakage)
Optimized label handling (v6‑safe, no mutable arguments)
📌 Best For
Swing traders
Positional traders
Anyone using multi‑timeframe analysis
🚀 Summary
MTF SMA brings higher‑timeframe structure directly onto your trading chart with clean visuals, flexible source selection, and precise labeling—making it easier to trade with the trend, not against it.
It helps traders clearly identify higher‑timeframe trend, dynamic resistance, and support levels without switching charts.
This indicator is especially useful for intraday and swing traders who want higher‑timeframe context while trading on lower timeframes.
✅ Key Features
📐 Multi‑Timeframe SMA Plotting
Default timeframes:
Weekly
Monthly
3‑Monthly
6‑Monthly
Yearly (12M)
Plus 2 additional custom timeframe placeholders
All SMAs are visible on any chart timeframe (1m, 5m, 1H, Daily, etc.)
🎯 Source Selection (Dropdown)
Choose one common source for all SMAs:
High
Close
Open
Low
This makes the indicator flexible for different trading styles:
High → resistance mapping
Low → support mapping
Close → trend confirmation
Open → session bias analysis
🏷️ Smart Labels (Optional)
Enable/disable labels per timeframe
Labels show:
Timeframe
SMA length
Optional live SMA value
Labels update only on the last bar (clean & clutter‑free)
Automatic vertical offset to avoid overlap
🎛️ Full Customization
Show / hide each SMA line individually
Custom colors and line width
Label position offset (right side)
Works seamlessly on all instruments (Equities, Indices, Crypto, Forex)
🧠 How to Use
Use Weekly / Monthly SMAs as major trend direction
Watch for price reaction near HTF SMAs on lower timeframes
Combine with:
Breakouts
Pullbacks
VWAP / RSI / Price Action
Ideal for top‑down analysis
⚙️ Technical Notes
Built using Pine Script v6
Uses request.security() for accurate higher‑timeframe values
Non‑repainting (no future data leakage)
Optimized label handling (v6‑safe, no mutable arguments)
📌 Best For
Swing traders
Positional traders
Anyone using multi‑timeframe analysis
🚀 Summary
MTF SMA brings higher‑timeframe structure directly onto your trading chart with clean visuals, flexible source selection, and precise labeling—making it easier to trade with the trend, not against it.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.