Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OIF error - An entry with the same key already exists

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

    OIF error - An entry with the same key already exists

    NT Support

    I am having a bridge created between MetaTrader 5 and NinjaTrader 8 using ATI file interface. Its giving me an error, Unhandled exception: An entry with the same key already exists.

    My developer is assisting in getting this working. Can you please help me out with what might be causing this?


    Thanks
    Jeff


    Jdmtrader
    NinjaTrader Ecosystem Vendor - JDM Indicators

    #2
    Hello Jeff,

    Thanks for your post.

    Could you please confirm that each new .txt file has an enumerated file name like OIF1.txt, OIF2.txt, as directed in the help guide page linked below.
    https://ninjatrader.com/support/help..._files_oif.htm

    Can you also confirm that each new order has a unique OrderID?
    https://ninjatrader.com/support/help...AndValidValues

    Thanks in advance; I look forward to assisting further.​
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      Ok. I did resolve this. However, I'm not sure if its a limitation with using OIF files but it seems there is a noticeable delay when uploading a new OIF file to the incoming folder and NT8 processing it and executing the trade.
      Jdmtrader
      NinjaTrader Ecosystem Vendor - JDM Indicators

      Comment


        #4
        Hello Jdmtrader,

        Thanks for your note.

        OIF files are processed the instant they are written to the hard disk without delay. This information could be seen on the help guide page linked below.

        Order Instruction Files: https://ninjatrader.com/support/help..._files_oif.htm

        See this demonstration video showing the above: https://brandonh-ninjatrader.tinytak...OF8yMDg4MDY1Ng

        Please open one chart window for the instrument you are submitting an OIF order to and have all other windows and workspaces closed. Add the OIF .txt file to the Documents\NinjaTrader 8\incoming folder to submit the order.

        Do you see the order processed without delay as seen in the demonstration video above?

        Please let me know if I may assist further.
        Brandon H.NinjaTrader Customer Service

        Comment


          #5
          Turns out, I had OneDrive enabled and that was causing latency, I removed OneDrive syncing from the My Documents folder and that has resolved the issue.
          Jdmtrader
          NinjaTrader Ecosystem Vendor - JDM Indicators

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by jackiegils, Yesterday, 11:05 PM
          1 response
          9 views
          0 likes
          Last Post marcus2300  
          Started by Skifree, Today, 02:50 PM
          0 responses
          8 views
          0 likes
          Last Post Skifree
          by Skifree
           
          Started by owen5819, Today, 02:24 PM
          1 response
          9 views
          0 likes
          Last Post owen5819  
          Started by Skifree, 05-07-2024, 11:38 PM
          2 responses
          28 views
          1 like
          Last Post Skifree
          by Skifree
           
          Started by OllieFeraher, 05-09-2024, 11:14 AM
          4 responses
          15 views
          0 likes
          Last Post MisterTee  
          Working...
          X