OPEN-SOURCE SCRIPT

Advanced Multi-Timeframe Moving Averages

106
This indicator combines three fully customizable Moving Averages (MA30, MA80, MA120 by default) with multi-timeframe support, trend detection, and visual highlights — all in one lightweight script.

⚙️ Features

🕒 Multi-Timeframe Control – set a custom timeframe for each MA (e.g. MA30 from 1H, MA80 from 4H, MA120 from Daily).

🟢 Dynamic Trend Coloring – candles and background turn green when price is above all MAs, and red when below.

⚡ Crossover Alerts – built-in alerts for MA1↔MA2, MA2↔MA3, and MA1↔MA3 crossovers.

🎨 Optimized Colors – clear, bright MA colors for better visibility:

MA 1 (short-term): Gold (#FFD700)

MA 2 (mid-term): Deep Sky Blue (#00BFFF)

MA 3 (long-term): Hot Pink (#FF69B4)

🧩 Simple, Modular Design – easily adjust lengths, types (SMA/EMA), and timeframes from inputs.

🧠 How to Use

Add the indicator to your chart.

Set your preferred lengths (e.g. 30, 80, 120).

Optionally assign different timeframes for higher-TF analysis.

Use the color cues and crossovers to spot momentum shifts and trend changes.

🪶 Notes

Works great on all assets (crypto, forex, stocks, indices).

Compatible with both light and dark themes.

Built with Pine Script v5 — no external dependencies.

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。