View Single Post
  #12 (permalink)  
Old 01-20-2007, 03:00 PM
lolo lolo is offline
Junior Member
 
Join Date: Oct 2006
Posts: 4
lolo is on a distinguished road
How to LOCK/Encrypt EA

[quote=newdigital]If we are talking about ex4 file so you may insert in original mql4 code any account number, for example (in the beginning of the code just below the settings):

Code:
int Account = 111111;
And below
Code:
int start
may be the following:

Code:
if (Account != AccountNumber()){
      Comment("Trade on account :"+AccountNumber()+" FORBIDDEN!");
      return(0);
   }else {Comment("");}


Hi,
I am trying to compile the above code given by newdigital and I get the followinfg messege:

1 error(s)
'if' - comma or semicolon expected

3 warning(s)
'Account' - expression on global scope not allowed
'{' - expression on global scope not allowed
'{' - expression on global scope not allowed


Please advise
Reply With Quote