Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Need to use the Up and Down (Arrow) keys with Modifiers Shift/Control

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

    Need to use the Up and Down (Arrow) keys with Modifiers Shift/Control

    In NT7 I was able to use these keys (Up Down Arrow) in combination with KeyDown and PreviewKeyDown events. But in NT8 it looks like these are being trapped and used to move the chart up and down a tiny bit, even if used with a modifier key like Control / Shift.

    I never use that functionality (moving the chart up or down) and don't see where I can disable it as a HotKey.

    I would use these in combination with Shift and Control modifier keys

    If I assigned a a Up or Down with a Modifier key in Nina Hotkeys, then Up/Down do not move the chart, but neither then can I assign my own code to those combinations.

    Is there a way I can use Up/Shift and Down/Control?

    (cause this is important for me...)


    #2
    Hello llanqui,

    This starts to get into unsupported territory, so I would not have any documentation I can point you toward.

    However, there is a User App Share script that uses modifiers you may find helpful.
    This is a conversion of the NYSE TICK and Advance/Decline Market Internals developed and originally coded for the NinjaTrader 7 platform by monpere. Please contact the original author for any questions or comments.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      I don't have a problem coding this....the problem is that Ninja 8 has these keys (Up and Down)) reserved....(NT 7 did not use them) I would like to know if there is a way to release them so I can use them.

      For example to have HotKey options for what those keys are doing...then set the hot key to empty

      I'm hoping other users can advise me....how can I take control of the Up and Down keys????

      Comment


        #4
        Hello llanqui,

        With the example I provided I would expect the up and down arrows to also be captured by the keypresses and you can suppress the normal action (e.Handled) and trigger your own event.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          will look closer

          hope it works...and that I can override Ninja's use of them

          Comment


            #6
            by the way, that looks l like a very interesting indicator...thanks

            Comment


              #7
              that code was ported from NT7...quite possibly it is not trapping the arrow key the way it is expected

              attached is NT7 code that has been ported to WPF (NT8)

              It works fine in NT7 ...it can sense when the UP and DOWN arrow keys are pressed

              but the port is not working in NT8....is NT8 somehow preventing access to these keys?

              I may start a fresh thread so the non-ninja staff will see this as a new post...any objections?

              Attached Files

              Comment


                #8
                Hello llanqui,

                As this prevents the intended functionality of NinjaTrader Charts, this does fall outside of what our support team is able to assist with.

                However, I was able to find a stack overflow page through a google search that has some tips.
                I am building an application where all the key input must be handled by the windows itself. I set tabstop to false for each control witch could grab the focus except a panel (but I don't know if i...


                This thread will remain open for any community members that would like to provide unsupported code.
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #9
                  I'll keep looking....

                  this worked in NT7, so it is new in NT8....what would be best is if NT 8 allowed the user to disable all hot keys....the up and down arrows could be considered a hot key to move the chart up and down

                  but my guess is that only a small fraction of your user actually use this...to move the chart up one tick or down....what useful purpose does that have when other hot keys move the chart in more useful ways???

                  really, what is the utility??

                  please put in a request to allow the user to specify all hot keys that affect the chart, specifically up and down arrow, and that when these are not defined in the hotkey manager, then they are available for Ninjascript to use

                  though, I will keep looking, and read the post you mentioned

                  thank you


                  Comment


                    #10
                    Hello llanqui,

                    I will submit your request.

                    Once I have a tracking ID for the request I will post in this thread for future reference.
                    Chelsea B.NinjaTrader Customer Service

                    Comment


                      #11
                      ok, thanks

                      by the way, none of the arrow keys trigger the PreviewKeyDown event in the script I attached

                      Comment


                        #12
                        Hello llanqui,

                        I've received ID # SFT-6114 for this request of 'being able to specify actions for all keypresses' and ID # SFT-6115 for the request of 'to be able to disable all hotkeys, including the up and down arrows when a chart is in focus'.

                        Please note, we receive many requests and cannot reasonably implement all requested features or changes. Interest is tracked internally and if enough interest is tracked, it would be weighed against how feasible it would be to make those changes to consider implementing, so we cannot offer an ETA or promise of fulfillment.

                        When new features are implemented, they will be listed in the Release Notes page of the Help Guide. The ID number may be different than the internal feature request tracking ID, but the description of the feature will let you know if that feature has been implemented.

                        Release Notes - https://ninjatrader.com/support/help...ease_notes.htm
                        Chelsea B.NinjaTrader Customer Service

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                        0 responses
                        636 views
                        0 likes
                        Last Post Geovanny Suaza  
                        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                        0 responses
                        366 views
                        1 like
                        Last Post Geovanny Suaza  
                        Started by Mindset, 02-09-2026, 11:44 AM
                        0 responses
                        107 views
                        0 likes
                        Last Post Mindset
                        by Mindset
                         
                        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                        0 responses
                        568 views
                        1 like
                        Last Post Geovanny Suaza  
                        Started by RFrosty, 01-28-2026, 06:49 PM
                        0 responses
                        571 views
                        1 like
                        Last Post RFrosty
                        by RFrosty
                         
                        Working...
                        X