Help me with MACD

[Deleted]  

Hi

I just wonder how can I add a signal line to MACD?

Normally, MACD consists of two lines, right?

But mine has only 1 line. -_-''

[Deleted]  

just look this example code:

if(iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,0)>iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,0)) return(0);

one line is MODE_MAIN another is MODE_SIGNAL. the signal usually is dotted line on the chart and main line is the boundary formed by the solid vertical lines.

[Deleted]  

Hi

thanks for your reply


but frankly, i'm totally new to this program.

so, am I supposed to edit my own macd? or just to add that code somewhre?

please explain more. thank you.

[Deleted]  

the example i give to you is default setting for MACD, if you are not familiar with it and just beginning with MQL, I suggest you simply use it (copy it) and put in your own code somewhere needed.

good luck