For fixing your syntax errors, you need to put the conditions of the if in parenthesis:
Php Code:
if(is(FIRSTRUN))
  printf ("Today is friday"); 




and

Php Code:
int z;
for (z=0;z<11;z++) { 
  if(priceHigh(z)<priceHigh(z+1))
	s1=priceHigh(z+1) ;
} 




the for loop should work.

kind regards,

Alain

Last edited by krial057; 05/15/15 07:55.