Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Memory problem

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

    Memory problem

    Hello,

    I am a NinjaTrader programmer and on one of my scripts I made a mistake creating a big array of string on each bar for a 5 min chart on 50 days loaded.
    When I realize my mistake I had to close Ninja with Task Manager.
    It consumed up to 99% of my computer physical memory.

    I closed my computer.

    Now when I reload NinjaTrader everything is fine until I try to put an indicator on a chart.
    Nothing happens and my computer memory goes up to 99% again.

    Cannot do anything anymore.

    What do you suggest ?
    Have you seen that before ?

    Thanks

    #2
    blar58, so the prior workspace / chart that had the script with the issues added would not be loaded up anymore automatically when you restart your NT? On some cases we see that being the 'culprit' - removing the workspace or the _Workspaces.xml from the Documentes > NinjaTrader7 > workspaces folder with NT fully closed down usually would help here.

    If the issue would still persist - the Initialize() method is called across your scripts, so that would be the first place I would review in the 'faulty' script.

    Comment


      #3
      OK Thanks problem solved.

      It was indeed related to a for loop inside the Initialize method...

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      630 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      364 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      105 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      566 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      568 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X