Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order Object

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

    Order Object

    In the Order object there is a property called 'ClientID'. I cannot find any reference to it in the Help documentation. It seems to be always set to -1.

    Is this used by the NT strategy engine or is it a property I can 'Set' and use in my own strategy?

    Thanks,



    #2
    Hello ChazJ,

    Thanks for your question.

    As the property is not documented, it is not supported for regular use. I also could not comment on the internal use of the property as it is undocumented. The property has a getter and a setter so it could be assigned, but I would not recommend setting this property for your own purposes as it could interfere with internal functionality.

    I would instead recommend creating class level variables to track additional information that you would like tracked with orders. You could, for example, create a dictionary that holds information associated with an order's Order.Id property. Whenever orders are submitted or cancelled/filled, you can add the order Id and associated information to your dictionary, or remove that entry from your dictionary.

    Please let us know if we can be of further assistance.
    Last edited by NinjaTrader_Jim; 12-09-2019, 10:27 AM.

    Comment


      #3
      Thank you Jim.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      62 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      134 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      75 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      45 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      50 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X