Re: MACD indicators for MT4
Posted: Fri Mar 07, 2025 10:08 am
I'm getting this but got to keep refreshing the zones version.
I'm getting this but got to keep refreshing the zones version.
Okay did a 4-color version, the only version I have the histogram for some reason was done as an object version, which I am not sure but think it is causing the colors to become different, this version I did is using the color scheme they were trying in the object version but not using objects and the results are different. The histograms I usually do is when the macd is <> 0 that is the main trend and when macd <> it's signal that designates a strong or weak trend, the zones version is using the opposite.
if (macd[i]>signal[i] && macd[i]> 0) colors[i] = 1; // color up
if (macd[i]>signal[i] && macd[i]< 0) colors[i] = 2; // color neutral up
if (macd[i]<signal[i] && macd[i]< 0) colors[i] = 3; // color down
if (macd[i]<signal[i] && macd[i]> 0) colors[i] = 4; // color neutral down
switch (clr)
{
case 3 : ObjectSet(name,OBJPROP_COLOR,ColorDown); break;
case 4 : ObjectSet(name,OBJPROP_COLOR,ColorNeutralDown); break;
case 1 : ObjectSet(name,OBJPROP_COLOR,ColorUp); break;
default : ObjectSet(name,OBJPROP_COLOR,ColorNeutralUp); break;
}
Hello, made this version.global wrote: Fri Mar 07, 2025 10:51 pm Hi All,
I'm looking for the nonlag ma macd for MT4 but I'm only finding the MT5 version linked here: attach/file/3234038. I searched the forum but couldn't find it, so if it's available, then I'll really appreciate it if someone can point me to where it can be found. Thanks.
nlma.png
Thank you very much Mr. Tools. Much appreciated.