Ain’t it cool that MetaEditor provides some suggestions on the technical indicator functions that you can use? For moving averages, the proper function is iMA and its syntax is as follows:
double iMA (string symbol, int timeframe, int ma_period, int ma_shift, int ma_method, int applied_price, int shift);
where symbol stands for the currency pair (or you can input NULL to denote the current pair),
CONTINUE ON NEXT PART 7