Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

QuantityUpDown value update by keyboard

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

    QuantityUpDown value update by keyboard

    I want to use a custom QuantityUpDown field that I have added to the Chart Trader panel to behave the same as the "Order Qty" field when entering a quantity by keyboard. I'm using a PreviewKeyDown event to update the content of the field. But can't find any QuantityUpDown properties to determine if the content in the field is selected. Or to determine where in the field the cursor is located. Is there an example of how I can make it behave like other standard NT up/down fields when values are entered by keyboard?

    #2
    Hello martyn73,

    Thanks for your post.

    There is an example Addon framework that includes a QuantityUpDown control. A link to download that is below:


    This example behaves as all quantity fields in the platform do.

    Please let me know if this sample does not resolve your inquiry.

    Comment


      #3
      I see the example in the AddOn framework. But can't seem to identify on how it's different from what I'm doing:

      private QuantityUpDown qty = new QuantityUpDown();

      This is added the the Chart Trader panel grid. But keyboard input does not work the same on my field compared to the standard Ninjatrader Order Qty field.

      Comment


        #4
        Also found this forum post describing the same issue. https://ninjatrader.com/support/foru...-from-keyboard
        The script in that thread is not really a good solution and you end up with a QuantityUpDown field that behaves different from the standard NT quantity fields.

        Comment


          #5
          Hello martyn73,

          Thanks for your reply.,

          Could you kindly Export your script as source so I can take a look? You may either post it here or sent it to platformsupport at ninjatrader.com and reference this forum thread link in the body of the email.

          I look forward to your reply.

          Comment


            #6
            I have emailed the source to platformsupport at ninjatrader.com.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            601 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            347 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            103 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            559 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            558 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X