Indicators: Multi-Indicator Divergence Detector

Multi-Indicator Divergence Detector:

Regular and hidden divergences between price and ten oscillators calculated inside the indicator: MACD, MACD histogram, RSI, Stochastic, CCI, Momentum, OBV, VWMACD, Chaikin Money Flow and MFI. Lines on price, a box naming every oscillator that agrees, and alerts.

Multi-Indicator Divergence Detector

Author: Bruno Nunes Myrrha Ribeiro

Nice one! This is a "Why didn't I think of that?" indicator.

Well formatted code too. So well formatted, it could be AI coded but who cares...

If I'm not mistaken, your posted chart image is XAUUSD, H1. Looks good.👍

Ryan L Johnson #:

Nice one! This is a "Why didn't I think of that?" indicator.

Well formatted code too. So well formatted, it could be AI coded but who cares...

If I'm not mistaken, your posted chart image is XAUUSD, H1. Looks good.👍

Thanks a lot, glad you like it! 

The formatting is mostly the MetaEditor Styler doing its job, I run every file through it before publishing. The idea of putting all the agreeing oscillators in one box came from wanting to see confluence at a glance instead of switching between ten windows. 

And yes, you're right, it's XAUUSD on H1. Feel free to share how it works on your symbols.
Bruno Nunes Myrrha Ribeiro #:
Feel free to share how it works on your symbols.

I noticed that your indicator is better in bursts of swings than in running trends. I did nothing clever. I simply told the MT5-integrated AI Assistant to give me the most rangebound currency pair. For the past 3 months and the past 6 months, the GBPUSD came out on top.

Have a look at the GBPUSD, D1:

GBPUSD,D1

Ryan L Johnson #:

I noticed that your indicator is better in bursts of swings than in running trends. I did nothing clever. I simply told the MT5-integrated AI Assistant to give me the most rangebound currency pair. For the past 3 months and the past 6 months, the GBPUSD came out on top.

Have a look at the GBPUSD, D1:


Thanks for testing it and sharing the chart. Nice use of the MT5 AI Assistant to find the most range-bound pair. For trending markets, you can try divergence type = hidden, which looks for the continuation pattern. You can also raise minimum divergences on a bar to 2 or 3, so only bars where more signals agree stay on the chart.
Repaint?
ersan yurdakul #:
Repaint?
Based on my testing and analysis of the code, no.
ersan yurdakul #:
Repaint?
No repaint with the default settings. Only closed bars are scanned, and each divergence waits for the next bar to confirm it. One note: a newer divergence on the same side, before the next pivot, replaces the previous one.
Excellent indicator, thanks for posting. I've been looking for this for a while.
I made a minor update for my own use. It enables the indicator to be used via an EA by providing a buffer named 'count' that shows the count of negative/positive divergences per bar. The count is negative for negative divergences, otherwise positive.
Hope it is usefuil.
ceejay1962 #:
Excellent indicator, thanks for posting. I've been looking for this for a while.
I made a minor update for my own use. It enables the indicator to be used via an EA by providing a buffer named 'count' that shows the count of negative/positive divergences per bar. The count is negative for negative divergences, otherwise positive.
Hope it is usefuil.
Thank you, glad it's useful to you. A buffer with the divergence count per bar is a nice idea for EA use, and the sign for direction keeps it simple to read from iCustom. Thanks for sharing your version with the community.
smooth heikin ashi variant, good for filtering noise on trend entries — clean inputs panel