Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OIF Formatting

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

    OIF Formatting

    According to the help guide, an OIF place order should contain these elements:
    PLACE COMMAND
    PLACE;<ACCOUNT>;<INSTRUMENT>;<ACTION>;<QTY>;<ORDER TYPE>;[LIMIT PRICE];[STOP PRICE];<TIF>;[OCO ID];[ORDER ID];[STRATEGY];[STRATEGY ID]

    My take on what that should look like is:
    "PLACE;Sim101;ES 09-23;Buy;1;Market;"

    My OIF orders are being received, but the log says:
    ...has invalid number of parameters, is 6 but should be 13

    What does a properly formatted OIF text line look like?


    #2
    Hello Atomic,

    You will need a semicolon for the unused parameters as well.

    PLACE;Sim101;ES 09-23;Buy;1;Market;;;;;;;

    Below is a link to the help guide.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Never mind. I got it. I had added a line feed to my order string.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      43 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      29 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      46 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      38 views
      0 likes
      Last Post CarlTrading  
      Working...
      X