
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello, gentlemen, how are you?
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.
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.