Categories

All In One Divergence Indicator MT4
Most divergence indicators lock you into one oscillator. The All In One Divergence indicator doesn't — it runs the same DeMark-style pivot and divergence-line logic on top of 30 different data series, from RSI and MACD to CCI, ADX, Stochastic, and the Awesome Oscillator, all from a single free tool. Download it below and load…
Download the All In One Divergence Indicator MT4Most divergence indicators lock you into one oscillator. The All In One Divergence indicator doesn’t — it runs the same DeMark-style pivot and divergence-line logic on top of 30 different data series, from RSI and MACD to CCI, ADX, Stochastic, and the Awesome Oscillator, all from a single free tool. Download it below and load it under whichever oscillator you already trade off, instead of running three separate indicators to check for the same thing.
What Is the All In One Divergence Indicator?
This is a separate-window indicator built around a single selectable input, Osc, which chooses which of 30 data series the divergence engine runs against — everything from Accelerator/Decelerator, ADX, ATR, Bears/Bulls Power, and CCI, through Momentum, MFI, MACD, OsMA, OBV, RVI, StdDev, Stochastic, RSI, and Williams %R, plus raw price options like Close, Open, High, Low, and several averaged price types. Whichever one you pick gets passed through a T3 moving average (controlled by T3_Period and the b smoothing factor) to reduce noise before anything else happens.
On that smoothed line, the indicator hunts for DeMark-style pivot points — local highs and lows confirmed by a configurable number of bars on the left (LevDPl) and right (LevDPr) — and marks them with up/down arrows. It then compares those oscillator pivots against the corresponding price highs and lows on the main chart and draws colored trend lines connecting them whenever a divergence pattern appears, distinguishing between standard divergence (oscillator and price disagree) and hidden divergence (a continuation-style disagreement, gated by the TH, TL, trend, and convergen toggles). Separately, it can also plot linear regression or standard-deviation channel lines across the same pivots if Channel or Regression is enabled.
Key Features
- 30 selectable oscillators — one indicator covers RSI, MACD, CCI, AO, ADX, Stochastic, MFI, OBV, Williams %R, and more, chosen through the Osc dropdown.
- T3 smoothing — every oscillator is run through a configurable T3 moving average (T3_Period, b) before pivot detection, reducing false pivots on noisy oscillators.
- DeMark-style pivot arrows — up and down arrows mark confirmed swing highs/lows on the smoothed oscillator, using adjustable left/right bar strength (LevDPl, LevDPr).
- Standard and hidden divergence trend lines — automatically draws lines connecting oscillator pivots against price pivots, color-coded for standard bearish/bullish divergence versus hidden divergence.
- Optional channel and regression overlays — Channel and Regression toggles add linear regression or standard-deviation channel lines across the same pivot points.
- Built-in alerts — Alerts, Email, and Push toggles fire an on-screen Alert(), an email via SendMail(), and a mobile push via SendNotification() whenever a fresh buy or sell divergence signal is confirmed.
How to Use It
Copy the compiled indicator into your MQL4/Indicators folder, restart MetaTrader 4, and drag it onto a chart — it opens in its own subwindow. Start by picking an Osc value you’re already comfortable reading (RSI and MACD are common starting points), then adjust T3_Period and b if the smoothed line feels too laggy or too jumpy for your timeframe. LevDPl and LevDPr control how strict pivot confirmation is — smaller values catch more pivots (and more noise), larger values wait for stronger swings.
To read it: when price makes a higher high but the oscillator’s pivot is lower than its prior pivot, a bearish divergence line is drawn connecting the two oscillator highs, and vice versa for bullish divergence on the lows. The BuyStop, SellLimit, SellStop, and BuyLimit toggles do not place trades themselves — the indicator has no order-execution code — they only change the text label attached to the drawn trend-line object, which is useful mainly if you’re pairing this indicator with a separate EA that reads chart object names. Turn on Alerts, Email, or Push if you want to be notified the moment a divergence signal confirms rather than watching the chart directly.
Best Timeframes / Best Use Cases
Because every input is fully adjustable — oscillator choice, smoothing, pivot strength, and lookback (showBars) — this indicator adapts to whatever timeframe and style you already use it for. It’s best suited to traders who already rely on divergence as a confirmation tool and want to test it against several oscillators without switching indicators each time.
Final Thoughts
This is a genuinely deep tool with a lot of moving parts, which is both its strength and the reason it rewards some setup time before you trust it live. Start with one oscillator, get comfortable with how its divergence lines behave on your chart, and only then start exploring the channel, regression, and alert options layered on top.
- Osc (default 29 (RSI)) — Selects which of 30 data series (RSI, MACD, CCI, AO, ADX, Stochastic, MFI, OBV, Williams %R, price types, etc.) the divergence engine runs on.
- T3_Period (default 1) — Period of the T3 moving average used to smooth the selected oscillator before pivot detection.
- b (default 0.7) — T3 moving average volume/smoothing factor used alongside T3_Period.
- LevDPl (default 5) — Number of bars to the left of a candidate bar required to confirm it as a DeMark-style pivot point.
- LevDPr (default 1) — Number of bars to the right of a candidate bar required to confirm it as a pivot point.
- showBars (default 1000) — How many bars back the indicator scans and draws pivots/divergence lines for; 0 processes the full chart history.
- TrendLine (default true) — Turns the standard divergence trend-line drawing on or off.
- Channel (default false) — Draws a standard-deviation channel across recent pivots when enabled (ignored if Regression is also on).
- Regression (default true) — Draws a linear regression line across recent pivots instead of a standard-deviation channel.
- Alerts / Email / Push (default false / false / false) — Independently enable an on-screen alert, an email, and a mobile push notification whenever a new buy or sell divergence signal is confirmed.
FAQs About the MT4 All In One Divergence Indicator MT4
How many oscillators can this indicator run divergence detection on?
Thirty. The Osc input lets you choose from RSI, MACD, CCI, AO, ADX, Stochastic, MFI, OBV, Williams %R, Bears/Bulls Power, Momentum, RVI, StdDev, and several raw and averaged price series.
Does it place trades automatically?
No. The BuyStop, SellLimit, SellStop, and BuyLimit inputs only change the label text on the drawn trend-line objects — there is no OrderSend() code in the indicator, so it never executes orders on its own.
What does the T3_Period and b setting actually do?
They control a T3 moving average that smooths the selected oscillator before pivot detection runs, which reduces false divergence signals on choppy oscillator data.
Is this indicator non-repainting?
We can’t confirm that with full confidence. The core pivot logic appears to only reference closed bars, but with 30 oscillator modes and extensive optional drawing logic in a very large file, we couldn’t verify every code path, so we’re listing this as Not Specified rather than guessing.
What's the difference between the standard and hidden divergence lines it draws?
Standard divergence lines connect pivots where price and the oscillator move in opposite directions (a classic reversal warning). Hidden divergence lines, controlled by the TH/TL/convergen toggles, mark the continuation-style pattern where price pulls back but the oscillator doesn’t confirm the pullback.
Can I get notified when a divergence signal appears?
Yes. Enable Alerts for an on-screen popup, Email for a message via your configured mail account, or Push for a MetaTrader mobile notification.
