Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Analyzer Keeps Crashing

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

    Strategy Analyzer Keeps Crashing

    Hello, when I try to run one specific strategy on the optimizer, it keeps crashing. No error reports in the log or on my screen after the crash. Any ideas?

    #2
    Hello rbeckmann05,

    When you say crashing, do you mean the NinjaTrader application is fully shutting down and the windows error reporting window appears?

    Or you mean it's freezing but not crashing?

    If the issue is freezing, this is likely due to running out of memory which causes the system to start using the hard drive as memory (called paging or page filing) which will slow the system to a crawl.

    Below is a link to a forum post with suggestions on improving the memory usage during optimizations.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hello, sorry for late reply. By crashing I mean NT is completely shutting down, not freezing

      Comment


        #4
        Hello rbeckmann05,

        Outright crashing where the platform is shutting down is interesting.

        You've stated only this specific strategy can reproduce the crash. To confirm, have you tested the SampleMACrossOver with the same data series settings (instrument, bar type, interval) and no crash?

        Are you using the latest release 8.1.3.1?

        Is this is an open source script or a closed source assembly?

        Are there use of any addons or libraries not included with NinjaTrader?

        May I have you take some early debugging steps and try and track down the specific line causing the crash?
        Start by commenting out all logic in OnBarUpdate().
        Compile, then rerun the backtest.
        Does the crashing occur?
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Yes, I have tested this data on many different strategies, no issues other than this one specific strategy. Yes I am using the most up-to-date NT. It is open source, a strategy I made myself, I've made many strategies before this but nothing that trades at this frequency, so I could be missing something. There are no addons not included with Ninjatrader. I have already tried doing the comment thing, but like I said NT just crashes and when I reboot. the NinjaScript output window has been reset. It's worth noting the crashing only occurs when optimizing, not backtesting. I am thinking maybe it is just taking too many "requests" (or whatever it's called) at one moment? In my strategies I print all my orders and EOD PnL, so I see how it runs multiple parameter combinations at one time, maybe there's a way to reduce the number of combinations per optimization run? I'm thinking it might be an overload on the programs end, as I have tried to run the optimization on very high end computer systems, and it resulted in the same issue. I have since tried running the optimization multiple times on multiple different machines, even a raspberry pi optimized specifically for y'alls strategy analyzer, and again still shut down after some time. Is there a way to print to logs so the statements stay after crash?

          Comment


            #6
            Hello rbeckmann05,

            If you are debugging we would suggest writing to file instead of logging messages to the Log.



            Are you calling AddDataSeries()?

            Try commenting out all logic in OnStateChange().

            Does the crashing still occur?
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by NullPointStrategies, Today, 05:17 AM
            0 responses
            50 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            126 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            69 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            42 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            46 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X