• 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 superg3, Today, 12:33 AM
        0 responses
        3 views
        0 likes
        Last Post superg3
        by superg3
         
        Started by vppzepuq, Yesterday, 11:28 PM
        0 responses
        1 view
        0 likes
        Last Post vppzepuq  
        Started by Steve L, 05-25-2019, 10:04 PM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by mestril, 05-25-2019, 10:22 AM
        1 response
        14 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by hir04068, 05-25-2019, 09:29 PM
        7 responses
        21 views
        0 likes
        Last Post hir04068  
        Working...
        X