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 Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          633 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          364 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          105 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          567 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          568 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X