OPEN-SOURCE SCRIPT
Advanced Multi-Timeframe Moving Averages

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.
⚙️ 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 אמיתית, היוצר של הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יכולים לבדוק ולאמת את הפונקציונליות שלו. כל הכבוד למחבר! למרות שאתה יכול להשתמש בו בחינם, זכור שפרסום מחדש של הקוד כפוף לכללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.
סקריפט קוד פתוח
ברוח TradingView אמיתית, היוצר של הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יכולים לבדוק ולאמת את הפונקציונליות שלו. כל הכבוד למחבר! למרות שאתה יכול להשתמש בו בחינם, זכור שפרסום מחדש של הקוד כפוף לכללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.