Free learning tools Test your finance and trading knowledge before you build, buy, or automate.

AlgoSpecial_DivergenceRadar — The Complete Technical Guide to Multi-Oscillator Divergence on MT5

Product: AlgoSpecial_DivergenceRadar v2.00 · MT5 Indicator · Pure MQL5
Trial: valid until 05 January 2027 · Full version: $80 — algospecial.com or t.me/bullionstrategy
Keywords: divergence indicator MT5, RSI divergence indicator, MACD divergence indicator, multi oscillator divergence, regular divergence, hidden divergence, divergence scanner MT5, bullish divergence indicator, hidden divergence EA filter.
AlgoSpecial DivergenceRadar input parameters
AlgoSpecial DivergenceRadar input parameters
AlgoSpecial DivergenceRadar divergence signals on XAUUSD chart
AlgoSpecial DivergenceRadar divergence signals on XAUUSD chart

Divergence is a story about disagreement

Divergence is the moment price and momentum stop telling the same story. Price makes a higher high, but the oscillator makes a lower high — buyers are still pushing, but with less force. Or price makes a lower low, but the oscillator makes a higher low — sellers are exhausted. That disagreement is one of the oldest and most powerful ideas in technical analysis, and it is also one of the most abused, because a single oscillator produces far too many false divergences to trade blindly.

AlgoSpecial_DivergenceRadar attacks that weakness head-on. Instead of one study, it evaluates ten oscillators simultaneously, confirms divergence only at genuine pivots, and prints a coloured box that tells you exactly how many and which oscillators agree. When one oscillator disagrees with price, it is noise. When eight agree, it is a statement.

This guide explains the theory of divergence, the mathematics of each of the ten engines, the exact detection and confirmation logic, every input, how to read the confluence box, and how to fold divergence into a rules-based system.

1. Regular vs hidden divergence — and why both matter

Regular (classic) divergence signals potential reversal:

Hidden (or "reverse") divergence signals continuation:

Most tools detect only regular divergence and therefore miss the continuation setups that trend traders actually want. DivergenceRadar detects both and lets you choose which to display — a crucial distinction that turns it from a reversal-only tool into a complete momentum framework.

2. Why ten oscillators instead of one

Each oscillator measures a different facet of momentum, and each has blind spots:

A divergence that appears on RSI alone can be meaningless. The same divergence echoed by MACD, Stochastic, CMF and MFI — four independent computations of momentum — is a very different signal. DivergenceRadar computes all ten internally, so it does not depend on the terminal's built-in indicator versions; the maths is self-contained and reproducible.

Because forex and CFDs have no centralised volume, the volume-based oscillators (OBV, VWMACD, CMF, MFI) use tick volume — the number of price updates — which is the standard, honest proxy available on retail feeds.

3. Inside the engine: how DivergenceRadar works

The indicator is pure MQL5 with no DLLs and no WebRequest. Its pipeline is:

  1. Pivot detection. For each oscillator it finds confirmed pivots using `Span` bars on each side, on either close or wick prices (`PivotSource`). A pivot is only confirmed once the surrounding bars have closed.
  2. Divergence search. From each new pivot it looks back up to `MaxReach` bars and up to `MaxPivots` prior pivots, comparing the oscillator's direction against price's direction at those pivots, and requiring the "clear path" condition (no intervening pivot that would invalidate the comparison).
  3. Agreement tally. A candidate signal on the current bar is accepted only if at least `MinCount` oscillators agree.
  4. Confirmation. With `Confirm` on (default), the signal waits for the next bar to close, guaranteeing the past never changes.
  5. Rendering. A divergence line is drawn on price, and a coloured box labels the signal bar with the oscillator cluster and its count. `LastOnly` keeps just the most recent signal if you prefer a minimal chart.

The result is a scanner that is quiet when momentum is undecided and loud only when the majority of independent engines agree — the definition of a high-confluence signal.

4. Every input parameter, explained

Pivots

Divergence

Display

Oscillators

Colors

Alerts

Extras

5. Reading the confluence box

In the screenshot above, divergence signals appear as lines on price with a coloured box at the signal bar. The box is the key: it lists which oscillators agreed and the count. A box reading "8" is a different animal from one reading "1." Practical rules:

  1. Trust the count. Require a high count (say 4+) for standalone entries; treat low counts as watch-list alerts only.
  2. Separate regular from hidden by colour. Green/red = potential reversal; cyan/amber = continuation.
  3. Location matters. Divergence at a key level (LevelHunterPro) or after a liquidity sweep (SessionBoxer) is far stronger than divergence in the middle of nowhere.
  4. Confirm with price action. Wait for a structure break (a swing high/low taken out) after the divergence before committing.

6. The playbook

7. Instruments and timeframes

DivergenceRadar is symbol-agnostic and works on forex (EURUSD, GBPUSD, USDJPY, GBPJPY), gold (XAUUSD — where it is especially effective, as the chart screenshot shows), indices (US100, US30, GER40) and crypto. Use higher spans and counts on lower timeframes to control noise; M15–H4 is the sweet spot for intraday, H4–D1 for swing.

8. Risk and prop-firm notes

Divergence is a context tool, not a stop-loss substitute. Always pair it with a defined invalidation level and a fixed per-trade risk. For prop firms, the minimum-count filter is valuable because it reduces the number of marginal trades that erode a daily loss budget.

9. Installation

  1. Copy `AlgoSpecial_DivergenceRadar.ex5` into `MQL5\Indicators\`.
  2. Refresh the Navigator and attach to a chart.
  3. Load `AlgoSpecial_DivergenceRadar.set` from the Inputs tab.
  4. Tune the minimum divergence count and pivot span to your timeframe.

10. Download

The compiled EX5 and ready SET are free, with a trial valid until 05 January 2027. Full version $80 — algospecial.com or t.me/bullionstrategy.

11. Advanced: the mathematics behind each of the ten engines

Understanding what each oscillator actually computes explains why multi-oscillator agreement is so powerful — the ten engines measure genuinely different things, so agreement is independent evidence.

When price makes a higher high and all ten make a lower high, every independent definition of momentum agrees that the move is losing force. That is the statistical heart of DivergenceRadar, and it is why the minimum-count filter is the single most important input.

12. The confirmation logic in depth

The `Confirm` option deserves special attention because it is what makes the tool trustworthy. Without confirmation, a divergence can be drawn on the current forming bar and then disappear if the oscillator value changes before the bar closes — the classic "repainting divergence" that has burned countless traders. With confirmation on (the default), DivergenceRadar waits until the next bar has closed before finalising the signal. The result is a chart you can trust: a box that appears is a box that stays. The `ClearPath` condition further requires that no intervening pivot invalidates the price/oscillator comparison, removing the false divergences that arise from comparing non-adjacent extremes.

13. Failure modes of divergence (and how the engine handles them)

  1. Strong trends ignore divergence. In a powerful trend, oscillators can stay overbought/oversold and print divergence after divergence while price keeps going. Fix: use hidden divergence for continuation and require a structure break before acting on regular divergence.
  2. Too many false positives from one oscillator. Fix: the minimum-count filter.
  3. Comparing the wrong pivots. Fix: the pivot-span and clear-path logic.
  4. Repainting. Fix: confirmation on by default.
  5. Ignoring location. Divergence in the middle of nowhere is weak; divergence at a key level or after a sweep is strong. Fix: combine with LevelHunterPro and SessionBoxer.

14. Parameter tuning matrix

Timeframe / StyleSpanMin countMax pivotsReachType
Scalping (M5–M15)34860Regular
Intraday (M15–H1)5310100Both
Swing (H1–H4)5210150Both
Position (D1)728200Both

Higher minimum counts produce fewer, higher-quality signals; lower counts produce more frequent but noisier ones. Match the count to your risk tolerance and to how much confirmation you need.

15. Common mistakes

  1. Acting on a single-oscillator divergence. Raise the minimum count.
  2. Confusing regular and hidden. Regular = potential reversal; hidden = continuation. Colour them differently and trade them differently.
  3. Entering before confirmation. Wait for the confirmation bar and, ideally, a structure break.
  4. Ignoring the trend. A regular divergence against a strong trend is a low-probability fade.
  5. Trading divergence without a stop. Divergence is context; the stop still goes beyond the invalidation point.

16. Backtesting and forward-testing notes

To build confidence, replay history and record every divergence box with its count, then classify the outcome over the next N bars: reversal, continuation, or nothing. Sort by count. You will typically find a clear relationship — higher counts correlate with better follow-through — which lets you set your minimum count empirically rather than by guesswork. Because signals are confirmed on closed bars, your historical study matches what you would have traded live.

17. Using DivergenceRadar as an EA filter

The minimum-count rule makes DivergenceRadar a superb external filter for an Expert Advisor. A typical rule: before an EA adds to or opens a trend position, require the absence of opposing regular divergence above a threshold count — this avoids adding into exhausted moves. Because the indicator exposes its findings through its own computation (no external calls), it can be read programmatically or visually with equal confidence. That is the same philosophy behind AlgoSpecial_ChaosNavigatorEA and AlgoSpecial_CompressionSniperEA, which use their own internal engines as decision gates.

18. Quick-reference cheat sheet

FAQ

Is AlgoSpecial_DivergenceRadar free? Yes — free `.ex5` + `.set` with a trial until 05 January 2027.

Which oscillators are supported? MACD, MACD histogram, RSI, Stochastic, CCI, Momentum, OBV, VWMACD, CMF and MFI — all computed internally.

What is hidden divergence? A continuation signal: price makes a higher low while the oscillator makes a lower low (bullish hidden), and the mirror for bearish.

Does it repaint? No — with confirmation on, signals are only finalised after the next bar closes.

Can I require multiple oscillators to agree? Yes — set the minimum divergence count.

Which markets work best? Forex, gold, indices and crypto; gold shows particularly clean divergences.

Does it need internet or Python? No — pure MQL5, fully offline.

Can I show only regular or only hidden? Yes — choose the divergence type.

Risk disclaimer: educational trading software, not investment advice. Test on demo first. See algospecial.com for the full disclaimer.

Free Download

The compiled MT5 indicator and the ready preset are free to download. Trial valid until 05 January 2027. The MQL5 source is not included; the full version is $80.

🚀 Invite friends — Earn $5 You both get $5 credit on Go Ad · opencode.ai AI-Powered Coding Agent — Try Free Build apps, fix bugs & ship faster with opencode. Get $5 free credit when you join. × Ad · quo.com QuoPhone — $20 Visa Gift Card Free Sign up to Quo, subscribe 3 months, get a $20 Visa gift card. Atif's referral gift for you. ×