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 muratb35, Today, 03:36 AM
      0 responses
      3 views
      0 likes
      Last Post muratb35  
      Started by fernlicht, Today, 02:16 AM
      2 responses
      9 views
      0 likes
      Last Post fernlicht  
      Started by fernlicht, 04-12-2021, 06:01 PM
      1 response
      28 views
      0 likes
      Last Post NinjaTrader_PaulH  
      Started by memonolog, Today, 02:10 AM
      3 responses
      6 views
      0 likes
      Last Post memonolog  
      Started by orenytz, Today, 12:25 AM
      0 responses
      8 views
      0 likes
      Last Post orenytz
      by orenytz
       
      Working...
      X