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

    Comment


      #3
      Thank you Jim.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Stefan1982, Today, 09:26 AM
      1 response
      15 views
      0 likes
      Last Post NinjaTrader_Kate  
      Started by ArmKnuckle, Today, 03:08 PM
      0 responses
      6 views
      0 likes
      Last Post ArmKnuckle  
      Started by Mykro, Today, 02:51 PM
      1 response
      4 views
      0 likes
      Last Post NinjaTrader_BrendanC  
      Started by 5element, Today, 02:46 PM
      0 responses
      8 views
      0 likes
      Last Post 5element  
      Started by darkgreen, Today, 09:36 AM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_Kate  
      Working...
      X