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 😊

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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