'\end_of_program' - unbalanced left parenthesis - Can't figure out why!!!

 

Please help, anyone...



I've successfully coded 1 EA last week after spending 3 days flat trying to learn MQL4. I don't have much programming background so it was not easy. Anyway, I based my 2nd EA on the 1st one, with only changing the Trading Criteria in terms of indicators used, and when I try to compile, I get the above message. I've looked and looked and can't find the source of the error. All parenthesis seem to be matched up. I suspect it must be in the Trading Criteria section, as it really is the only brand new code...



If anyone can spot the error I'd appreciate it.



Thanks in advance

Files:
 
Armidinho:

Please help, anyone...



I've successfully coded 1 EA last week after spending 3 days flat trying to learn MQL4. I don't have much programming background so it was not easy. Anyway, I based my 2nd EA on the 1st one, with only changing the Trading Criteria in terms of indicators used, and when I try to compile, I get the above message. I've looked and looked and can't find the source of the error. All parenthesis seem to be matched up. I suspect it must be in the Trading Criteria section, as it really is the only brand new code...



If anyone can spot the error I'd appreciate it.



Thanks in advance

I've checked and found there are problems in line 93, 110 and 115, please use the following and try:

Line 93(missing the end semicolon):

EnvDeviation=Env_Dev;

Line 110:

if (iOsMA(NULL,0,12,25,9,PRICE_CLOSE,1)<iOsMA(NULL,0,12,25,9,PRICE_CLOSE,0))

Line 115:

if (iOsMA(NULL,0,12,25,9,PRICE_CLOSE,1)>iOsMA(NULL,0,12,25,9,PRICE_CLOSE,0))

 

Same story with me!

Have adapted a code from a simple EA and put my own criteria in. Getting the "unbalanced left parenthesis" message as well but just can't figure it out...after sitting nearly 2 hours looking over and over again I leav it to the doctors! :D

Would be nice if you had a quick...:/ look over it.

Files:
 

Replace

   futa=iCustom(NULL,0,"Extrapolator",1,0,87,0.6,80,25,0.00016,0,0,0);
   futb=iCustom(NULL,0,"Extrapolator",1,0,87,0.6,80,25,0,00016,0,0,-1);
   futc=iCustom(NULL,0,"Extrapolator",1,0,87,0.6,80,25,0,00016,0,0,-2;   

to

   futa=iCustom(NULL,0,"Extrapolator",1,0,87,0.6,80,25,0.00016,0,0,0);
   futb=iCustom(NULL,0,"Extrapolator",1,0,87,0.6,80,25,0,00016,0,0,-1);
   futc=iCustom(NULL,0,"Extrapolator",1,0,87,0.6,80,25,0,00016,0,0,-2);   
 

Thanks a lot...other eyes see a lot more than mine...tired from coding...

Reason: