Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Forcing time delays?

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

    Forcing time delays?

    Greetings,

    Is it possible to setup a time delay/pause? I'd like to "pause" NT for a short period of time within a strategy (maybe a few minutes). A command like "Sleep(X);" seems to cause an error.

    Thank you.

    #2
    Unfortunately this is not supported.

    Note: You NEVER should code something like Sleep() in NinjaScript, since this could throw off NT internal logic.

    Comment


      #3
      Thanks for the reply. If a command like Sleep is not permissable, how do people normally "delay" their strategies?

      I simply want to "wait" for some outside (of NT) process to complete, then "continue" on with the strategy as some data from the outside process will be required to be "read into" the strategy to continue.

      Comment


        #4
        Check out this sample which uses a timer: http://www.ninjatrader-support.com/v...ead.php?t=5965

        Comment


          #5
          Thank you for the link!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          647 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          369 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          108 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          572 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          573 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X