Excellent Divergence Oscillator - MetaTrader 5 Script | Forex Indicator Download - MT4/MT5 Resources




This MQL5 code is a custom indicator designed to detect and visualize divergent price action with the Ultra Strength Oscillator (AO) . Divergence occurs when price action and an oscillator move inconsistently, often signaling a potential reversal or continuation in the market. The indicator plots buy/sell signals, AO histograms, and trend lines to highlight these differences.
Discrepancy detection :
Custom buffer :
Dynamic trend line drawing :
Border crossing inspection :
initialization :
Main calculations :
Divergence confirmation :
Dynamic updates :
IsBottom() and IsTop() :
Check intersection() :
Calculate median() :
Add unique coordinates() :
totalalign() :
This indicator is a powerful tool for traders who want to automate divergence detection and visualization, save time, and increase the accuracy of their trading strategies.
Attachment download
📎 divergence_awesome_ocilator.mq5 (28.63 KB)
Source: MQL5 #56820
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •