OPEN-SOURCE SCRIPT

Advanced Multi-Timeframe Moving Averages

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

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

Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.