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 argusthome, 03-08-2026, 10:06 AM
      0 responses
      61 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      39 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      21 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      23 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      51 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X