• 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 you program custom order entry hot keys in C#?

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

    Can you program custom order entry hot keys in C#?

    As the title says

    Can you program in C# custom order entry hot keys?
    And can you give each programmed hot key its own ATM strategy
    or custom ATM strategy?

    thank you for NT8

    #2
    Hello,

    Thank you for the question.

    There would currently be no way to program Hotkeys that are associated with the Hotkey manager in the platform, but using C# you could attach to a keyboard event handler to see key presses from a script. I would not have a sample of this specifically but it is possible to create your own key handling in a script.

    After implementing a system for handling keys, you could use any of the standard NinjaScript methods in the script to submit orders or do other actions if you wanted. You may need to use TriggerCustomEvent to get correct Price values while used in event handlers as well.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      hot keys inactive

      "all hot keys are inactive when modal form has focus"
      what means?
      cant get workspace hot key to work??

      Comment


        #4
        Hello,

        A modal would be when you open a window that can not be pushed to the background.

        This would include Error message boxes, the Connections -> Configure menu and many more.

        These windows are intended to steal focus to ensure you complete any actions in the window prior to trading. An example would be: the connections menu is intended to stay focused so you can add, edit or remove connections, this window will not be able to be pushed to the background until you click OK to confirm you are done editing.

        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by tcfcigvo, Yesterday, 11:39 PM
        0 responses
        5 views
        0 likes
        Last Post tcfcigvo  
        Started by BobbyWan, Yesterday, 09:15 PM
        0 responses
        9 views
        0 likes
        Last Post BobbyWan  
        Started by trader14, Yesterday, 08:23 PM
        0 responses
        3 views
        0 likes
        Last Post trader14  
        Started by ares5918, Yesterday, 02:37 PM
        2 responses
        17 views
        0 likes
        Last Post ares5918  
        Started by RTR1701, 11-15-2016, 11:38 AM
        22 responses
        1,269 views
        0 likes
        Last Post afcmaff
        by afcmaff
         
        Working...
        X