Scripts: Simple license on account name
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.
Hi Amira,
You can try using this one line code for your "StringLower" function:
//+------------------------------------------------------------------+ //| Expert string to lower | //+------------------------------------------------------------------+ string StringLower(string str){StringToLower(str); return(str);}
Hopefully it is useful and helpful, happy coding .. Have a nice day 😊
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