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 Clevchin, Today, 12:57 PM
          8 responses
          15 views
          0 likes
          Last Post Clevchin  
          Started by samish18, Today, 03:48 AM
          11 responses
          19 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by serman, Yesterday, 09:47 AM
          5 responses
          21 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by Salahinho99, 06-18-2024, 08:49 AM
          5 responses
          56 views
          0 likes
          Last Post JosephDavidsona  
          Started by kidpoker007, 05-30-2024, 01:43 PM
          13 responses
          144 views
          0 likes
          Last Post marcus2300  
          Working...
          X