Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Optimization

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

    Optimization

    I have a strategy that I want to optimize. I load my strategy in the Strategy Analyzer and select Backtest type "Optimization". All of my strategy paramters show up but not all of them can can be edited to define a range to test. What am i missing? thanks

    #2
    Hello pman777,

    Is this a script you have written yourself or one that you have imported?

    If this is a script you have imported, have you reached out to the original vendor or author of the script for assistance with their software?

    If this is a script you have written yourself, what is the object type of these values?
    Are these integers or doubles?

    Are you using the NinjaScriptProperty attribute?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi Chelsea, I wrote the strategy ... the specific value in question is an integer

      Comment


        #4
        Hello pman777,

        What is the code used to the declare the public value?
        Please include all attribute tags.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          public int checkBars = 12;


          [Display(Name="Evaluate Bars", Description="", Order=1, GroupName="1. Fractals")]
          public int CheckBars
          {
          get { return checkBars; }
          set { checkBars = Math.Max(1, value); }
          }

          Comment


            #6
            Hello pman777,

            I noticed you did not answer my last question in post #2.
            'Are you using the NinjaScriptProperty attribute?'

            I looks like you did not answer this because the answer is no.

            Try using the NInjaScriptProperty attribute.

            https://ninjatrader.com/support/help...yattribute.htm

            Also, with NinjaTrader 8 we use the Range() attribute with integers now.

            https://ninjatrader.com/support/help...eattribute.htm
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              thank you Chelsea ... didn't know about the NinjaScriptProperty attribute ... got it!

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by NullPointStrategies, Today, 05:17 AM
              0 responses
              50 views
              0 likes
              Last Post NullPointStrategies  
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              126 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              69 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              42 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              46 views
              0 likes
              Last Post TheRealMorford  
              Working...
              X