# 一个单货币EA怎么修改成多货币EA，比如开任何一个货币窗口，可以监控和交易多个货币

double FastMA1 = iMA(NULL, timeframe2, FAST, 0, MODE_EMA, PRICE_CLOSE, 1);

double FastMA2 = iMA(NULL, timeframe2, FAST, 0, MODE_EMA, PRICE_CLOSE, 2);

double SlowMA1 = iMA(NULL, timeframe2, SLOW, 0, MODE_EMA, PRICE_CLOSE, 1);

double SlowMA2 = iMA(NULL, timeframe2, SLOW, 0, MODE_EMA, PRICE_CLOSE, 2);

OrderClose(OrderTicket(),LotSize, Bid, Slippage, Yellow);

Hongdao Zhang:

double FastMA1 = iMA(NULL, timeframe2, FAST, 0, MODE_EMA, PRICE_CLOSE, 1);

double FastMA2 = iMA(NULL, timeframe2, FAST, 0, MODE_EMA, PRICE_CLOSE, 2);

double SlowMA1 = iMA(NULL, timeframe2, SLOW, 0, MODE_EMA, PRICE_CLOSE, 1);

double SlowMA2 = iMA(NULL, timeframe2, SLOW, 0, MODE_EMA, PRICE_CLOSE, 2);

OrderClose(OrderTicket(),LotSize, Bid, Slippage, Yellow);

Sym做图表名称变量，循环执行。

double FastMA1 = iMA(Sym, timeframe2, FAST, 0, MODE_EMA, PRICE_CLOSE, 1);

Hongdao Zhang:

double FastMA1 = iMA(NULL, timeframe2, FAST, 0, MODE_EMA, PRICE_CLOSE, 1);

double FastMA2 = iMA(NULL, timeframe2, FAST, 0, MODE_EMA, PRICE_CLOSE, 2);

double SlowMA1 = iMA(NULL, timeframe2, SLOW, 0, MODE_EMA, PRICE_CLOSE, 1);

double SlowMA2 = iMA(NULL, timeframe2, SLOW, 0, MODE_EMA, PRICE_CLOSE, 2);