Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Cannot run backtest on a new strategy

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

    Cannot run backtest on a new strategy

    Hi,

    I have several custom that I comfortably run backtest on. However this new strategy does not even load (meaning it compiled successfully and appears in the pull down menu of the backtest but I cannot select it).

    1. In this strategy I am also trading two secondary securities besides the primary
    2. The Initialiaze code is

    protectedoverridevoid Initialize()
    {
    SetTrailStop(
    "", CalculationMode.Percent, 50, false);
    CalculateOnBarClose =
    true;
    AccountSize =
    30000;
    Add(
    "IWM", PeriodType.Day, 1); // MCSE
    Add ("TIP", PeriodType.Day,1); // TIP
    }

    #2
    Hello stratfreak,

    Thank you for your post and welcome to the NinjaTrader Support Forum!

    Are there any error messages on the Log tab of the NinjaTrader Control Center after attempting to load your strategy? If so, what do these messages report?

    Do you see the parameters for the strategy properly show in the parameters section of the Strategies window? Or do they show the previous strategy's parameters or no parameters at all?

    I look forward to your response.

    Comment


      #3
      Figured out the issue

      Thanks for responding Patrick. I figured out the issue and it did curiously seem to the related to the error. One of the securities was not imported. Once I set up the security everything was ok.

      btw there were no messages in the log. It would be helpful to troubleshoot in future if there are specific message on why a strategy is not loading.

      Regards

      Vinay

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      144 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      71 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      125 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      79 views
      0 likes
      Last Post PaulMohn  
      Working...
      X