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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    50 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    16 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    22 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    23 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X