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!
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
NinjaTrader
QuantityUpDown value update by keyboard
Collapse
X
-
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?Tags: None
-
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.
Chris L.NinjaTrader Customer Service
-
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
-
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
-
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.Chris L.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by chbruno, 04-24-2024, 04:10 PM
|
4 responses
50 views
0 likes
|
Last Post
by chbruno
Today, 02:38 PM
|
||
Started by TraderG23, 12-08-2023, 07:56 AM
|
10 responses
398 views
1 like
|
Last Post
by beobast
Today, 02:35 PM
|
||
Started by lorem, Yesterday, 09:18 AM
|
5 responses
20 views
0 likes
|
Last Post Today, 12:29 PM | ||
Started by WHICKED, Today, 12:56 PM
|
2 responses
15 views
0 likes
|
Last Post
by WHICKED
Today, 02:15 PM
|
||
Started by Felix Reichert, Today, 02:12 PM
|
0 responses
4 views
0 likes
|
Last Post Today, 02:12 PM |
Comment