Download MetaTrader 5

Indicators: ZeroLag MACD

To add comments, please log in or register
Automated-Trading
Admin
100918
Automated-Trading 2010.08.23 15:57 

ZeroLag MACD:

The MACD oscillator with zero lag. This oscillator is MQL5 version of ZeroLag MACD indicator, published in Russian section of MQL4 CodeBase.

This indicator provides a signal few bars earlier, compared with standard MACD and its divirgence is much more clear.

ZeroLag MACD 

Author: Andrey Voytenko

Robbix
3
Robbix 2011.03.08 02:34  

You can create a multicolor version?

Thanks!

ChuckM
77
ChuckM 2011.03.23 15:55  
Automated-Trading:

ZeroLag MACD:

Author: Andrey Voytenko

I've been using your indicator for a few weeks now and I like it so much I would like to include it as confirmation in my EA.

However in the EA, the ExponentialMAOnBuffer() functions always fails, because begin is always zero:

   ExponentialMAOnBuffer(rates_total,prev_calculated,0,FastEMA,FastEMABuffer,val);

If you step the code through debug, you will see what I mean.

Why would this work in the indicator and not in an EA? 

Is there a fix for this?

TIA...ChuckM

ChuckM
77
ChuckM 2011.03.28 22:29  
ChuckM:

I've been using your indicator for a few weeks now and I like it so much I would like to include it as confirmation in my EA.

However in the EA, the ExponentialMAOnBuffer() functions always fails, because begin is always zero:

If you step the code through debug, you will see what I mean.

Why would this work in the indicator and not in an EA? 

Is there a fix for this?

TIA...ChuckM

Just to close the loop on this...if porting code from an indicator to an EA, the dynamic arrays need to be resized (ArrayResize())...in the indicator, this is done automatically.  Thanks for Rosh for showing me this...ChuckM
Andrey Voytenko
23271
Andrey Voytenko 2012.01.06 14:35  
The previous version  ZeroLag_MACD  contained a bug, please download the latest version 3.0
Mehrdad Shiri
4507
Mehrdad Shiri 2013.04.19 02:48  
avoitenko:
thank you for sharing .
Sergey Golubev
Moderator
94494
Sergey Golubev
Moderator
94494
Sergey Golubev
Moderator
94494
Sergey Golubev 2013.11.30 17:33  
Sergey Golubev
Moderator
94494
Sergey Golubev
Moderator
94494
12
To add comments, please log in or register