Download MetaTrader 5

iMACD fast period/slow period values

To add comments, please log in or register
Marc Boggs
840
Marc Boggs  
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. 

Keith Watford
Moderator
10614
Keith Watford  

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

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

To add comments, please log in or register