Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Access Accounts From Indicator

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Access Accounts From Indicator

    I am converting an indicator from NT7 to NT8 and am having trouble accessing the accounts. In NT7, I used the following code:

    Account acct = Cbi.Globals.Accounts.FindByName(accountName);

    However, NT8 says the Globals namespace does not exist in NinjaTrader.Cbi. How would I access the accounts list in NT8?

    #2
    Hello toptrader,

    Below I am providing a link to the help guide on the Account.All collection which contains all of the accounts.


    Use a loop to match the account by Account.Name.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    44 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    54 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    34 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    95 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    57 views
    0 likes
    Last Post PaulMohn  
    Working...
    X