Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 GLFX005, Today, 03:23 AM
              0 responses
              1 view
              0 likes
              Last Post GLFX005
              by GLFX005
               
              Started by XXtrader, Yesterday, 11:30 PM
              2 responses
              11 views
              0 likes
              Last Post XXtrader  
              Started by Waxavi, Today, 02:10 AM
              0 responses
              6 views
              0 likes
              Last Post Waxavi
              by Waxavi
               
              Started by TradeForge, Today, 02:09 AM
              0 responses
              14 views
              0 likes
              Last Post TradeForge  
              Started by Waxavi, Today, 02:00 AM
              0 responses
              3 views
              0 likes
              Last Post Waxavi
              by Waxavi
               
              Working...
              X