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

Slow strategy starts

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

    Slow strategy starts

    Hi,

    it might have been posted already: when a strategy is started on seconds/ticks, NT will process a couple of previous days. It may cause significant delays - except Mondays, rather obviously I have heard that the number of pre-processed days could be changed in Options. Unfortunately, i did not find anything like that (running NT 6.5).

    I would appreciate any help - these slow starts are rather annoying.

    Cheers,

    Tomas

    #2
    Have you tried adjusting the default look back period?

    Tools--> Options--> Data
    JessicaNinjaTrader Customer Service

    Comment


      #3
      Hi Jessica,

      thank you! I have completely misinterpreted that column, thought it is for _plotting_ charts only and not for running strategies.

      Cheers,

      Tomas

      Comment


        #4
        ...and hi again: unfortunately the default look back period for ticks can not be smaller than 1 - i.e. i have to run on the previous day ticks - if i understand this correctly. Could this be changed?

        Cheers,

        Tomas

        Comment


          #5
          Tomas,

          You will not be able to load less. One day's worth of tick data should not slow you down significantly. If your strategy is calculation intensive you can add this condition in the OnBarUpdate() to eliminate calculations on historical bars and improve load time considerably.

          Code:
          if (Historical)
               return;
          Josh P.NinjaTrader Customer Service

          Comment


            #6
            Thank you Josh. Indeed, it does a lot of calculations on ticks and a whole one (historical) day of ticks slows down the strategy startup incredibly.

            Best,
            Tomas

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by synthhokie, Today, 10:24 AM
            2 responses
            5 views
            0 likes
            Last Post synthhokie  
            Started by Bogdan097, Yesterday, 03:25 PM
            2 responses
            16 views
            0 likes
            Last Post Bogdan097  
            Started by Mathias79, Today, 10:38 AM
            2 responses
            4 views
            0 likes
            Last Post NinjaTrader_Clayton  
            Started by Skifree, Yesterday, 11:47 PM
            1 response
            10 views
            0 likes
            Last Post NinjaTrader_LuisH  
            Started by 21laienoch, Today, 10:21 AM
            2 responses
            3 views
            0 likes
            Last Post brucerobinson  
            Working...
            X