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 llanqui, Today, 10:32 AM
          0 responses
          1 view
          0 likes
          Last Post llanqui
          by llanqui
           
          Started by StockTrader88, 03-06-2021, 08:58 AM
          45 responses
          3,992 views
          3 likes
          Last Post johntraderuser2  
          Started by TAJTrades, Today, 09:46 AM
          0 responses
          7 views
          0 likes
          Last Post TAJTrades  
          Started by rhyminkevin, Yesterday, 04:58 PM
          5 responses
          62 views
          0 likes
          Last Post dp8282
          by dp8282
           
          Started by realblubb, Today, 09:28 AM
          0 responses
          8 views
          0 likes
          Last Post realblubb  
          Working...
          X