Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order.OrderId - value can change?

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

    Order.OrderId - value can change?

    Documentation for Order.OrderID states: "A string representing the broker issued order id value (this value can change)"


    Can I reliably reference orders by OrderID? During what condition would an OrderId value of an order change?

    Thanks.

    #2
    Hello martyn73,

    As an example, NinjaTrader creates an order object and assigns this a temporary internal orderid. Then transmits the order submission the broker. The broker will create an order on their system and will generate a different order id they use to track on their end. When the order is accepted, the temporary id saved with the local order object changes to the id received back from the broker.

    In general using signal names to assign order objects from OnOrderUpdate is the guided way, but depending on when you are saving the order id (such as after the order is accepted), it may or may not be ok to track orders using the orderid.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks for that clarification. And are there any issues with referencing Order.Id?

      Comment


        #4
        Hello martyn73 ,

        The Order.Id is not documented but I am not seeing this change.

        If you are finding this is not working please let me know and I will do some testing.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        44 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        54 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        34 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        95 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        57 views
        0 likes
        Last Post PaulMohn  
        Working...
        X