Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to adjust CPU and RAM Consumption

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

    How to adjust CPU and RAM Consumption

    Hi there,

    I have been having issues with NT8 Desktop using 100% of my CPU and crashing. I can't even run a strategy analyzer if I have anything else open on my computer.

    I understand analyzers take a lot of computing however, I use other platforms that have robust analyzers like TradeStation and I have never had an issue with it consuming 100% of my CPU and 100% of MY RAM at the same time.

    Is there a way to adjust the NT8 settings for more usage efficiency with the analyzer and charts in general?

    Click image for larger version

Name:	image.png
Views:	1211
Size:	83.1 KB
ID:	1270899

    #2
    Hello tjfintrade,

    The Strategy Analyzer when running a backtest will only be using 1 logical processor as there is only 1 thread iteration being tested.
    However, with an optimization this will use all logical processors, running iteration threads simultaneously to complete the optimization as quickly as possible.

    To reduce the load on the PC, you can reduce the number of iterations, reduce the amount of days of data being loaded into memory, take advantage of IsInstantiatedOnEachOptimizationIteration being set to false, and disable IncludeTradeHistory if the SystemPerformance collection is not being accessed.

    Below is a link to a forum post with these tips.
    Hi there, I recently noticed that there may be an issue with memory allocation when running back testing. I noticed that the memory utilisation of my windows
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Looks like you've got a memory leak which is why its crashing. I've posted extensively about strategy analyser memory leaks in the past.

      One cause could be Drawing Objects : Strategy Optmizer Memory Leak - NinjaTrader Support Forum

      But that was 5 years ago. I don't know if that's been fixed or not, if any of your indicators call Draw.XXX() Line, rectangle, etc Then I'd try commenting out those and see if it resolves

      If you watch the "Memory" tab in the Performance section of the task manager.... When Strategy Analyzer is working you'd expect to see Memory-use climb a bit then drop, climb then drop repeatedly. This is the garbage collector working. If memory use is climbing until its all used without dropping at all and Ninjatrader crashes its a memory leak.
      Last edited by kevinenergy; 09-29-2023, 08:47 AM.

      Comment


        #4
        kevinenergy Thanks for the info. " If memory use is climbing until its all used without dropping at all and Ninjatrader crashes its a memory leak" That's exactly what's happening. I will look into the post you shared in more detail and hopefully we can get this resolved.

        Comment


          #5
          i have the same issue trying to resolve

          Comment


            #6
            Hello madb123,

            May we confirm the script is not calling draw methods when in the Strategy Analyzer?

            Do you have IsInstantiatedOnEachOptimizationIteration set to false?

            Is IncludeTradeHistory false?
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Hi no drawings.. i simplified the strat a bit in the way it was built in the strat builder and reduce itterations.. then it capped at lower level of ram instead of my full 64gb somewhere around 30gb and kept running. thanks

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              88 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              48 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              31 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              34 views
              0 likes
              Last Post TheRealMorford  
              Started by Mindset, 02-28-2026, 06:16 AM
              0 responses
              69 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Working...
              X