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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    73 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    152 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    162 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    100 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    288 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X