Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 TraderBCL, Today, 04:38 AM
        2 responses
        17 views
        0 likes
        Last Post TraderBCL  
        Started by martin70, 03-24-2023, 04:58 AM
        14 responses
        106 views
        0 likes
        Last Post martin70  
        Started by Radano, 06-10-2021, 01:40 AM
        19 responses
        609 views
        0 likes
        Last Post Radano
        by Radano
         
        Started by KenneGaray, Today, 03:48 AM
        0 responses
        5 views
        0 likes
        Last Post KenneGaray  
        Started by thanajo, 05-04-2021, 02:11 AM
        4 responses
        471 views
        0 likes
        Last Post tradingnasdaqprueba  
        Working...
        X