Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

NT8 crashes in Strategy analyzer

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

    NT8 crashes in Strategy analyzer

    So i was optimizing my strategy on usdjpy on 1 min time frame and it keeps giving me this error eventually leading to a crash, the bars required to trade is 20 but even when i change it it still crashes. for reference during backtesting in the same time periods there is no such error and this error only happens when i try optimizing more than one year. i also don't have any custom add ons so i don't whats causing the problem.
    Attached Files

    #2
    Hi Mo98alda, thanks for posting.

    Does your strategy add a 1 tick series? Can you share some details of the strategy you are running (OnStateChanged() and OnBarUpdate())?

    I look forward to hearing from you.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      this strategy replicates the error when you set the parameter on "Bbp: 1;100;1 and "Sd" 1;50;1 in strategy analyzer and try to optimize for net profit and try to optimize it from 2017 to 2021 on 1 minute. when i look at task manager it shows memory usuage at 97% permanently i have 16gb ddr4 ram
      Attached Files
      Last edited by Mo98alda; 08-19-2021, 02:10 PM.

      Comment


        #4
        Hi Mo98alda, thanks for sharing.

        5 years of optimizing 100 iterations is likely filling up the memory of the PC. Please test on a small time frame, like 6 months to a year. Can you confirm if the backtest finishes this test?

        Kind regards.
        Chris L.NinjaTrader Customer Service

        Comment


          #5
          the backtesting is completely fine, optimizing 1 year barely finishes the optimization before crashing, 5 years never finishes even when i try to abort instantly it still ends up crashing does NT8 not clear the memory after it does something since even after closing the analyzer and doing nothing it still uses up 95%+ of my memory

          Comment


            #6
            Hi Mo98alda,

            The optimization runs on my PC with the same parameters but on a shorter time frame. Please test an optmization with a smaller time frame (like a week or 2 weeks maximum) with BarsRequiredToTrade = 0. This set up completed on my PC, so this seems to be a performance issue with the large data set + many optimization iterations.

            Kind regards.
            Chris L.NinjaTrader Customer Service

            Comment


              #7
              okay thanks

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by BarzTrading, Today, 07:25 AM
              2 responses
              27 views
              1 like
              Last Post BarzTrading  
              Started by devatechnologies, 04-14-2024, 02:58 PM
              3 responses
              20 views
              0 likes
              Last Post NinjaTrader_BrandonH  
              Started by tkaboris, Today, 08:01 AM
              0 responses
              6 views
              0 likes
              Last Post tkaboris  
              Started by EB Worx, 04-04-2023, 02:34 AM
              7 responses
              165 views
              0 likes
              Last Post VFI26
              by VFI26
               
              Started by Mizzouman1, Today, 07:35 AM
              1 response
              11 views
              0 likes
              Last Post NinjaTrader_Gaby  
              Working...
              X