Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

"keep best # of results" impact on performance on optimization

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

    "keep best # of results" impact on performance on optimization

    Hi,

    I've run two optimizations with 50 and 1000 as "Kepp best # of results" values with intra day bars and a YTD range (88000 combinations), no other parameter changed.
    The time increases from 20 minutes to 1 hour and 15 minutes with 1000 results.

    There is plenty of RAM still available. I naively assume that backtesting is far more computationally expensive than filtering which results to keep based on 1 metric.

    Unfortunately I couldn't find more information on the topic via the forum search.

    Maybe this could be improved in a future release?

    #2
    Hello MojoJojo,

    Thanks for your post.

    The higher the 'Keep best # of results' the longer it will take for an optimization to run in the Strategy Analyzer window.

    There would be an additional layer of comparisons between each optimization iteration each time 'Keep best # of results' is increased, so there would be additional processing time.

    Reducing the 'Keep best # of results' property will improve the optimization performance and amount of time it takes for the optimization to run.

    The tips below describe what you can do about the different factors that affect optimization

    https://ninjatrader.com/support/help...ionPerformance

    Also, have a look at programming the strategy to be compliant with IsInstantiatedOnEachOptimizationIteration=false for an additional boost in performance.

    https://ninjatrader.com/support/help...niteration.htm
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Hi Brandon,

      thank you very much for your help.
      Originally posted by NinjaTrader_BrandonH View Post
      https://ninjatrader.com/support/help...ionPerformance

      Also, have a look at programming the strategy to be compliant with IsInstantiatedOnEachOptimizationIteration=false for an additional boost in performance.

      https://ninjatrader.com/support/help...niteration.htm
      I didn't know that the option was enabled by default, after the change the optimization completed in about 14 minutes. I'm very happy with the results.
      My system was able to handle NinjaTrader consuming 48GB of RAM, depending on the bar data and combinations that may not always be the case though.

      I'd assume that it would not be necessary to keep all backtest results in memory to get better performance, but for my needs the trade off is fine.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 02-05-2025, 08:05 AM
      8 responses
      55 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by renosdim01, Today, 05:46 AM
      0 responses
      6 views
      0 likes
      Last Post renosdim01  
      Started by giulyko00, Today, 05:30 AM
      0 responses
      6 views
      0 likes
      Last Post giulyko00  
      Started by globaljobber, Today, 05:26 AM
      0 responses
      3 views
      0 likes
      Last Post globaljobber  
      Started by totalnewbie, Today, 04:45 AM
      0 responses
      9 views
      0 likes
      Last Post totalnewbie  
      Working...
      X