MACD Divergence
The indicator detects divergence signals - the divergences between the price peaks and the MACD oscillator values. The signals are displayed as arrows in the additional window and are maintained by the messages in a pop-up window, e-mails and push-notifications. The conditions which formed the signal are displayed by lines on the chart and in the indicator window.
Indicator Parameters
- MacdFast - fast MACD line period
- MacdSlow - slow MACD line period
- MacdSignal - MACD signal line period
- MacdPrice - MACD indicator price
- PeakPoints - amount of bars for the MACD peak detection
- PeakDistance - the minimum distance between the MACD peaks
- lineColor - line color to display conditions on the chart
- deltaPraice - minimal divergence of price peaks in points
- deltaOscillator - minimal divergence of oscillator peaks in points
- Usealert - enable pop-up window
- UseNotification - enable PUSH message
- UseMail - enable Email
- PlaySound - file name for play
Sample for EA:
void onTick() {
double x;
x = iCustom(Symbol(),PERIOD_CURRENT,"MACD-DV",5,1); if (x != 0 && x != EMPTY_VALUE) goBuy();
x = iCustom(Symbol(),PERIOD_CURRENT,"MACD-DV",4,1); if (x != 0 && x != EMPTY_VALUE) goSell();
}
void goBuy() { // function for open BUY
}
void goSell() { // function for open SELL
}
联系方式
公司:顺水的鱼外汇EA
状态:离线 发送信件 在线交谈
姓名:顺水的鱼(先生)
职位:投机客
电话:18391752892
手机:18391752892
地区:默认地区
地址:西安市高新区软件园
邮件:3313198376@qq.com
QQ:3313198376
微信:18391752892
阿里旺旺:顺水的鱼waterfish
Skype:3313198376@qq.com
状态:离线 发送信件 在线交谈
姓名:顺水的鱼(先生)
职位:投机客
电话:18391752892
手机:18391752892
地区:默认地区
地址:西安市高新区软件园
邮件:3313198376@qq.com
QQ:3313198376
微信:18391752892
阿里旺旺:顺水的鱼waterfish
Skype:3313198376@qq.com

