account number lock MQL5
There's nothing wrong with your posted code except that ACCOUNT_LOGIN returns a possible long and you are using an int.
Constants, Enumerations and Structures / Environment State / Account Properties - Reference on algorithmic/automated trading language for MetaTrader 5
If it is put in OnTick() it should be coded to only carry out the check once.
Otherwise there will be a lot of prints.
Yes, indeed. But OnStart for EA is never called.
I wasn't disputing that.
Seems like an ego discussion loool
![]()
Seems like an ego discussion loool
Hello
I have added a code to my EA MQ5 but it doesn't work .
could you please correct me .