View Single Post
  #17 (permalink)  
Old 01-17-2007, 05:51 AM
timbobo timbobo is offline
Member
 
Join Date: Jun 2006
Posts: 56
timbobo is on a distinguished road
My EA has a mistake. It takes MACD from the first bar (number 0) but it is not finished yet. That's not right. To fix it you can change code:
double myMACD = iMACD(NULL, PERIOD_D1, fast_ema_period, slow_ema_period, signal_period, applied_price, MODE_MAIN, 0);
double mySignal = iMACD(NULL, PERIOD_D1, fast_ema_period, slow_ema_period, signal_period, applied_price, MODE_SIGNAL, 0);

the last figure should be 1 not 0.
Or you can change in settings applied_price to 1 (Open price)

All these stuff does make great difference but that's how it should be.
Reply With Quote