Download MetaTrader 5
To add comments, please log in or register
Do you need a programmer? Freelance service will find the developer you need!
Marc Boggs
Marc Boggs 2015.10.06 00: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. 

Keith Watford
Keith Watford 2015.10.06 02: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 

To add comments, please log in or register