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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    63 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    139 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    75 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    50 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X