all symbols appear green
This is invalid . . .
string symbol[]
unless you mean for your array to have 0 elements.
Seems to work in my other programs and it's in the MQL4 tutorials i that syntax.
I tried string symbol[17] ={"USDCHF","GBPUSD","USDJPY","EURUSD","AUDUSD","USDCAD","EURGBP","EURCHF","EURJPY","GBPJPY","GBPCHF","EURCAD","EURAUD","NZDUSD","CHFJPY","AUDJPY","AUDNZD","CADJPY","XAUUSD"};
but that doesn't work either.
What chart do you have this on ? your Bid is from the chart that the Indicator is placed on
string symbol[]={"USDCHF","GBPUSD"," ...is fine. The size of symbol[] is the number of the entries given.
Bid < iMA(symbol[y],PERIOD_D1,10,0,MODE_EMA,0,0) &&
What is the relationship between the Bid on the current chart and the moving average of some other symbol. NONE. Is the color of the orange greater then the color of the banana? NONSENSE.
In the following code, all the symbols appear on the chart as green/buy.
Is there any reason why it doesn't check the 2nd part of the else if statement?