Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Too many accounts in 'Account.All'

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

    Too many accounts in 'Account.All'

    Hello,

    I have an account control in my Ninja script coding, using the 'Account.All' collection.
    When I access that collection, por example with a 'foreach' sentence, a lot of accounts come up: all my testing accounts, old demo accounts, Interactive Brokes accounts... even I don't see them in the Accounts tab of the Control Center.

    Where does NinjaTrader keep all this old accounts, and how can I delete them? Just to keep my environment as neat as possible.

    By the way, I have a lifetime NinjaTrader (NT8) license.

    Thanks a lot!

    #2
    Hello pserrera,

    There is a new release of NinjaTrader 8 due in the near future. The Accounts available were among items worked on in this release.

    I will need to test in the new release before addressing the issue.

    I appreciate your patience.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hello pserrera,

      I was able to confirm disconnected accounts will appear in the Account.All collection. This is by design and are in the collection so that the orders from disconnected accounts can be accessed by an Addon.

      You can filter for connected accounts only if you would like.
      Account.All.Where(x => x.ConnectionStatus == ConnectionStatus.Connected)

      The Accounts tab of the Control Center, as well as AccountSelectors will only show connected accounts.
      Chelsea B.NinjaTrader Customer Service

      Comment


        #4

        thanks a lot, it works fine!!

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by PWillard, Today, 12:56 AM
        0 responses
        1 view
        0 likes
        Last Post PWillard  
        Started by WidenThur, Today, 12:48 AM
        0 responses
        1 view
        0 likes
        Last Post WidenThur  
        Started by devidbelly, Today, 12:39 AM
        0 responses
        2 views
        0 likes
        Last Post devidbelly  
        Started by anderson, Yesterday, 11:06 PM
        0 responses
        1 view
        0 likes
        Last Post anderson  
        Started by eseorafva, Yesterday, 10:43 PM
        0 responses
        0 views
        0 likes
        Last Post eseorafva  
        Working...
        X