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 Hwop38, 05-04-2026, 07:02 PM
      0 responses
      161 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      308 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      245 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      349 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      179 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X