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.​
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    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.
        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        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 argusthome, 03-08-2026, 10:06 AM
          0 responses
          86 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          48 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          30 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          33 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          67 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X