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 AaronKoRn, Yesterday, 09:49 PM
        0 responses
        11 views
        0 likes
        Last Post AaronKoRn  
        Started by carnitron, Yesterday, 08:42 PM
        0 responses
        10 views
        0 likes
        Last Post carnitron  
        Started by strategist007, Yesterday, 07:51 PM
        0 responses
        11 views
        0 likes
        Last Post strategist007  
        Started by StockTrader88, 03-06-2021, 08:58 AM
        44 responses
        3,980 views
        3 likes
        Last Post jhudas88  
        Started by rbeckmann05, Yesterday, 06:48 PM
        0 responses
        9 views
        0 likes
        Last Post rbeckmann05  
        Working...
        X