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

**NT** Error on calling 'OnBarUpdate' method for strategy X: Item has already been ad

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

    **NT** Error on calling 'OnBarUpdate' method for strategy X: Item has already been ad

    Sometimes I receive this error as well, it is not 100% reproducible

    **NT** Error on calling 'OnBarUpdate' method for strategy 'X': Item has already been added. Key in dictionary: '..#Ratio' Key being added: '..#Ratio'

    The call occurs in OnBarUpdate:

    DrawTextFixed("..#Ratio", s, TextPosition.TopLeft);

    #2
    Hello alex.nt,

    Thanks for your post.

    This message is not something that we have been able to have a reproducible scenario however this information will be helpful for us to test and look into this further.
    After receiving this message it would be required to reset your database which will remove all historical trade information.
    To do this you will need to disconnect and go to Tools> Options> Data> ResetDB

    I will include this information further in our testing.
    BrandonNinjaTrader Customer Service

    Comment


      #3
      By the way, is it allowed to copy historical data from one machine to another (they can be in different time zones)?

      Is it allowed to copy Replay data from one machine to another (they can also be in different time zones)?

      Could that be a trigger for the mentioned error?

      Comment


        #4
        Hello alex.nt,

        Thanks for your reply.

        Transferring Market Replay data from one computer to another, even from different time zones, shouldn't cause any issues.
        Historical data should not either however I would recommend to use the Import and Export feature of the Historical Data Manager to ensure it get's converted correctly. I will try test these also however.
        Below I have provided a link to the Historical Data Manager section of our help guide.
        BrandonNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by futtrader, 04-21-2024, 01:50 AM
        4 responses
        41 views
        0 likes
        Last Post futtrader  
        Started by Option Whisperer, Today, 09:55 AM
        1 response
        11 views
        0 likes
        Last Post bltdavid  
        Started by port119, Today, 02:43 PM
        0 responses
        1 view
        0 likes
        Last Post port119
        by port119
         
        Started by Philippe56140, Today, 02:35 PM
        0 responses
        3 views
        0 likes
        Last Post Philippe56140  
        Started by 00nevest, Today, 02:27 PM
        0 responses
        2 views
        0 likes
        Last Post 00nevest  
        Working...
        X