Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

NT Order Status Function

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

    NT Order Status Function

    In the help there is this:
    string OrderStatus(string orderId)
    Gets the order state (see definitions) for the orderId. Returns an empty string if the order ID value provided does not return an order.

    One question is how long does the platform retain a memory of orders? I have been assuming that when the log gets turned over to a new day and your order is no longer listed in it, that the platform will no longer report status for an order that does not appear in the log. This seems not to be the case.

    A complaint. In what I quoted from the help above, there is this, (see definitions). It is nearly impossible to find the "definitions". It should be a hot link.



    #2
    Hello, thanks for writing in. The order IDs are stored in the NinjaTrader database indefinitely. You can see these by accessing New>Trade Performance>Orders view. As long as the database does not get reset OrderStatus() will be able to access any order that exists in the database. I'll send an email to the help guide admins suggesting we add a hot link to the order states here:

    Chris L.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by traderzoso, 12-27-2020, 05:19 PM
    6 responses
    229 views
    0 likes
    Last Post lekor
    by lekor
     
    Started by ETFVoyageur, 05-18-2024, 12:45 AM
    4 responses
    26 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by Skifree, Today, 11:47 AM
    4 responses
    17 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by molecool, Today, 01:48 PM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by ETFVoyageur, Today, 12:26 PM
    3 responses
    11 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X