OPEN-SOURCE SCRIPT
Coloured Multi Moving Averages by Fin Viraj

Coloured Multi Moving Averages by Fin Viraj
📊 Overview
A comprehensive and clean moving averages indicator that supports 9 different types of moving averages with dynamic visual feedback. Perfect for both short-term trading and long-term analysis.
✨ Key Features
🔄 Multiple Moving Average Types
SMA (Simple Moving Average)
EMA (Exponential Moving Average)
WMA (Weighted Moving Average)
VWMA (Volume Weighted Moving Average)
HMA (Hull Moving Average)
DEMA (Double Exponential Moving Average)
TEMA (Triple Exponential Moving Average)
ZLEMA (Zero Lag Exponential Moving Average)
RMA (Rolling Moving Average/Wilder's Smoothing)
🎨 Dynamic Visual Feedback
Smart Color Change: MA1 automatically changes color based on price position (green when price above, red when price below)
Candle Highlighting: Candles change color when price crosses MA1
Individual Visibility Controls: Show/hide each MA independently
Customizable Styling: Adjust colors and line thickness
⚙️ Flexible Configuration
3 Independent MAs: Each can be set to different types and periods
Default Settings: 9-period, 21-period, and 50-period (commonly used in trading)
Easy Customization: Quick dropdown selection for MA types
Clean Interface: Organized settings groups for easy navigation
📈 How to Use
For Day Trading:
Set MA1 to HMA(9) for quick signals
Set MA2 to EMA(21) for medium-term trend
Set MA3 to SMA(50) for overall trend direction
For Swing Trading:
Set MA1 to EMA(9) for entry signals
Set MA2 to EMA(21) for trend confirmation
Set MA3 to EMA(50) for major trend
For Long-term Investing:
Use SMA(20), SMA(50), SMA(200) combination
Focus on price position relative to MA1 color changes
🚨 Alert System
Price crossing above MA1
Price crossing below MA1
Customizable alert messages with ticker symbols
🎯 Perfect For:
✅ Trend identification
✅ Entry and exit timing
✅ Multi-timeframe analysis
✅ Support and resistance levels
✅ Clean chart analysis without clutter
💡 Pro Tips:
Color Coding: Use the dynamic MA1 color change to quickly identify trend direction
MA Hierarchy: Arrange faster MA above slower MA for better trend visualization
Candle Colors: Enable candle color change for immediate visual confirmation of MA1 crosses
Mix & Match: Experiment with different MA combinations (e.g., HMA + EMA + SMA)
🔧 Default Configuration:
MA1: EMA(9) - Fast trend detection
MA2: EMA(21) - Medium-term trend
MA3: EMA(50) - Long-term trend
Dynamic colors enabled for instant visual feedback
No complex tables, no cluttered signals - just clean, professional moving averages with smart visual enhancements.
Compatible with all markets: Stocks, Forex, Crypto, Commodities, and Indices.
📊 Overview
A comprehensive and clean moving averages indicator that supports 9 different types of moving averages with dynamic visual feedback. Perfect for both short-term trading and long-term analysis.
✨ Key Features
🔄 Multiple Moving Average Types
SMA (Simple Moving Average)
EMA (Exponential Moving Average)
WMA (Weighted Moving Average)
VWMA (Volume Weighted Moving Average)
HMA (Hull Moving Average)
DEMA (Double Exponential Moving Average)
TEMA (Triple Exponential Moving Average)
ZLEMA (Zero Lag Exponential Moving Average)
RMA (Rolling Moving Average/Wilder's Smoothing)
🎨 Dynamic Visual Feedback
Smart Color Change: MA1 automatically changes color based on price position (green when price above, red when price below)
Candle Highlighting: Candles change color when price crosses MA1
Individual Visibility Controls: Show/hide each MA independently
Customizable Styling: Adjust colors and line thickness
⚙️ Flexible Configuration
3 Independent MAs: Each can be set to different types and periods
Default Settings: 9-period, 21-period, and 50-period (commonly used in trading)
Easy Customization: Quick dropdown selection for MA types
Clean Interface: Organized settings groups for easy navigation
📈 How to Use
For Day Trading:
Set MA1 to HMA(9) for quick signals
Set MA2 to EMA(21) for medium-term trend
Set MA3 to SMA(50) for overall trend direction
For Swing Trading:
Set MA1 to EMA(9) for entry signals
Set MA2 to EMA(21) for trend confirmation
Set MA3 to EMA(50) for major trend
For Long-term Investing:
Use SMA(20), SMA(50), SMA(200) combination
Focus on price position relative to MA1 color changes
🚨 Alert System
Price crossing above MA1
Price crossing below MA1
Customizable alert messages with ticker symbols
🎯 Perfect For:
✅ Trend identification
✅ Entry and exit timing
✅ Multi-timeframe analysis
✅ Support and resistance levels
✅ Clean chart analysis without clutter
💡 Pro Tips:
Color Coding: Use the dynamic MA1 color change to quickly identify trend direction
MA Hierarchy: Arrange faster MA above slower MA for better trend visualization
Candle Colors: Enable candle color change for immediate visual confirmation of MA1 crosses
Mix & Match: Experiment with different MA combinations (e.g., HMA + EMA + SMA)
🔧 Default Configuration:
MA1: EMA(9) - Fast trend detection
MA2: EMA(21) - Medium-term trend
MA3: EMA(50) - Long-term trend
Dynamic colors enabled for instant visual feedback
No complex tables, no cluttered signals - just clean, professional moving averages with smart visual enhancements.
Compatible with all markets: Stocks, Forex, Crypto, Commodities, and Indices.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Fin Viraj
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Fin Viraj
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.