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 judysamnt7, 03-13-2023, 09:11 AM
      4 responses
      55 views
      0 likes
      Last Post DynamicTest  
      Started by ScottWalsh, Today, 06:52 PM
      4 responses
      35 views
      0 likes
      Last Post ScottWalsh  
      Started by olisav57, Today, 07:39 PM
      0 responses
      7 views
      0 likes
      Last Post olisav57  
      Started by trilliantrader, Today, 03:01 PM
      2 responses
      19 views
      0 likes
      Last Post helpwanted  
      Started by cre8able, Today, 07:24 PM
      0 responses
      7 views
      0 likes
      Last Post cre8able  
      Working...
      X