Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Analyzer AddChartIndicator() Memory Leak

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

    Strategy Analyzer AddChartIndicator() Memory Leak

    Just wanted to report that the Strategy Analyzer has a memory leak, which I think is related to AddChartIndicator().

    When I try to Optimize a strategy that contains calls to AddChartIndicator() the Strategy quickly consumes all the memory available on my PC (32GB!!). The Optimization process also gets slower and slower. It becomes completely unresponsive eventually and the only option is a force quit.

    I'm talking about a regular Optimization with tens-of-thousands of iterations.

    By removing the calls to AddChartIndicator() the situation resolves itself. However, this unfortunately means that the "Chart" view on the strategy Analyzer isn't very useful.

    #2
    Hello kevinenergy,

    Thanks for the post.

    I am thinking this issue is unique to either the strategy or the indicator being used in that strategy. The SampleMACrossover strategy uses AddChartIndicator() and does not give unexpected performance or end results. While I can not profile custom code, I would be happy to try and replicate the environment you are using where the results you describe are produced, then see if that will cause the SampleMACrossover to do this. If that is OK, please send me an email to platformsupport[at]ninjatrader[dot]com with "ATTN ChrisL <Thread link here>" in the body of the email.

    I look forward to your reply.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    94 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    49 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    31 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    34 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    70 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X