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 Irukandji, Today, 03:29 AM
      1 response
      10 views
      0 likes
      Last Post marcus2300  
      Started by OrderflowTrading321, Today, 04:30 AM
      0 responses
      5 views
      0 likes
      Last Post OrderflowTrading321  
      Started by Jeffrerrington, Today, 04:04 AM
      0 responses
      8 views
      0 likes
      Last Post Jeffrerrington  
      Started by Tomhgriff1, 01-03-2020, 04:07 AM
      22 responses
      664 views
      1 like
      Last Post proptradingshop  
      Started by gubbar924, 03-18-2018, 05:15 PM
      42 responses
      5,369 views
      0 likes
      Last Post jhudas88  
      Working...
      X