Easy!
Test for both conditions:
int start()
{
while ( AllowedAccount( AccountNumber() ) && AllowedPeriod())
{
Trade(); //make sure to add additional checks inside your code to make tampering more difficult
}
return(0);
}
bool AllowedAccount( int current_account ) { <...decoding algorithm here...> }
bool AllowedPeriod() { <...is period ok? true | false...> }
Please Mr, Try to give examples that you protect it, so I can better understand
seek3:
The moment you publish your executable, someone will decompile it and remove the protections. By putting code in DLLs you add protection.
Hello i want to protect my ea!?
I can make it work on 1 account and also make it work for a limeted time (period protection)
But i want both!! account number protection and period protection!

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
Hello i want to protect my ea!?
I can make it work on 1 account and also make it work for a limeted time (period protection)
But i want both!! account number protection and period protection!
How must i do that?
Your help would be welcome