Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Impact of 'Keep Best # of Results' On Optimization Processing Time

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

    Impact of 'Keep Best # of Results' On Optimization Processing Time

    Quick question in regards to the impact (if any) of increasing the 'Keep Best # of Results" parameter when running an optimization in the Strategy Analyzer.

    Assuming there is sufficient system memory (32g DDR4 in my case), should there be any adverse impact to processing time as the number of results retained is increased? I would assume not, but I am curious in the technical details here as I observed some unexpected behavior on one of my machines as I progressively increased that parameter (but the memory utilization was still well below the memory threshold utilized). The performance degradation happened on my Intel system which has an i7 1065G7 processor (8 logical cores) and 16g DDR4. The number of iterations retained was low (by relative measure) when this occurred, only 100.

    For the heavier compute I'm utilizing my AMD system with a Ryzen 7 2700x processor (16 logical cores) and 32g DDR4, low-latency.

    I just wanted to pose the question so that I could be aware of any architectural nuances that might exist.

    Thx.

    #2
    Hello TheFil,

    Thanks for your question.

    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. Although, I would have expected you to hit memory limits first (stalls short freezes) since Keep Best # of Results greatly affects memory impact. Each backtest/optimization and PC vary.

    The number of trades that are tracked increases the memory footprint and memory limits are usually what are hit first.

    The tips below describe what you can do about the different factors your PC may be hitting.

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

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

    https://ninjatrader.com/support/help...niteration.htm

    Let us know if there is anything else we can do to help.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    49 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    126 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    67 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X