Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Memory issues with optimisation

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

    Memory issues with optimisation

    Hello,

    Ninja seems to run out of memory when I'm trying to optimise a strategy.

    I'm optimising 3 different variables in steps of 2
    for example

    2:40:2
    5:75:2
    1:19:2

    saving the top 7000 results so further analysis can be conducted in excel.

    Ninja's estimated time is ~35 mins, and 25 min into it, Ninja fall over with a big red cross in the optimisation screen, saying it has detected a problem and has to shut down - then an "out of memory" screen popup occurs..

    any suggestions as I'm running a dual core 2gig memory as its a hassle trying to go through every combo manually.

    Thanks for your help

    cheers,
    Leonie

    #2
    I don't know for sure but I believe NT6.5 is not optimized for multi-core and leaves a lot to be desired in the area of memory management.

    I believe this is a known issue and reserve judgement until NT7 sees the light of day in the near future...

    Comment


      #3
      NinjaTrader 6.5 does not support multi-core processors; this will be supported in NinjaTrader 7.

      You would need to reduce the memory/resource request of NinjaTrader by reducing the optimization request.

      In addition, you can find a link with performance tips to reduce memory/resource request of NinjaTrader below.

      Comment


        #4
        Thanks Jason,

        I reduced the parameters by 50% (3000 results) and reducing the steps and Ninja struggled but got a result. Unfortunately it crashed again when I asked it to complete another step. So I think I might have to close the program and re-start.
        The trace file mentioned the bounds are outside the array..

        Comment


          #5
          Closing Strategy Analyzer and reopening may be useful too. That maybe enough to invoke the .NET garbage collector to clean out the resources.
          Josh P.NinjaTrader Customer Service

          Comment


            #6
            Thanks Josh,

            I'll try that first

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            85 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            47 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            29 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            32 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            67 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X