[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
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