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 Hwop38, 05-04-2026, 07:02 PM
          0 responses
          169 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Started by CaptainJack, 04-24-2026, 11:07 PM
          0 responses
          324 views
          0 likes
          Last Post CaptainJack  
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          250 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          351 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          180 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Working...
          X