Version 1.43 2024.06.11
This version has been updated for the new terminal build
Version 1.42 2021.11.17
Updated to the new terminal build
Version 1.41 2017.03.29
Updated to the new terminal build
Version 1.40 2016.12.05
Added the divergence calculation method offered by Elder in his book "The Strongest Signal in Technical Analysis" (MACD and 0 crossing, the end of a peak/bottom is a bar following the extremum).
Signals are activated earlier as compared to the standard MACD and 0 crossing, but the number of false ones is increased.
Be careful!
Version 1.31 2016.06.07
Replaced "Enable Divergence" parameter (enable/disable all Divergence signals) with "Show Classic Divergence".
Thus, now the indicator can display Classic and Reverse Divergences separately using "Show Classic Divergence" and "Show Reverse Divergence" parameters.
Version 1.3 2016.05.30
1. Added optional parameter "Enable the Message about changing color of the MACD", which enables/disables generation of the message about the trend change when the MACD crosses the zero line or the signal line.

2. Many trades were confused with the indicator drawing signal arrows at the peak of MACD, and the signal itself being formed a bit late, when the formation of this peak was over. I.e. the signal arrow was drawn "retroactively" compared to the time when the signal occurred.
In this version, the divergence arrows are moved from the MACD peak to the bar the signal appeared on.
Version 1.1 2015.12.25
1. Fixed the error, which caused the divergence lines not to be plotted in the indicator subwindow
2. Fixed the arrow description error