How to Limit Account using indicator

 

Hi Coding Expert friends,

Please advice how to LIMIT account for using an indicator.

So, only certain account number may use the indicator.

Thank you.

 

Put this as a first line in start :

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

replace the number with your own

 

Hi Mladen,

You are alway kind.

I have put the code, but can not work.

I attached the indi. Would you please to do it for me?

Thank you and regards,

anton

Note: i.e. my account is 123678

mladen:
Put this as a first line in start :

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

replace the number with your own
Files:
 
anton1:
Hi Mladen,

You are alway kind.

I have put the code, but can not work.

I attached the indi. Would you please to do it for me?

Thank you and regards,

anton

Note: i.e. my account is 123678

Like in the attached

Files:
 

Great. It works very well. Thank you very much.

mladen,

Would you please to add coding "to limit the time" for example the indi will be expired at june 2014.

Thank you and best regards,

anton

NOTE: I AM SORRY TO ASK "HOW CAN I GIVE BACK YOUR KINDNESS TO YOU?"

mladen:
Like in the attached
 

Hi mladen,

Everything is ok now. I have found the way.

Thank you and Best Regards,

anton

 

Hi mladen,

I have a problem to limit ACCOUNT + limit the TIME (expire date i.e. Dec 31, 2014).

Please advice and help.

Thank you and regards,

anton

 
anton1:
Hi mladen,

I have a problem to limit ACCOUNT + limit the TIME (expire date i.e. Dec 31, 2014).

Please advice and help.

Thank you and regards,

anton

anton

Post the code that you are using to do that (only the part that is trying to limit account and time) so that it can be revised

 

Hi mladen,

The indi in MA of MA.

Please help.

Thanks and Regards,

anton

mladen:
anton Post the code that you are using to do that (only the part that is trying to limit account and time) so that it can be revised
Files:
ma_of_ma.mq4  2 kb
 
anton1:
Hi mladen,

The indi in MA of MA.

Please help.

Thanks and Regards,

anton

Try something like this : ma_of_ma_1.mq4

Files:
 

Hi mladen,

where should I put the ACCount number, to limit.

Thanks and Regards,

anton

mladen:
Try something like this : ma_of_ma_1.mq4
Reason: