IAccountsCollection
interface
Represents a collection of all accounts in system
Properties
Current Account | Represent access to account object of currently selected account (only for strategies) |
LoggedUser User | Gets user who is logged in the system. |
TradingDefaultAccount Account | Represent access to the account object selected in the trading default section (haven't sence for the backtesting) |
Methods
GetAccountById (string accountId) Return: Account | Represent access to account object selected by account ID. |
GetAccountByName (string name) Return: Account | Represent access to account object selected by account name. |
GetAccounts () Return: Account[] | Represent a collection of all active accounts. Access to the accounts can be obtained by index. |
GetSortedAccounts () Return: Account[] | Represent a collection of all active accounts, sorted by name. Access to the accounts can be obtained by index. |
Events
AccountAdded | Occurs when the new account is added. Never occurs for emulated user in AlgoStudio. |
AccountRemoved | Occurs when the account was removed. Never occurs for emulated user in AlgoStudio. |