View Single Post
  #13 (permalink)  
Old 01-20-2007, 03:47 PM
newdigital newdigital is online now
Administrator
 
Join Date: Sep 2005
Posts: 16,820
Blog Entries: 146
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
[quote=lolo]
Quote:
Originally Posted by 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
Just compile this EA once again and did not get any error.
You may look inside the code as an example.
Attached Files
File Type: mq4 MA_ExpertProfit_all.mq4 (7.2 KB, 310 views)
Reply With Quote