# Rosh 如何在一个ea里面比较几个不同的货币对分别与各自的30均线的比较结果？

282

easyeu11=iMA("UERUSD",PERIOD_M30,30,8,MODE_SMMA,PRICE_TYPICAL,0);
//
easygu11=iMA("GBPUSD",PERIOD_M30,30,8,MODE_SMMA,PRICE_TYPICAL,0);
//
easyuc11=iMA("USDCHF",PERIOD_M30,30,8,MODE_SMMA,PRICE_TYPICAL,0);
//
easyuj11=iMA("USDJPY",PERIOD_M30,30,8,MODE_SMMA,PRICE_TYPICAL,0);

13427

Excuse me, I tried to translate your question by google (http://translate.google.ru/translate?u=http%3A%2F%2Fforum.mql4.com%2Fcn%2F14899&sl=zh-CN&tl=en&hl=ru&ie=UTF-8) but I did not understand machine translation.
282

Rosh >>
Excuse me, I tried to translate your question by google (http://translate.google.ru/translate?u=http%3A%2F%2Fforum.mql4.com%2Fcn%2F14899&sl=zh-CN&tl=en&hl=ru&ie=UTF-8) but I did not understand machine translation.

hi Rosh

my meaning is how to compare a system Symbol value of ma30 to their currently k value in one ea ?

thkz

86

```if ((iLow("ERUSD", PERIOD_M30, 0) > easyeu11) &&
(iLow("GBPUSD", PERIOD_M30, 0) > easygu11) &&
(iLow("USDCHF", PERIOD_M30, 0) > easyuc11) &&
(iLow("USDJPY", PERIOD_M30, 0) > easyuj11))
........```
282

Gdouble Bideu =MarketInfo("EURUSD",MODE_BID);
//
double Bidgu =MarketInfo("GBPUSD",MODE_BID);
//
double Biduc =MarketInfo("USDCHF",MODE_BID);