• 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

  • NinjaTrader_Jesse
    replied
    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.

    Leave a comment:


  • laredo787
    replied
    hot keys inactive

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

    Leave a comment:


  • NinjaTrader_Jesse
    replied
    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.

    Leave a comment:

Latest Posts

Collapse

Topics Statistics Last Post
Started by Jschmelz, Yesterday, 04:45 PM
1 response
17 views
0 likes
Last Post NinjaTrader_Marco  
Started by sisenberg, Today, 07:29 AM
1 response
8 views
0 likes
Last Post sisenberg  
Started by Oceans, Today, 02:22 AM
2 responses
25 views
0 likes
Last Post Oceans
by Oceans
 
Started by sisenberg, Yesterday, 08:06 PM
1 response
24 views
0 likes
Last Post sisenberg  
Started by PLeary, Today, 06:25 AM
1 response
18 views
0 likes
Last Post NinjaTrader_SergeyS  
Working...
X