Download MetaTrader 5
To add comments, please log in or register
What are the latest MQL5.community news? The Wall section will tell you!
Chen Han
30
Chen Han 2007.07.10 21:09 
Hello

I need a help how to lock my EA/Script based on my login account number ?

example:
my login number in my broker is 12345 , and I want my EA/Script can run only in that login number.

also how to lock the EA/Script that can run in one broker only ?
(example: my EA/Script can run only in FXDD)

is it possible for the compiled EA or Script to decode it so I can see the programming code again ?

please help

NOTE:
better if you can give me an example of one EA and script that contains about this and how to put it -> because I'm a newbie and need a help to lock my EA/Script

You can also e-mail me at indosby@gmail.com

(I have some rewards for you if you can explain very clear and very good for me.
If have more than 1 person that explain to me very good then I will give the rewards randomly for 1 person or for the best one -> I'm using e-gold or e-bullion to give the rewards)

I need it immediately

thank you


Han
okwh
1629
okwh 2007.07.11 05:53  

change your EA code as below:

_________________________________

int ccc= 12345;

int start()

{

if ( AccountNumber( ) != ccc) return(0);

...........................

}

_____________________________

Chen Han
30
Chen Han 2007.07.11 16:55  
DxdCn:

change your EA code as below:

_________________________________

int ccc= 12345;

int start()

{

if ( AccountNumber( ) != ccc) return(0);

...........................

}

_____________________________

For Script, is it same ?

thank you
Chen Han
30
Chen Han 2007.07.11 20:13  
DxdCn:

change your EA code as below:

_________________________________

int ccc= 12345;

int start()

{

if ( AccountNumber( ) != ccc) return(0);

...........................

}

_____________________________

how to make the this script can run only in FXDD Broker with account name of John Doe for the example ?
thank you
zap
181
zap 2007.07.11 23:42  
AccountCompany() function returns broker's name.
AccountName() returnes the name associated with your account.

if (AccountCompany != "Interbank FX, LLC" && AccountName() != "John Doe") return(0);

(you need to check the correct returned company name, I just wrote Interbank FX, LLC there)
Chen Han
30
Chen Han 2007.07.12 21:05  
Zap:
AccountCompany() function returns broker's name.
AccountName() returnes the name associated with your account.

if (AccountCompany != "Interbank FX, LLC" && AccountName() != "John Doe") return(0);

(you need to check the correct returned company name, I just wrote Interbank FX, LLC there)
thank you
Luca Spagnoli
396
Luca Spagnoli 2015.11.02 10:35  
DxdCn:

change your EA code as below:

_________________________________

int ccc= 12345;

int start()

{

if ( AccountNumber( ) != ccc) return(0);

...........................

}

_____________________________

 

where should I put it?

oF the beginning or the end?

Ankit Kumar Bhagat
238
Ankit Kumar Bhagat 2015.11.05 10:12  
Zap:
AccountCompany() function returns broker's name.
AccountName() returnes the name associated with your account.

if (AccountCompany != "Interbank FX, LLC" && AccountName() != "John Doe") return(0);

(you need to check the correct returned company name, I just wrote Interbank FX, LLC there)

where shall one put this after cord in indicator. If one need to lock indicator with account number 

thanks 

/
To add comments, please log in or register