Unbelievable. You have done it. An exact port of the indicator for MT5 and better. I'm over the moon that you have released this which is a huge, selfless act that will change and educate many new (and old) traders for years to come.Cagliostro wrote: Fri Jun 27, 2025 11:39 amMOTHER OF ALL DIVERGENCES (M.O.A.D.)
Hi folks, I needed a good divergence indicator for MT5 and got inspired by the famous Divergence for Many Indicators.
It was not an easy task, but here we go. I found some logical flaws in the MT4 code, so fixed them and improved overall accuracy:
-OBV was wrongly looking into the future.
-SimpleMA math was flawed, returning wrong numbers.
-CMF did not keep array continuity.
-Stochastic missed bounds check.
image_2025-06-27_033649121.png
Enjoy.
+C+
PS: For traders who are new to this indicator, here's a quick MT5 template to get you started as per our member Moey's (tried and tested) RSI template. His setup is made for the 1H timeframe but I use it on the Daily charts as a heads up on when to exit my long-term positions.