Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Keyboard Entries to Control Strategy in Real Time

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

    Keyboard Entries to Control Strategy in Real Time

    There are occasions when I'd like to control my strategy in real time after it has been started. I can't find any directives that allow the real time entry of parameters to control the strategy's operation using the keyboard.

    For example, I might like to terminate a trade in progress outside of the existing logic but using my strategy to do it. I can terminate a trade otherwise from the DOM, but the act also terminates my strategy in NT. However, my code dosn't know that I exited the trade and still holds the position as open.

    Is there any keyboard entry capability in NT? Obviously, C# has keyboard specific commands.

    Thanks,

    Larry

    #2
    Larry,

    Unfortunately this is not possible. You cannot intervene in that manner with a running strategy.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      But with Advanced .NET programming is possible.

      You can include a custom control in your code (like a command button). Then, when you click the button a custom code is executed.

      Here an example with command buttons:



      (You could include any type of .NET controls: command button, textboxs, lists, option buttons, etc).

      Best regards

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      650 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      370 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      109 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      574 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      577 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X