How to add multiple account # authorization in EA?

 

Does someone know how to add multiple account #'s in the EA before compiling it?

Here is the code in the EA:

// Use Account number as Password

// For each client change the value 54321 to their account number

int ValidAccountNumber = 12345; // Use this number for actual user account number

extern int YourAccountNumber = 12345; // User input must match ValidAccountNumber to use expert

bool UseExpire = true; // change to true for expiration

int ExpireMonth = 4;

int ExpireDay = 25;

int ExpireYear = 2009;

Do I just put some special keystroke between all the account #'S?

I would like to add all my customers #'s in 1 master EA so I can just send it out to everyone instead of an EA for each individual person to save time.

Thanks in advance

fxgrm

 

Multi Account code

fxgrm:
Does someone know how to add multiple account #'s in the EA before compiling it?

Here is the code in the EA:

// Use Account number as Password

// For each client change the value 54321 to their account number

int ValidAccountNumber = 12345; // Use this number for actual user account number

extern int YourAccountNumber = 12345; // User input must match ValidAccountNumber to use expert

bool UseExpire = true; // change to true for expiration

int ExpireMonth = 4;

int ExpireDay = 25;

int ExpireYear = 2009;

Do I just put some special keystroke between all the account #'S?

I would like to add all my customers #'s in 1 master EA so I can just send it out to everyone instead of an EA for each individual person to save time.

Thanks in advance

fxgrm

This is a way to do it - of course there may be a better setup.

int Account_Number1 = 12345677;

int Account_Number2 = 1234;

int Account_Number3 = 2356;

int Account_Number4 = 5678;

int Account_Number5 = 456789;

int Account_Number6 = 24572;

if (Account_Number1 !=AccountNumber())

if (Account_Number2 !=AccountNumber())

if (Account_Number3 !=AccountNumber())

if (Account_Number4 !=AccountNumber())

if (Account_Number5 !=AccountNumber())

if (Account_Number6 !=AccountNumber())

{

return(0);

}

Only 1 of the above 6 Account numbers needs to be valid for the EA/Indicator to function and of course if the User Account number does not match any numbers in the list then the EA/Indicator will not work.

 

Thanks CJA!

I will give this a try. This will sure cut down on compiling EA's individually.