Scripts: Simple license on account name

 

Simple license on account name:

Below you can find a super simple method to create a license based on MT4 account name. Place in your init function: CheckLicense(); The stringLower method makes sure the account name is in lowercase. Then you can check this value with the account name you want to check.

Author: Amira J Brand

 

You can also do it like this in order to save some time:

string upper = lower;         
StringToUpper(upper);
 

Why transform to Lowercase at all?

I also use:
AccountInfoInteger(ACCOUNT_LOGIN)
... to limit the number of uses per account/account type.
 
Jon_G #:

Why transform to Lowercase at all?

I also use:
... to limit the number of uses per account/account type.

This is to make it work on multiple brokers, where brokers can have a different markup for example with capitals or not.

 
Amira J Brand #:

This is to make it work on multiple brokers, where brokers can have a different markup for example with capitals or not.

Thanks. That makes sense.