Hello Developers!
Do you know how to set password for the EAs?
yeah
input string pass = ""; // enter a password string passwd = "hellobaby" void OnInit() { if (pass != passwd) { ExpertRemove(); } }
You have to hardcode it, because MT doesn't allow to hide a file somewhere deep in the system file. It's also possible to add some encryption stuff, but that's the basic way to do it.
See there for more advanced secure tips depending on your setup, you may choose a licence key on the net or whatever ...
https://www.mql5.com/en/articles/359
![Securing MQL5 code: Password Protection, Key Generators, Time-limits, Remote Licenses and Advanced EA License Key Encryption Techniques Securing MQL5 code: Password Protection, Key Generators, Time-limits, Remote Licenses and Advanced EA License Key Encryption Techniques](https://c.mql5.com/36/16/securing-mql5-code-password-protection__2.png)
- 2012.02.17
- investeo
- www.mql5.com
yeah
You have to hardcode it, because MT doesn't allow to hide a file somewhere deep in the system file. It's also possible to add some encryption stuff, but that's the basic way to do it.
See there for more advanced secure tips depending on your setup, you may choose a licence key on the net or whatever ...
https://www.mql5.com/en/articles/359
Thank you very much @Icham Aidibe
You're welcome.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello Developers!
Do you know how to set password for the EAs?