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

Stratgy Analyzer bombs when starting BackTest

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

    Stratgy Analyzer bombs when starting BackTest

    Hello,

    I have run the SA successfully many times in the past. Now however as soon as I click on "Run" the entire NT8 program crashes.

    SystemNullReferenceException it says.

    What could be the cause?

    It happens with any strategy I try to backtest (including the example SMA crossover strategy).

    Many Thanks, Caesar.
    Click image for larger version  Name:	Screenshot 2022-10-19 121249.png Views:	0 Size:	8.1 KB ID:	1220075
    Last edited by Skechers; 10-19-2022, 10:19 AM.

    #2
    Hello Skechers,

    If you see this happen with the SampleMACrossover strategy that would indicate a problem with the data or platform which may require a re install.

    The error means something is null however without knowing what part of the code is causing that it would be impossible to suggest a solution.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Hello Jesse,

      Fresh install (all NinjaTrader folders also deleted). Ran backtest with Sample MA Strategy, works.

      Restored backup, ran backtest, bombed with Unhandled Exception.

      Any pointers?

      Many Thanks, Caesar.

      Comment


        #4
        Here is my log.

        Attached Files

        Comment


          #5
          Hello Skechers,

          Unfortunately the error provides no detail that we can use. If you restored a backup you may have restored a problem which is at fault for the error. I see third part items loading in the log you attached, it could be related to one of those items. I would suggest to try exporting your custom strategy and then do a clean install. From there test your custom strategy and make sure that works without any of the other scripts/data you have accumulated.

          JesseNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by AaronKoRn, Yesterday, 09:49 PM
          0 responses
          11 views
          0 likes
          Last Post AaronKoRn  
          Started by carnitron, Yesterday, 08:42 PM
          0 responses
          10 views
          0 likes
          Last Post carnitron  
          Started by strategist007, Yesterday, 07:51 PM
          0 responses
          12 views
          0 likes
          Last Post strategist007  
          Started by StockTrader88, 03-06-2021, 08:58 AM
          44 responses
          3,982 views
          3 likes
          Last Post jhudas88  
          Started by rbeckmann05, Yesterday, 06:48 PM
          0 responses
          10 views
          0 likes
          Last Post rbeckmann05  
          Working...
          X