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

  • 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:


  • 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

Latest Posts

Collapse

Topics Statistics Last Post
Started by MarianApalaghiei, Today, 10:49 PM
3 responses
9 views
0 likes
Last Post NinjaTrader_Manfred  
Started by XXtrader, Today, 11:30 PM
0 responses
3 views
0 likes
Last Post XXtrader  
Started by love2code2trade, Yesterday, 01:45 PM
4 responses
28 views
0 likes
Last Post love2code2trade  
Started by funk10101, Today, 09:43 PM
0 responses
8 views
0 likes
Last Post funk10101  
Started by pkefal, 04-11-2024, 07:39 AM
11 responses
37 views
0 likes
Last Post jeronymite  
Working...
X