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 imalil, Today, 06:07 PM
        0 responses
        1 view
        0 likes
        Last Post imalil
        by imalil
         
        Started by gchan, Today, 05:48 PM
        0 responses
        1 view
        0 likes
        Last Post gchan
        by gchan
         
        Started by herbnderby, Today, 02:29 PM
        5 responses
        13 views
        0 likes
        Last Post NinjaTrader_Kate  
        Started by Neo2020, Today, 01:51 PM
        3 responses
        27 views
        0 likes
        Last Post NinjaTrader_Melissa  
        Started by RFrosty, Today, 01:46 PM
        0 responses
        17 views
        0 likes
        Last Post RFrosty
        by RFrosty
         
        Working...
        X