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 traderqz, Today, 09:44 AM
      2 responses
      4 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by stafe, 04-15-2024, 08:34 PM
      8 responses
      40 views
      0 likes
      Last Post stafe
      by stafe
       
      Started by rocketman7, Today, 09:41 AM
      2 responses
      6 views
      0 likes
      Last Post rocketman7  
      Started by rocketman7, Today, 02:12 AM
      7 responses
      31 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by guillembm, Yesterday, 11:25 AM
      3 responses
      16 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X