OPEN-SOURCE SCRIPT
MTF Supertrend + MA [TCMaster]

Overview:
The MTF Supertrend + MA indicator combines two powerful multi-timeframe tools — the Supertrend and Moving Averages (MA) — into one unified and customizable framework. It allows traders to analyze market trends and dynamic support/resistance levels from multiple higher timeframes directly on a single chart.
⚙️ Features
🟩 Supertrend Section
Up to 4 configurable Supertrends, each from a different timeframe.
Adjustable ATR Length and Multiplier (Factor).
Independent visibility, colors, and timeframes for each layer.
Built-in alert conditions for trend reversals (Uptrend ↔ Downtrend).
Clean visual overlay on price chart.
🟦 Moving Average (MA) Section
Up to 4 multi-timeframe MAs displayed simultaneously.
Supports multiple MA types:
SMA, EMA, WMA, RMA, HMA, VWMA, DEMA, TEMA.
Independent control for each MA: color, line width, and timeframe.
Dynamic Info Label displaying distance between price and each MA in real-time.
Smooth, accurate MTF synchronization (no repainting from lookahead).
💡 How to Use
Identify higher-timeframe trend direction using Supertrend signals.
Use MAs as dynamic support/resistance or mean reversion zones.
Combine both for multi-timeframe confluence trading:
e.g., look for long entries when lower TF Supertrend turns bullish and price is above higher TF MAs.
Set alerts to get notified when any Supertrend flips its direction.
🧩 Customization
All parameters are grouped into two sections for clarity:
Supertrend Settings
MA Settings
Fully compatible with all chart types and timeframes.
⚠️ Notes
This indicator is designed for visual multi-timeframe analysis, not for automation.
Alerts only trigger when the corresponding timeframe bar closes.
Ensure replay mode or real-time conditions to verify alert behavior.
The MTF Supertrend + MA indicator combines two powerful multi-timeframe tools — the Supertrend and Moving Averages (MA) — into one unified and customizable framework. It allows traders to analyze market trends and dynamic support/resistance levels from multiple higher timeframes directly on a single chart.
⚙️ Features
🟩 Supertrend Section
Up to 4 configurable Supertrends, each from a different timeframe.
Adjustable ATR Length and Multiplier (Factor).
Independent visibility, colors, and timeframes for each layer.
Built-in alert conditions for trend reversals (Uptrend ↔ Downtrend).
Clean visual overlay on price chart.
🟦 Moving Average (MA) Section
Up to 4 multi-timeframe MAs displayed simultaneously.
Supports multiple MA types:
SMA, EMA, WMA, RMA, HMA, VWMA, DEMA, TEMA.
Independent control for each MA: color, line width, and timeframe.
Dynamic Info Label displaying distance between price and each MA in real-time.
Smooth, accurate MTF synchronization (no repainting from lookahead).
💡 How to Use
Identify higher-timeframe trend direction using Supertrend signals.
Use MAs as dynamic support/resistance or mean reversion zones.
Combine both for multi-timeframe confluence trading:
e.g., look for long entries when lower TF Supertrend turns bullish and price is above higher TF MAs.
Set alerts to get notified when any Supertrend flips its direction.
🧩 Customization
All parameters are grouped into two sections for clarity:
Supertrend Settings
MA Settings
Fully compatible with all chart types and timeframes.
⚠️ Notes
This indicator is designed for visual multi-timeframe analysis, not for automation.
Alerts only trigger when the corresponding timeframe bar closes.
Ensure replay mode or real-time conditions to verify alert behavior.
Скрипт с открытым кодом
В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения.
Отказ от ответственности
Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.
Скрипт с открытым кодом
В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения.
Отказ от ответственности
Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.