The indicator detects divergence signals – the divergence of price peaks and the readings of the MACD oscillator. The signals are displayed by arrows in an
additional window and are accompanied by messages in a pop-up window, to email, and to a mobile device.
- MacdFast,MacdSlow,MacdSignal,MacdPrice-parameters of the MACD indicator
- PeakPoints – the number of points to determine the peaks;
- PeakDistance – minimum distance between adjacent peaks
- deltaPrice,deltaOscillator – the minimum deviation of the price and oscillator
- UseAlert-pop-up message resolution
- UseNotification-PUSH message resolution
- UseMail-Email message resolution
- PlaySound is the name of the music file
Usage example in the Expert Advisor:
void OnTick() {
double x;
x = iCustom(Symbol(),PERIOD_CURRENT,"MACD-DV",5,1); if (x != 0