+1 888 340 6572

GetAccount

From MultiCharts

Returns the account number for the account at a specific location in the list of accounts.

If the value returned by GetNumAccounts is a non-zero, then:

for 1 <= AccountLoc <= GetNumAccounts, the function returns the account number.

For other sequence numbers an empty string ("") is returned.

Usage

GetAccount(AccountLoc)

Where:

AccountLoc - the sequence number of the account in the list of accounts.

Notes

This function can be used along with GetNumAccounts, to enumerate available accounts returned by broker.

Example

The broker returned the following list of accounts: "DU12345", "DU23456", "DU34567", "DU45678".

GetAccount(3)

will return "DU34567".

GetAccount(5)

will return "".