Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Default Parameter Values

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

    Default Parameter Values

    I've written a strategy and after optimizing and finding the parameters I would like to run, I adjusted the default values in my code. However, the old values continue to be the defaults. I've restarted NinjaTrader and still the same thing. Why would my strategy hold the old default values?

    #2
    toptrader,

    Have you compiled with the new values? Are your variable names shared with any other strategies? You will need a new instance of your strategy so please remove all instances by closing the Strategy Analyzer and trying with a new one.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      I've compiled with the new values, restarted NT, and even rebooted my computer. All the variables are private so they shouldn't be shared with anything else. However, I do have another strategy that uses many of the same variable names, but they are all private as well. Could that be the problem?

      Comment


        #4
        That is indeed the problem. Unfortunately you will need to use separate variable names.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Got it. Thanks for the help!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          60 views
          0 likes
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          147 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          161 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 05-10-2026, 08:12 PM
          0 responses
          97 views
          0 likes
          Last Post CarlTrading  
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          284 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Working...
          X