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 }
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END