Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OIF automated trading outgoing files for state not showing the order id.

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

    OIF automated trading outgoing files for state not showing the order id.

    UPON entering this OIF files for automated trading using the file system, in the INCOMING folder, in the OUTGOING folder, almost everything is correct and the files are generated with the corresponding ids... except for the status files, that contain WORKING and FLAT, thus, making it impossible to follow up on the trades correctly.

    OIF1.txt
    PLACE;Sim101;NQ 06-23;BUY;1;MARKET;;;DAY;;ORDER5;NQATM;ORDER5
    PLACE;Sim101;ES 06-23;BUY;1;MARKET;;;DAY;;ORDER6;ESATM;ORDER6​

    OIF4.txt
    CLOSESTRATEGY;;;;;;;;;;;;ORDER5
    CLOSESTRATEGY;;;;;;;;;;;;ORDER6​


    Is there any fix for this?

    (Take a look at the attatched thumbnail).

    This happens in all versions of ninjatrader 8, even the new one with the google login.
    Attached Files

    #2
    Hello, thanks for writing in. This is a specific limitation of the OIF file system. The ID you are seeing is for the stop or target orders generated by the ATM. You can find these order IDs in the Orders tab of the control center. The only workaround for this would be to use the StopOrders() and TargetOrders() methods from the NinjaTrader.Client.dll interface which will give a list of the stops and targets along with their OrderID. This can then be used to identify the various files in the outgoing folder. See the example here:

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    80 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    46 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    29 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    32 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    66 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X