
01-18-2007, 12:15 AM
|
|
Senior Member
|
|
Join Date: Nov 2006
Posts: 237
|
|
Quote:
|
Originally Posted by timbobo
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.
|
hi, I ran the EA but it did not open any orders. Please help.
I am using Alpari platform.
|