Expert Advisor Sample question for MetaQuotes New comment [Deleted] 2007.08.16 18:28 In the code below taken from the 'Expert Advisor Sample' post on this forum: MaCurrent=iMA(NULL,0,MATrendPeriod,0,MODE_EMA,PRICE_CLOSE,0); MaPrevious=iMA(NULL,0,MATrendPeriod,0,MODE_EMA,PRICE_CLOSE,1); I thought the signal line was suppose to be 9-day simple moving average. In this example MATrendPeriod equals 26 and it's an EMA. How come? What should we expect of the performance with these changes? Thanks in advance, Ed Is MaCurrent really current to the second? or to the beginning of the bar? Code for Close Price Moving Average values not making sense New comment
MaCurrent=iMA(NULL,0,MATrendPeriod,0,MODE_EMA,PRICE_CLOSE,0);
MaPrevious=iMA(NULL,0,MATrendPeriod,0,MODE_EMA,PRICE_CLOSE,1);
I thought the signal line was suppose to be 9-day simple moving average. In this example MATrendPeriod equals 26 and it's an EMA. How come? What should we expect of the performance with these changes?
Thanks in advance,
Ed