Indicators: MACD Histogram, multi-color - page 2

 

Hello, gentlemen, how are you?


I am developing an EA and I use this MACD indicator.

When I tried to use EA in real account and demo, this error appeared
"Not all data of ExtFastMaHandle has been calculated (-1brs) Error 4806"

How i can correct that error?

 

Hello all,


I'm getting a 4802 error (cannot load custom indicator 'MQL5\Indicators\macd_histogram_mc'. I presume it is in the right directory. See image below.

However I'm not certain about the parameters (and their values) to pass on. Could anybody provide with a typical complete example?

 int CustomInd_ControlPanel = iCustom(_Symbol, _Period,"\\MQL5\\Indicators\\macd_histogram_mc");


Thank you.


  Capture iCustom

 
Thank you so much. Been looking everywhere for an indicator with the 'true' MACD histogram.
 
Hi. Is there a download instruction for this indicator? Thanks
 
Does this work on MT4? 
 

Hello my friend. First of all, fantastic job. I use your code a lot. ;-)


two simple suggestions:




change from:

IndicatorSetString( INDICATOR_SHORTNAME, "MACD_Histogram("+string(InpFastEMA)+","+string(InpSlowEMA)+","+string(InpSignalMA)+"));

to:

IndicatorSetString( INDICATOR_SHORTNAME, "MACD_Histogram("+string(InpFastEMA)+","+string(InpSlowEMA)+","+string(InpSignalMA)+") - " + EnumToString(InpAppliedSignalMA) );




change from:

#property indicator_colour3 Green,Red,Blue

to :

#property indicator_colour3 Green,Red,Blue,Lime,Violet


so, change from:

if(InpUseMultiColour==MultiColour)

{

if(ExtHistogramBuffer[i]>ExtHistogramBuffer[i+1])

ExtHistogramColorBuffer[i]=0;

if(ExtHistogramBuffer[i]<ExtHistogramBuffer[i+1])

ExtHistogramColorBuffer[i]=1;

if(ExtHistogramBuffer[i]==ExtHistogramBuffer[i+1])

ExtHistogramColourBuffer[i]=2;

}

to:

if(InpUseMultiColour==MultiColour)

{

if (ExtHistogramBuffer[i]>0)

{

// 0-Green,1-Red,2-Blue,3-Lime,4-Violet

if(ExtHistogramBuffer[i]>ExtHistogramBuffer[i+1])

ExtHistogramColorBuffer[i]=3;

if(ExtHistogramBuffer[i]<ExtHistogramBuffer[i+1])

ExtHistogramColorBuffer[i]=0;

if(ExtHistogramBuffer[i]==ExtHistogramBuffer[i+1])

ExtHistogramColourBuffer[i]=2;

}

else

{

// 0-Green,1-Red,2-Blue,3-Lime,4-Violet

if(ExtHistogramBuffer[i]>ExtHistogramBuffer[i+1])

ExtHistogramColorBuffer[i]=4;

if(ExtHistogramBuffer[i]<ExtHistogramBuffer[i+1])

ExtHistogramColorBuffer[i]=1;

if(ExtHistogramBuffer[i]==ExtHistogramBuffer[i+1])

ExtHistogramColourBuffer[i]=2;

}

}







 

Dear Developer,

Hi,

FYI, your Idea on colorful histogram is attractive and useful.

I downloaded and used it besides normal MACD.at first all your calculated MACD numbers are correct ( I compared the numbers with usual MACD ) but after some minuted the second number changes and I see discrepancy between your MACD and regular MACD and diagram changes accordingly...

Thank you,

Tooraj

 

'Signal MACD' seems not auto update, causing wrong calculation.... Have to refresh it manually by switching TimeFrame.

Overall it's great indicator... Good Idea.

 
Thank you for releasing this indicator & its source, it is truly useful.
 
Thanks You for share this code and source. Let´s study it. Regards