Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 judysamnt7, 03-13-2023, 09:11 AM
      4 responses
      55 views
      0 likes
      Last Post DynamicTest  
      Started by ScottWalsh, Today, 06:52 PM
      4 responses
      35 views
      0 likes
      Last Post ScottWalsh  
      Started by olisav57, Today, 07:39 PM
      0 responses
      7 views
      0 likes
      Last Post olisav57  
      Started by trilliantrader, Today, 03:01 PM
      2 responses
      19 views
      0 likes
      Last Post helpwanted  
      Started by cre8able, Today, 07:24 PM
      0 responses
      7 views
      0 likes
      Last Post cre8able  
      Working...
      X