• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 FMtrader, 03-15-2019, 02:30 AM
              6 responses
              32 views
              0 likes
              Last Post James108  
              Started by timko, Today, 08:18 AM
              0 responses
              1 view
              0 likes
              Last Post timko
              by timko
               
              Started by victorsmith, Today, 06:00 AM
              0 responses
              4 views
              0 likes
              Last Post victorsmith  
              Started by sohailashraf, Yesterday, 10:18 PM
              0 responses
              6 views
              0 likes
              Last Post sohailashraf  
              Started by jjnc2006, Yesterday, 07:36 PM
              0 responses
              16 views
              0 likes
              Last Post jjnc2006  
              Working...
              X