Dynamic EMA Cloud [algo_aakash]Dynamic EMA Cloud is a trend visualization indicator that combines two exponential moving averages with an ATR-based adaptive cloud. The cloud automatically adjusts to changing volatility conditions, helping traders visualize trend structure and market behavior more effectively.
Features
Fast and Slow EMA trend engine
ATR-based adaptive cloud expansion
Dynamic cloud opacity based on trend strength
Compression zone detection
Expansion zone detection
Trend transition alerts
Optional trend background coloring
Lightweight and efficient implementation
Inputs
Trend Engine
Fast EMA Length
Slow EMA Length
Adaptive Cloud
ATR Length
Cloud Expansion Factor
Compression Threshold
Expansion Threshold
Visual Settings
Show Compression Signals
Show Expansion Signals
Trend Background
Alerts
The indicator includes alert conditions for:
Bullish Trend Transition
Bearish Trend Transition
Compression Zone Detected
Expansion Zone Detected
Bullish Trend Active
Bearish Trend Active
How It Works
The indicator calculates two EMAs and measures the distance between them. This distance is normalized using ATR to estimate relative trend strength.
An adaptive cloud is then constructed around the EMA structure. As volatility increases, the cloud expands. As volatility decreases, the cloud contracts.
Compression signals appear when normalized trend strength falls below the selected threshold. Expansion signals appear when normalized trend strength exceeds the selected threshold.
Limitations
EMA calculations are inherently lagging.
Compression and expansion thresholds may require adjustment for different markets.
Signals should be evaluated within the broader market context.
Indicator outputs are based solely on historical price data.
Notes
Designed for trend visualization and market structure analysis.
Works across multiple asset classes and timeframes.
No future data is used in calculations.
No repainting mechanisms are intentionally employed.
Indicateur Pine Script®






















