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

Optimization - speed up ?

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

    Optimization - speed up ?

    I am running rather large optimization tests on s&p stocks (500 stocks).

    My main time series is 5 minutes. My typical optimization run takes 5-10 minutes (for one month of data).

    Although I am working intraday, I need to check for daily 200MA. To do this I have to stretch the time span back by 200 days to get 200MA to work. I can do that, but then the optimization takes hours to run, even though the back data is really building data series for 200MA to work. I suspect the reason is 5 minute (or 1 minute) data is getting loaded, where it is not even needed.

    Is there a way to optimize this scenario?

    #2
    Hello stevenev,

    Thank you for your post.

    You are correct as to the cause of the longer optimization (the intra-day bar series needing to load far more data then the added Daily series). There would not be a means to work around this as the intra-day bar series would need to go back as far as the Daily series.

    If you have any drawing objects, logging, printing, or you are running the optimization while debugging in Visual Studio I would recommend commenting out or disabling these features to help improve the performance of the optimizations.

    Please let me know if you have any questions.

    Comment


      #3
      Thanks, Patrick.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Kaledus, Today, 01:29 PM
      0 responses
      3 views
      0 likes
      Last Post Kaledus
      by Kaledus
       
      Started by PaulMohn, Today, 12:36 PM
      1 response
      15 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by yertle, Yesterday, 08:38 AM
      8 responses
      36 views
      0 likes
      Last Post ryjoga
      by ryjoga
       
      Started by rdtdale, Today, 01:02 PM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Started by alifarahani, Today, 09:40 AM
      3 responses
      18 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X