EMA-SMA Moving Average Cloud v2EMA-SMA Moving Average Cloud v2
A versatile moving average indicator featuring two operating modes: Simple Mode for quick setups with preset length combinations, and Multi-MA Mode for advanced configurations with up to 5 customizable moving averages.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
FEATURES
▸ Unified MA Type Selection
Choose between EMA or SMA - the selected type applies consistently across all moving averages in both modes.
▸ Simple Mode (Default)
Perfect for traders who prefer classic dual-MA setups:
• Preset length combinations: 9/21, 21/50, 50/200, 10/20, 20/50, 8/21, 13/48, 5/13
• Option to define custom fast/slow lengths
• Visual cloud between the two MAs showing trend direction
• Automatic buy/sell signals on crossovers
▸ Multi-MA Mode
For traders requiring more comprehensive analysis:
• Up to 5 independently configurable moving averages
• Individual control over length, color, and line width for each MA
• Flexible cloud pairing - choose any two MAs to form the cloud
• Signals generated based on selected cloud pair crossovers
▸ Dynamic Cloud Visualization
• Color-coded trend identification (green for bullish, red for bearish)
• Adjustable transparency
• Cloud automatically reflects the relationship between selected MAs
▸ Cross Signals & Labels
• Triangle markers on MA crossovers
• Optional buy/sell labels
• Customizable signal colors
▸ Higher Timeframe Support
• Overlay HTF moving averages on your current chart
• Useful for multi-timeframe confluence analysis
▸ Info Panel
• Optional on-chart display showing current MA values, trend direction, and active settings
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW TO USE
Simple Mode:
1. Select your preferred MA type (EMA/SMA)
2. Choose a preset or define custom fast/slow lengths
3. Use the cloud color to identify trend direction
4. Look for crossover signals for potential entries
Multi-MA Mode:
1. Enable "Multi-MA Mode" in Core Settings
2. Configure each MA (enable/disable, set length, choose color)
3. Select which MA pair should form the cloud
4. Monitor crossovers between your selected cloud pair for signals
Common Setups:
• Scalping: 9/21 EMA on lower timeframes
• Swing Trading: 21/50 or 50/200 on daily charts
• Trend Following: Multiple MAs (9, 21, 50, 100, 200) in Multi-MA mode
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ALERTS
• Bullish Cross - Fast MA crosses above Slow MA
• Bearish Cross - Fast MA crosses below Slow MA
• Trend Turned Bullish - Trend shifts from bearish to bullish
• Trend Turned Bearish - Trend shifts from bullish to bearish
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
NOTES
• The cloud provides a visual representation of trend strength - wider clouds indicate stronger momentum
• In Multi-MA mode, signals are only generated when a cloud pair is selected (not "None")
• HTF overlay is available only in Simple Mode
• Works on all instruments and timeframes
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
If you find this indicator useful, please consider giving it a boost!
Feedback and suggestions are always welcome.
Pine Script® indicator






















