Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Initialize overhead? Adding additional bars objects in unused strategies

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

    Initialize overhead? Adding additional bars objects in unused strategies

    I have written a few test strategies that add multiple additional bar objects in Initialize. Debug code indicates that these initialize sections are being called at various times when I have not requested anything to be done with these test strategies.
    For instance these test strategies are not in the Strategies tab of Control Center, and they are not being requested in Strategy Analyzer. But their Initialize sections are still being called at times like: compile of another strategy, requesting another strategy to be tested in Strategy Analyzer.

    Question 1: Are these unwanted calls to Initialize really loading all these extra bar objects into memory?
    Question 2: If so should there not be a way of disabling this behavior so the user can conserve NT memory for for what they are actually working on (such as the currently active strategy)?

    Currently the only way I can think of to prevent this unwanted behavior is to remove all these test strategies into a 'private' folder so NT no longer compiles them.

    #2
    Dave,

    Correct this is expected unfortunately with current design and no way to disable unless you remove it as you said.

    We have not had a case where this will lead to issue with load times however with this.

    Let me know if I can be of further assistance.
    BrettNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    666 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    377 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    110 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    575 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    580 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X