Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Doable from a NinjaScript strategy?

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

    Doable from a NinjaScript strategy?

    I'd like to close NT from a strategy. On closing NT we will need to confirm SaveWorkspace dialog. Is this doable from independent thread or NT main thread will block all others waiting for user to press a button? What about surfacing some NTExit(...) method for a strategy?

    Can we run some keystroke script to do connect/disconnect or those are already surfaced and available for call from C#?

    Can we start an executable from within staregy or the Windows system scheduler is the only way to do it (blindly, as no information / state / execution parameters could be passed from NT logic)?

    #2
    This is not supported.
    RayNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Ray View Post
      This is not supported.
      I perfectly understand that all these are not supported. The question is as it stated in the subject - is this doable? So if one want to import an assembly that handling starting the external process or sending keystrokes it wont work due to security restrictions or what? Thanks!

      Comment


        #4
        You can use AutoIt to do that kind of stuff, it's very easy to use.

        Comment


          #5
          Originally posted by ryker View Post
          You can use AutoIt to do that kind of stuff, it's very easy to use.
          Yes, AutoIt is a nifty little tool. Do you know if it can be called from a strategy (probably via its COM interface) so it wouldn't be just blind to the events inside NT?

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CarlTrading, Yesterday, 11:51 AM
          0 responses
          20 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, Yesterday, 11:48 AM
          0 responses
          23 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-25-2026, 09:53 PM
          0 responses
          30 views
          0 likes
          Last Post CaptainJack  
          Started by CaptainJack, 03-25-2026, 09:51 PM
          0 responses
          18 views
          0 likes
          Last Post CaptainJack  
          Started by Mindset, 03-23-2026, 11:13 AM
          0 responses
          24 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X