how to express

 

hi

when i wrote:

for(i=0;i<10;i++)
{
macd[i]=iCustom(Symbol(),0,"MACD",5,13,1,0,i)
}
if(macd[0]>macd[1])
Print("yes");

the result is 'if' - too complex expression

what should i do of that? please help, thanks.

 
heyigeng:

the result is 'if' - too complex expression

what should i do of that? please help, thanks.


You should put semi colon at the end of this line

macd[i]=iCustom(Symbol(),0,"MACD",5,13,1,0,i)
 
oh, thanks. god, i make so...stupid mistake.
 
we've all made those mistakes lol
 
It's not a stupid mistake, its just a silly typo ... and annoying mql4 compiler and stupid MetaEditor telling you have err but not helping pointing to the typo :D