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 rhyminkevin, Today, 04:58 PM
          3 responses
          47 views
          0 likes
          Last Post Anfedport  
          Started by iceman2018, Today, 05:07 PM
          0 responses
          5 views
          0 likes
          Last Post iceman2018  
          Started by lightsun47, Today, 03:51 PM
          0 responses
          7 views
          0 likes
          Last Post lightsun47  
          Started by 00nevest, Today, 02:27 PM
          1 response
          14 views
          0 likes
          Last Post 00nevest  
          Started by futtrader, 04-21-2024, 01:50 AM
          4 responses
          50 views
          0 likes
          Last Post futtrader  
          Working...
          X