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 terofs, Yesterday, 04:18 PM
        1 response
        21 views
        0 likes
        Last Post terofs
        by terofs
         
        Started by CommonWhale, Today, 09:55 AM
        1 response
        3 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by Gerik, Today, 09:40 AM
        2 responses
        7 views
        0 likes
        Last Post Gerik
        by Gerik
         
        Started by RookieTrader, Today, 09:37 AM
        2 responses
        12 views
        0 likes
        Last Post RookieTrader  
        Started by alifarahani, Today, 09:40 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X