• 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 bztynbzp, Yesterday, 11:17 PM
        0 responses
        1 view
        0 likes
        Last Post bztynbzp  
        Started by Dan_D_Trader, Yesterday, 03:49 PM
        0 responses
        4 views
        0 likes
        Last Post Dan_D_Trader  
        Started by JohnAymin, Yesterday, 02:38 PM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_Tyler  
        Started by Rmos22, Yesterday, 02:20 PM
        2 responses
        23 views
        0 likes
        Last Post Rmos22
        by Rmos22
         
        Started by sawtooth500, Yesterday, 12:59 PM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_Spencer  
        Working...
        X