• 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

Can I use the UserData property of class Order?

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

    Can I use the UserData property of class Order?

    Hi,

    two questions, please:

    I see an undocumented property named UserData in the Order class. The name seems to suggest I could use it to attach arbitrary data to an order. Is that so?

    Also, there is an OnBehalfOf property (also undocumented). What is the purpose of this property?

    Kind regards,
    Stefan.

    #2
    Hello Stefan,

    I've inquiries with our development about these properties.

    Once I have more information I will update this thread.

    We appreciate your patience.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hello Stefan,

      Our development has given me a response.

      The Order.UserData collection is not indented for use with NinjaScripts and is used for internal tracking from the core of NinjaTrader.

      Modifying this collection can result in unintended behavior.

      Further, the OnBehalfOf property is also used internally, is not intended for use with NinjaScripts and they are not providing information on how this is used internally.
      Chelsea B.NinjaTrader Customer Service

      Comment


        #4
        Thank you Chelsea,

        fine, I will leave the undocumented fields alone. I can store my order-related data in other ways.

        Kind regards,
        Stefan.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by futurenick, Today, 06:26 AM
        1 response
        11 views
        0 likes
        Last Post nkhoi
        by nkhoi
         
        Started by NinjaCustomer, Today, 12:29 PM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_ShawnB  
        Started by Steve L, Today, 11:32 AM
        0 responses
        5 views
        0 likes
        Last Post Steve L
        by Steve L
         
        Started by prabbala, Today, 10:41 AM
        0 responses
        3 views
        0 likes
        Last Post prabbala  
        Started by bebbus, Today, 10:36 AM
        0 responses
        4 views
        0 likes
        Last Post bebbus
        by bebbus
         
        Working...
        X