Download MetaTrader 5
To add comments, please log in or register
Interested in traders' opinion? Arrange a poll on the Forum!
lion999
32
lion999 2012.09.26 13:41 

I have no knowledge of coding yet while compiling an ea i managed to reduce the 15 errors to just 2, both are the same  ''   'if' - open parenthesis expected    ''  and when i click on this error it leads me to this point in the code which i cannot rectify      

  void tick22()
 {if {tick22==true} {

and the cusor is just after the curly bracket before if

i changed this code " {if (tick22==true) { "  to the above " {if {tick22==true} { " and reduced 15 errors to 2 errors

can anyone help me please  

phi nuts
2184
phi nuts 2012.09.26 14:36  
lion999:

I have no knowledge of coding yet while compiling an ea i managed to reduce the 15 errors to just 2, both are the same  ''   'if' - open parenthesis expected    ''  and when i click on this error it leads me to this point in the code which i cannot rectify      

  void tick22()
 {if {tick22==true} {

and the cusor is just after the curly bracket before if

i changed this code " {if (tick22==true) { "  to the above " {if {tick22==true} { " and reduced 15 errors to 2 errors

can anyone help me please  

 

Next time use SRC button to post the code

 

do this

 void tick22()
 {
  if (tick22==true) 
    {

    }
 }

Be careful when writing parenthesis { and } with ( and ).

Hope you have define tick22 variable before coz if not you will have more error though .

 

lion999
32
lion999 2012.09.29 09:50  

Thanks very much phi.nuts, .......  for the reply
/
To add comments, please log in or register