OPEN-SOURCE SCRIPT

Dynamic MA Divergence System (DMDS)

**Indicator Name:** Dynamic MA Divergence System (DMDS)

**Description:**
The Dynamic MA Divergence System (DMDS) is a multi-functional technical analysis tool designed to identify trend strength, momentum shifts, and potential reversal signals. By combining moving average differentials with adaptive volatility thresholds, this indicator provides a clear visual representation of market dynamics across any timeframe.

**Key Features:**
1. **Dual MA Differential**
- Tracks the difference between two customizable moving averages (SMA/EMA)
- Visualized as a colored oscillator for quick trend bias identification


2. **Smart Divergence Detection**
- Automatically marks price-indicator divergences with intuitive arrows
- Filters minor fluctuations via adjustable amplitude thresholds


**Usage Suggestions:**
- **Trend Confirmation**: Use the oscillator’s position relative to the zero line
- **Reversal Signals**: Watch for divergence patterns with price action
- **Volatility Scaling**: Adjust channel multiplier for ranging/trending markets

**Parameters:**
- MA Periods (6/60default)
- Volatility Period (20 bars)
- Divergence Detection Length (50 bars)

**Community Guidelines Compliance:**
- No repainting
- No future-looking calculations
- Fully customizable inputs
- Clear risk disclaimer in code comments

*Note: This tool is designed for educational/research purposes. Always combine with other analysis methods and proper risk management.*

---

This description adheres to TradingView’s standards by:
1. Avoiding profit guarantees
2. Using neutral, non-promotional language
3. Clearly explaining functionality
4. Including proper categorization (Oscillator type)
5. Providing transparent parameter explanations

Clause de non-responsabilité