OPEN-SOURCE SCRIPT
MACD Divergences + RSI/ADX

MACD Divergences + RSI/ADX Indicator
This indicator combines the classic MACD divergence detection with real-time RSI and ADX monitoring in fixed corner labels.
🔹 MAIN FEATURES:
- Automatic MACD divergence detection (Classic & Hidden)
- Visual RSI and ADX labels fixed in the right corner
- Color-coded trend direction (Green: DI+ > DI- | Red: DI- > DI+)
- Customizable MACD settings (Fast/Slow Length, Signal Smoothing)
- Configurable RSI and ADX periods
- Built-in alerts for all divergence types
🔹 DIVERGENCE TYPES:
- Classic Bullish: Price makes lower lows, MACD makes higher lows (Reversal signal)
- Classic Bearish: Price makes higher highs, MACD makes lower highs (Reversal signal)
- Hidden Bullish: Price makes higher lows, MACD makes lower lows (Continuation signal)
- Hidden Bearish: Price makes lower highs, MACD makes higher highs (Continuation signal)
🔹 RSI & ADX DISPLAY:
- Fixed labels in top-right (RSI) and bottom-right (ADX) corners
- Real-time values updated on every bar
- Background color changes based on directional movement (DI+ vs DI-)
- Large, easy-to-read format
🔹 HOW TO USE:
1. Watch for divergence patterns on MACD histogram
2. Monitor RSI for overbought/oversold conditions
3. Check ADX for trend strength (>25 = strong trend)
4. Green labels = Bullish momentum (DI+ > DI-)
5. Red labels = Bearish momentum (DI- > DI+)
🔹 BEST FOR:
- Swing trading on 4H and Daily timeframes
- Trend-following strategies with mo
This indicator combines the classic MACD divergence detection with real-time RSI and ADX monitoring in fixed corner labels.
🔹 MAIN FEATURES:
- Automatic MACD divergence detection (Classic & Hidden)
- Visual RSI and ADX labels fixed in the right corner
- Color-coded trend direction (Green: DI+ > DI- | Red: DI- > DI+)
- Customizable MACD settings (Fast/Slow Length, Signal Smoothing)
- Configurable RSI and ADX periods
- Built-in alerts for all divergence types
🔹 DIVERGENCE TYPES:
- Classic Bullish: Price makes lower lows, MACD makes higher lows (Reversal signal)
- Classic Bearish: Price makes higher highs, MACD makes lower highs (Reversal signal)
- Hidden Bullish: Price makes higher lows, MACD makes lower lows (Continuation signal)
- Hidden Bearish: Price makes lower highs, MACD makes higher highs (Continuation signal)
🔹 RSI & ADX DISPLAY:
- Fixed labels in top-right (RSI) and bottom-right (ADX) corners
- Real-time values updated on every bar
- Background color changes based on directional movement (DI+ vs DI-)
- Large, easy-to-read format
🔹 HOW TO USE:
1. Watch for divergence patterns on MACD histogram
2. Monitor RSI for overbought/oversold conditions
3. Check ADX for trend strength (>25 = strong trend)
4. Green labels = Bullish momentum (DI+ > DI-)
5. Red labels = Bearish momentum (DI- > DI+)
🔹 BEST FOR:
- Swing trading on 4H and Daily timeframes
- Trend-following strategies with mo
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.