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 CarlTrading, 03-31-2026, 09:41 PM
              1 response
              45 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by CarlTrading, 04-01-2026, 02:41 AM
              0 responses
              21 views
              0 likes
              Last Post CarlTrading  
              Started by CaptainJack, 03-31-2026, 11:44 PM
              0 responses
              31 views
              1 like
              Last Post CaptainJack  
              Started by CarlTrading, 03-30-2026, 11:51 AM
              0 responses
              50 views
              0 likes
              Last Post CarlTrading  
              Started by CarlTrading, 03-30-2026, 11:48 AM
              0 responses
              42 views
              0 likes
              Last Post CarlTrading  
              Working...
              X