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 argusthome, 03-08-2026, 10:06 AM
          0 responses
          77 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          45 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          27 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          32 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          62 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X