iMACD fast period/slow period values

Back to topics list To post a new topic, please log in or register
marcboggs 2015.10.06 02:31
I RTFM...  and searched...  But, what are the values for fast period/slow period for iMACD.  I'm looking at the MACD Sample.mq4, which seems to be optimized for H1.  Fast period is 12 and slow period is 26.  12 and 26 what?

   MacdCurrent    = iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,0);

   MacdPrevious   = iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,1);


Thanks in advance. 

GumRai 2015.10.06 04:09 #

12 is the 12 period EMA, 26 is the 26 period EMA.

Subtraction the 26 from the 12 period EMA gives the MACD line 

Back to topics list  

To add comments, please log in or register