How to put the password to an EA that I have to give to a friend?
-
How to put the password to an EA that I have to give to a friend?
I want to prevent it from being disclosed, thanks to those who will help me! -
Voce pode inserir uma data de vencimento.
Assim quando for a data determinada o EA irá parar de funcionar.Você pode fazer isso diretamente pelo fxdreema ou manualmente inserindo no código esta função caso entenda sobre codigos.
Voce oode enviar aqui o codigo ou o link do projeto que farei para voce se desejar.
-
You can put the client's account number in a condition, if different terminate, you could put a password in a condition, if friend doesn't enter the correct password, the EA again terminates
-
Hello friend, I am not an expert but I think this is what you need, you can unlock the blocks you need and use them, success in your project.
https://fxdreema.com/shared/ZAmwIkn7c
Youtube Tutorial:
https://www.youtube.com/watch?v=qmKxo7nIlYI&pp=ygUQbGljZW5jZSBmeGRyZWVtYQ%3D%3D -
please i want to know how to stop the robot from placing trade after making $20 profit daily.
-
@creatingrobot Hello, share a thread of the robot to see its logic and help you if possible.
-
@creatingrobot I already replied to your request. Please don't duplicate your questions.
-
@VHV-Profit-Masters THANKS !!!!!
-
I had the same situation a while ago when I created an Expert Advisor (EA) for a friend but didn’t want it to be shared or misused. After some research and trial-and-error, I found a simple way to protect it using account restrictions and a basic password system.
What I did was include a few lines of code in the EA that check for a specific account number or password. If the password doesn’t match, the EA simply won’t run. For example, I added something like this in the OnInit() function:
string allowedPassword = "mysecret123";
if (password != allowedPassword) {
Print("Unauthorized user");
return(INIT_FAILED);
}I also added an input field for the password so my friend could enter it when attaching the EA to the chart. It worked great — simple but effective for personal sharing.
Later on, I learned about binding the EA to specific account numbers using AccountNumber() for extra security. That way, even if someone shares the EA, it won't run on unauthorized accounts.
If you're not familiar with MQL4/5, I suggest searching for “account lock EA mql4” or “EA licensing” — there are even services that can do it professionally if needed.
-
Yes but some code doesn't work on FX, all of this can be done by setting standard blocks... is the biggest advantage to FX, most code is already in the blocks