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 DannyP96, 05-18-2026, 02:38 PM
        1 response
        27 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        117 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        69 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        226 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        413 views
        0 likes
        Last Post CaptainJack  
        Working...
        X