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 CarlTrading, Yesterday, 11:51 AM
      0 responses
      12 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, Yesterday, 11:48 AM
      0 responses
      19 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-25-2026, 09:53 PM
      0 responses
      16 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 03-25-2026, 09:51 PM
      0 responses
      13 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 03-23-2026, 11:13 AM
      0 responses
      18 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X