×

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.

Changes - MultiCharts
Open main menu

Changes

GetAccount

930 bytes added, 14:13, 24 February 2012
no edit summary
Returns the account number for the account at a specific location in the list of accounts.
 
If the value returned by <code>[[GetNumAccounts]]</code> is a non-zero, then:
 
for <code>1 <= AccountLoc <=</code> <code>[[GetNumAccounts]]</code>, the function returns the account number.
 
For other sequence numbers an empty string ("") is returned.
== Usage ==
<syntaxhighlight>GetAccount(AccountLoc)</syntaxhighlight>
 
Where:
: <code>AccountLoc</code> - the sequence number of the account in the list of accounts.
 
== Notes ==
This function can be used along with <code>[[GetNumAccounts]]</code>, to enumerate available accounts returned by broker.
 
== Example ==
The broker returned the following list of accounts: "DU12345", "DU23456", "DU34567", "DU45678".
 
<syntaxhighlight>GetAccount(3)</syntaxhighlight> will return <code>"DU34567"</code>.
 
<syntaxhighlight>GetAccount(5)</syntaxhighlight> will return <code>""</code>.
[[Category:Accounts & Positions]]