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 geotrades1, Today, 10:02 AM
      1 response
      4 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by ender_wiggum, Today, 09:50 AM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by rajendrasubedi2023, Today, 09:50 AM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by bmartz, Today, 09:30 AM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_Erick  
      Started by geddyisodin, Today, 05:20 AM
      3 responses
      26 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Working...
      X