Login Page - Create Account

Support Board


Date/Time: Sat, 23 Nov 2024 17:13:53 +0000



How to get accounts list in ACSIL

View Count: 169

[2024-08-08 15:41:37]
gambcl - Posts: 5
I can see that there are various ACSIL functions that take a trade account string parameter,
And I can also see there is a SelectedTradeAccount property to identify the currently selected trade account.

But, how can we get the list of available trade accounts that appear in the accounts drop-down list?

For example if I wanted to get the open positions and orders for all accounts, how do I know what account names to pass into GetTradePositionForSymbolAndAccount() ?
[2024-08-08 16:15:04]
User431178 - Posts: 541
Two functions that you might find useful for this.

1) sc.GetNumTradeAccounts()
2) sc.GetTradeAccountAtIndex(const int32_t Index, SCString& r_TradeAccount)
[2024-08-08 16:22:02]
gambcl - Posts: 5
Perfect, thanks.

Neither of these are listed in the website documentation, so I’ll have a read of the header to see what else is there.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account