×

Sign up and get MultiCharts free

Use its powerful simulation mode with data included out of the box. Just fill out the form and start honing your trading skills with a few clicks.

GetAccount - MultiCharts
Open main menu

GetAccount

Revision as of 14:13, 24 February 2012 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 "".