• 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

  • gurko
    replied
    Thank you Chelsea,

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

    Kind regards,
    Stefan.

    Leave a comment:


  • NinjaTrader_ChelseaB
    replied
    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.

    Leave a comment:


  • NinjaTrader_ChelseaB
    replied
    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.

    Leave a comment:


  • gurko
    started a topic Can I use the UserData property of class Order?

    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.

Latest Posts

Collapse

Topics Statistics Last Post
Started by teafortwo, Today, 12:51 AM
1 response
13 views
0 likes
Last Post NinjaTrader_PaulH  
Started by marcus2300, Today, 04:20 AM
1 response
14 views
0 likes
Last Post NinjaTrader_PaulH  
Started by johnnymustard, Yesterday, 11:45 PM
1 response
42 views
0 likes
Last Post NinjaTrader_Marco  
Started by Mttzern, 02-22-2020, 10:42 AM
1 response
30 views
0 likes
Last Post NinjaTrader_Marco  
Started by saltminer, Yesterday, 10:40 PM
0 responses
12 views
0 likes
Last Post saltminer  
Working...
X