PROTECTED SOURCE SCRIPT
MACD Pro - Multi-Filter Smart Divergence System

# MACD Pro - Multi-Filter Smart Divergence System
## Professional MACD with Advanced Filtering & Automatic Divergence Detection
Transform the classic MACD indicator with professional-grade filters, automated divergence detection, and pre-optimized profiles for different markets.
---
## KEY FEATURES
### Smart Signal Filtering
- **Zero-Line Territory Filter** - Eliminates weak crossovers
- **3-Period Confirmation** - Reduces false signals
- **Minimum Distance Threshold** - Filters out noise
- **Multi-Indicator Confirmation** - RSI + Volume validation
### Automatic Divergence Detection
- **Visual Divergence Lines** - Connects price and MACD pivots automatically
- **Bullish/Bearish Recognition** - Real-time identification
- **Customizable Lookback** - Adjust sensitivity
- **Clean Display** - Managed line limits
### Pre-Optimized Market Profiles
- **S&P 500** (2/60/2) - Tested +3.63% annual
- **Gold** (14/48/3) - Optimized for volatility
- **Forex 30m** (24/52/9) - 24/7 market adapted
- **Scalping 1m** (5/13/6) - Quick trades
- **Linda Raschke** (3/10/16) - Classic scalping
- **Swing Trading** (8/24/9) - Higher timeframes
### Advanced Technical Features
- **ATR Normalization** - Volatility adaptation
- **Predictive Forecast** - Linear regression projection
- **Multi-Timeframe View** - Higher TF overlay
- **Volume Analysis** - Spike confirmation
- **Professional Dashboard** - Real-time metrics
---
## HOW TO USE
**Quick Start:**
1. Enable "Use Optimized Profile"
2. Select your market type
3. Watch for signal arrows and divergence lines
4. Confirm with dashboard metrics
**Signal Types:**
- 🔺 Green Triangle = Bullish crossover (filtered)
- 🔻 Red Triangle = Bearish crossover (filtered)
- ⚪ Small Circle = Conservative zero-line cross
- 🟢 Green Line = Bullish divergence
- 🔴 Red Line = Bearish divergence
---
## CUSTOMIZATION
**Filters:** Toggle each filter independently for your risk tolerance
**Divergence:** Adjust lookback period, line width, and maximum displayed lines
**Confirmation:** Customize RSI levels and volume spike thresholds
**Display:** Choose histogram, forecast, and multi-timeframe options
---
## ALERT CONDITIONS
- MACD Long Signal
- MACD Short Signal
- Bullish Divergence
- Bearish Divergence
---
## IMPORTANT NOTES
**Repainting:** Divergence detection uses historical pivots and may redraw. Crossover signals are non-repainting.
**Disclaimer:** Pre-optimized profiles based on historical data. Past performance does not guarantee future results. This indicator is for educational purposes only, not financial advice.
---
## BEST PRACTICES
**Timeframes:**
- 1-5m → Scalping profile
- 15-30m → Forex profile
- 1-4h → Swing profile
- Daily → S&P 500/Gold profiles
**Market Conditions:**
- Trending → Focus on momentum
- Ranging → Enable all filters, watch divergences
- Volatile → Use ATR normalization
**Combine With:** Support/resistance levels, trendlines, moving averages, and price action analysis.
---
## WHY MACD PRO?
| Feature | Standard MACD | MACD Pro |
|---------|--------------|----------|
| Signal Filters | ❌ | ✅ 5 Advanced |
| Divergence | ❌ Manual | ✅ Automatic |
| Market Profiles | ❌ | ✅ 7 Optimized |
| Volume Filter | ❌ | ✅ Built-in |
| Multi-Timeframe | ❌ | ✅ Yes |
| ATR Adaptation | ❌ | ✅ Yes |
---
**If you find this indicator useful, please boost 🚀**
*Protected source code. Compatible with all TradingView plans.*
## Professional MACD with Advanced Filtering & Automatic Divergence Detection
Transform the classic MACD indicator with professional-grade filters, automated divergence detection, and pre-optimized profiles for different markets.
---
## KEY FEATURES
### Smart Signal Filtering
- **Zero-Line Territory Filter** - Eliminates weak crossovers
- **3-Period Confirmation** - Reduces false signals
- **Minimum Distance Threshold** - Filters out noise
- **Multi-Indicator Confirmation** - RSI + Volume validation
### Automatic Divergence Detection
- **Visual Divergence Lines** - Connects price and MACD pivots automatically
- **Bullish/Bearish Recognition** - Real-time identification
- **Customizable Lookback** - Adjust sensitivity
- **Clean Display** - Managed line limits
### Pre-Optimized Market Profiles
- **S&P 500** (2/60/2) - Tested +3.63% annual
- **Gold** (14/48/3) - Optimized for volatility
- **Forex 30m** (24/52/9) - 24/7 market adapted
- **Scalping 1m** (5/13/6) - Quick trades
- **Linda Raschke** (3/10/16) - Classic scalping
- **Swing Trading** (8/24/9) - Higher timeframes
### Advanced Technical Features
- **ATR Normalization** - Volatility adaptation
- **Predictive Forecast** - Linear regression projection
- **Multi-Timeframe View** - Higher TF overlay
- **Volume Analysis** - Spike confirmation
- **Professional Dashboard** - Real-time metrics
---
## HOW TO USE
**Quick Start:**
1. Enable "Use Optimized Profile"
2. Select your market type
3. Watch for signal arrows and divergence lines
4. Confirm with dashboard metrics
**Signal Types:**
- 🔺 Green Triangle = Bullish crossover (filtered)
- 🔻 Red Triangle = Bearish crossover (filtered)
- ⚪ Small Circle = Conservative zero-line cross
- 🟢 Green Line = Bullish divergence
- 🔴 Red Line = Bearish divergence
---
## CUSTOMIZATION
**Filters:** Toggle each filter independently for your risk tolerance
**Divergence:** Adjust lookback period, line width, and maximum displayed lines
**Confirmation:** Customize RSI levels and volume spike thresholds
**Display:** Choose histogram, forecast, and multi-timeframe options
---
## ALERT CONDITIONS
- MACD Long Signal
- MACD Short Signal
- Bullish Divergence
- Bearish Divergence
---
## IMPORTANT NOTES
**Repainting:** Divergence detection uses historical pivots and may redraw. Crossover signals are non-repainting.
**Disclaimer:** Pre-optimized profiles based on historical data. Past performance does not guarantee future results. This indicator is for educational purposes only, not financial advice.
---
## BEST PRACTICES
**Timeframes:**
- 1-5m → Scalping profile
- 15-30m → Forex profile
- 1-4h → Swing profile
- Daily → S&P 500/Gold profiles
**Market Conditions:**
- Trending → Focus on momentum
- Ranging → Enable all filters, watch divergences
- Volatile → Use ATR normalization
**Combine With:** Support/resistance levels, trendlines, moving averages, and price action analysis.
---
## WHY MACD PRO?
| Feature | Standard MACD | MACD Pro |
|---------|--------------|----------|
| Signal Filters | ❌ | ✅ 5 Advanced |
| Divergence | ❌ Manual | ✅ Automatic |
| Market Profiles | ❌ | ✅ 7 Optimized |
| Volume Filter | ❌ | ✅ Built-in |
| Multi-Timeframe | ❌ | ✅ Yes |
| ATR Adaptation | ❌ | ✅ Yes |
---
**If you find this indicator useful, please boost 🚀**
*Protected source code. Compatible with all TradingView plans.*
Script protégé
Ce script est publié en source fermée. Toutefois, vous pouvez l'utiliser librement et sans aucune restriction - en savoir plus ici.
Developer & Trader
Clause de non-responsabilité
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script protégé
Ce script est publié en source fermée. Toutefois, vous pouvez l'utiliser librement et sans aucune restriction - en savoir plus ici.
Developer & Trader
Clause de non-responsabilité
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.