• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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, 09:27 AM.
    JimNinjaTrader Customer Service

    Comment


      #3
      Thank you Jim.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by martyn73, Today, 03:08 PM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_ChrisL  
      Started by raffu, Today, 01:16 PM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by fx.practic, Today, 01:04 PM
      2 responses
      7 views
      0 likes
      Last Post fx.practic  
      Started by fx.practic, Today, 12:35 PM
      2 responses
      8 views
      0 likes
      Last Post fx.practic  
      Started by martyn73, Today, 12:03 PM
      1 response
      11 views
      0 likes
      Last Post NinjaTrader_Jim  
      Working...
      X