Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unknown OIF file type.

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

    Unknown OIF file type.

    I am getting this error in the log when the strategy tries to place an order.

    Unknown OIF file type 'C:Program FilesNinjaTrader 5incomingcommand.txt'

    The entire command is shown below:

    FileAppend("crogram filesninjatrader 5incomingcommand.txt",
    "PLACE;SIM101;ER2 06-06;BUY;2;LIMIT;"+numtostr(close[0]-EntryAdjNin,1)+";0;GTC;;;ER surge 2c stop 1;");

    In NT4 I use to use order.txt but with NT5 I read one uses COMMAND.TXT.

    Using TS 2000i and NT5 5.1.1000.2

    Please advise,

    Zardoz




    #2
    imported post

    OIFs must be written to the <NinjaTrader Installation Folder>\Incoming folder and be named oif*.txt.
    RayNinjaTrader Customer Service

    Comment


      #3
      imported post

      Thanks for the quick reply. Will try it. You should be aware however that in your knowledge base doc under ATI you have the following as an example of "GOOD" code. no oif*.txt here:


      Good:
      ...
      FileAppend("C:\Program Files\NinjaTrader 5\incoming\command.txt","PLACE;SIM101;ES 03-06;Buy;1;LIMIT;1283.25;0;GTC;;;TEST1;" + NewLine + "PLACE;SIM101;ES 03-06;Buy;1;LIMIT;1283.75;0;GTC;;;TEST2);




      thx

      Comment


        #4
        imported post

        Thanks for pointing this out, sorry for your inconvenience. Will make the change shortly.

        Ray
        RayNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        110 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        156 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        74 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        125 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        79 views
        0 likes
        Last Post PaulMohn  
        Working...
        X