Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exceptions on a backtest

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

    Exceptions on a backtest

    I'm doing a backtest of a strategy that used to backtest just fine on the SPY and now I am getting pop-up exceptions. See images below.



    Then I press "Ignore"



    Then I press "Ignore"



    Which is just a typical "your strategy code had an error" popup

    I think my cache or data is corrupted somehow. I can backtest other strategies just fine.

    Any advice?

    #2
    I figured it out, I was trying to add Volume to my strategy chart in Initialize() like this

    Add(new VOL());

    but the proper way to do it is

    Add(VOL());

    I'm so used to new-ing when I want to use new objects. The way you guys construct indicator objects is weird to me but something I keep having to get used to.

    Comment


      #3
      Shodson,

      Thank you for the update.

      Glad you were able to resolve the issue.

      Let us know if we can be of further assistance.
      Cal H.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by rjbtrade1, 11-30-2023, 04:38 PM
      2 responses
      72 views
      0 likes
      Last Post DavidHP
      by DavidHP
       
      Started by suroot, 04-10-2017, 02:18 AM
      5 responses
      3,021 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by Stanfillirenfro, Today, 07:23 AM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by cmtjoancolmenero, Yesterday, 03:58 PM
      2 responses
      22 views
      0 likes
      Last Post cmtjoancolmenero  
      Started by olisav57, Yesterday, 07:39 PM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X