Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Using ChartTrader QuantitySelector

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

    Using ChartTrader QuantitySelector

    Hello, I am customizing the Chart Trader Order Quantity Selector and wonder if someone can direct me to how to control or focus the controls best as they are in the current state.
    Should I be creating controls in VS to correctly access the order Qty button controls?
    Or can I get help to how to evoke and event that allows me to specify logic to my Selectors, ie is there events to say when sender clears value fields I can set a int value to 0, and when sender clicks one of the 12 numeric buttons in the pop up menue I will increment my int to a value which the button indicating of the menu.

    #2

    Hello LoganJKTrader,

    You can see a sample of working with the quantity control here: https://ninjatrader.com/support/foru...365#post736365

    To set its value you would use its Value property, no focusing is needed for that use case. You don't need to use visual studio for this either.

    There are not any specific events for the control in NinjaScript, you may be able to use a WPF value changed event with the control.

    quantitySelector.ValueChanged
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by cmtjoancolmenero, Yesterday, 03:58 PM
    1 response
    17 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by benmarkal, Yesterday, 12:52 PM
    3 responses
    23 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by helpwanted, Today, 03:06 AM
    1 response
    19 views
    0 likes
    Last Post sarafuenonly123  
    Started by Brevo, Today, 01:45 AM
    0 responses
    11 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    244 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Working...
    X