Download MetaTrader 5

pls i need your help

To add comments, please log in or register
oladosu adewale
11
oladosu adewale  
HOW CAN I CODE FOR SOMEBODY REQUESTING FOR MY EA. I MEAN THE CODE AS I NEED HIS ACCOUNT TO DO THAT BUT I DON'T KNOW HOW TO DO IT. I NEED YOUR HELP PLEASE.

JUST GIVE ME THE MQL4 THE WAY TO INPUT IT, I HAVE ONE HEAR BUT IS NOT PLACING TRADE AS I INPUT IT THEIR,

int hard_accnt = 11111; //<-- type the user account here before compiling
int accnt = AccountNumber();

if (accnt != hard_accnt)
{
Alert ("You can not use this account (" + DoubleToStr(accnt,0) + ") with this program!");
return(0);
}
// your normal code!
return(0);

THIS CODE IS NOT WORKING
Joao Rosas
391
Joao Rosas  
it may not be working if you put this code inside the init() function, which runs only once. Try coding it inside the start() function, instead.
whroeder1
14779
whroeder1  
why bother, they will just decompile your ex4 and change the value whenever they like.
whroeder1
14779
whroeder1  
WHRoeder: why bother, they will just decompile your ex4 and change the value whenever they like.
No longer true since Build 600
To add comments, please log in or register