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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      152 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      87 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      131 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      127 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      106 views
      0 likes
      Last Post CarlTrading  
      Working...
      X