If we assumed that the EX4 will not be decompiled then the best way is Client - Server Authentication!
Where the MetaTrader connects to a DLL
the DLL connects to a Server (web server build in PHP)
the Server connects to a database to check the user data (account number - reg number - trial period etc)
This is the perfect method providing the cracker will not crack the EX4 and know the idea of the indicator or the expert advisor!
Quote:
Originally Posted by cja
This works by allowing the indicator or EA to work only on 1 account, sample of code in mq4 posted below, this works but there may be a better way to do it ???
int Account = 12345;
if (Account != AccountNumber()){
Comment("Incorrect account : "+AccountNumber()+" Price Display Indicator Deactivated !");
return(0);
}else {Comment(" Price Display Indicator Activated");}
Attachment 52095
|