View Single Post
  #7 (permalink)  
Old 05-17-2006, 01:10 PM
newdigital newdigital is offline
Administrator
 
Join Date: Sep 2005
Posts: 15,984
Blog Entries: 69
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:
Originally Posted by babarmughal
Guys,

Still the idea is not clear please explain in detail how can I do this Lock..

Thanks
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("");}

As to trial version so you may do the following (below int start):

Code:
if (CurTime()>1113609600) { //16.04.2005
      Alert("My EA was expired! Please re-new your licence");
      return;
   }
Reply With Quote