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 algospoke, 04-17-2024, 06:40 PM
              6 responses
              49 views
              0 likes
              Last Post algospoke  
              Started by arvidvanstaey, Today, 02:19 PM
              4 responses
              11 views
              0 likes
              Last Post arvidvanstaey  
              Started by samish18, 04-17-2024, 08:57 AM
              16 responses
              61 views
              0 likes
              Last Post samish18  
              Started by jordanq2, Today, 03:10 PM
              2 responses
              11 views
              0 likes
              Last Post jordanq2  
              Started by traderqz, Today, 12:06 AM
              10 responses
              21 views
              0 likes
              Last Post traderqz  
              Working...
              X