OPEN-SOURCE SCRIPT

MTF Supertrend + MA [TCMaster]

102
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.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.