Thread: Ask!
View Single Post
  #931 (permalink)  
Old 01-17-2008, 01:27 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 994
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Wink Client - Server Authentication!

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 View Post
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
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Reply With Quote