MACD Divergence Finder - Regular and Hidden (MT4)
This indicator scans MACD vs price for divergence and convergence and marks them on chart with labels and lines. It supports regular and hidden patterns, optional alerts, and flexible swing detection for MetaTrader 4.
What it finds
- Regular bearish: price HH while MACD makes LH - potential reversal down.
- Regular bullish: price LL while MACD makes HL - potential reversal up.
- Hidden bearish: price LH while MACD makes HH - trend continuation down.
- Hidden bullish: price HL while MACD makes LL - trend continuation up.
- Optional alerts: on detection, on bar close only, or with MTF confirmation.
Trade ideas
- With trend: favor hidden divergences in established trends for add-ons.
- Countertrend: take regular divergences at key levels with confirmation.
- Confluence: require structure (HH-HL or LL-LH), zero line context and S/R.
- Risk control: stops beyond swing, invalidate if the swing is broken.
Inputs that matter
- Swing detection: pivot strength or lookback bars.
- MACD settings: fast EMA, slow EMA, signal MA, price source.
- Filters: minimum angle or distance, zero-line relation, bar-close confirmation.
- Alerts: popup, sound, push or email.
Suggested usage
- M5-M15: intraday reversal with confirmation.
- M30-H4: continuation and scale-in after pullbacks.
- Daily+: bias map and swing timing.
Installation (MT4)
- Open MetaTrader 4 - File - Open Data Folder.
- Copy
MACD.ex4
to MQL4/Indicators. - Restart MT4 or refresh Navigator and attach MACD Divergence Finder.
- Adjust inputs - OK.
FAQ
Does it repaint? Signals are fixed once the divergence bar closes; swings can extend while forming.
Use in EAs? Yes, via iCustom
.
Markets? FX, indices, metals, crypto - anything on MT4.
Disclaimer: Always test on a demo first; risk management matters.