IAccountsCollection INTERFACE

Current PROPERTY (Account)
Represent access to account object of currently selected account (only for strategies) SYNTAX Account Current { get; } EXAMPLE The followin...
LoggedUser PROPERTY (User)
Gets user who is logged in the system. SYNTAX User LoggedUser { get; }
TradingDefaultAccount PROPERTY (Account)
Represent access to the account object selected in the trading default section (haven't sence for the backtesting) SYNTAX Account TradingDefaul...
GetAccountById (string accountId) METHOD (Return: Account)
Represent access to account object selected by account ID. SYNTAX Account GetAccountById (string accountId) PARAMETERS accountId — string A...
GetAccountByName (string name) METHOD (Return: Account)
Represent access to account object selected by account name. SYNTAX Account GetAccountByName (string name) PARAMETERS name — string Account na...
GetAccounts () METHOD (Return: Account[])
Represent a collection of all active accounts. Access to the accounts can be obtained by index. SYNTAX Account[] GetAccounts () RETURN Account...
GetSortedAccounts () METHOD (Return: Account[])
Represent a collection of all active accounts, sorted by name. Access to the accounts can be obtained by index. SYNTAX Account[] GetSortedAccounts (...
AccountAdded EVENT
Occurs when the new account is added. Never occurs for emulated user in AlgoStudio. SYNTAX public event abstract virtual Action<Account> Accou...
AccountRemoved EVENT
Occurs when the account was removed. Never occurs for emulated user in AlgoStudio. SYNTAX public event abstract virtual Action<Account> Accoun...