Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

No parameters to optimize

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

    No parameters to optimize

    Hi,
    When I try to run an optimization even though I can enter parameter ranges in the optimize dialog I get an error message reading "There are no optimization results available, since the strategy has no parameters to optimize".

    This happens on all the strategies that I tried including the vendor ones.

    It looks like there was a similar problem in the beta



    Is there a fix or work around for this?

    Thanks for your help,

    Nick

    #2
    Please ensure you are on NT6.5.1000.2. If you already are please outline the exact steps you are taking. On my end I am able to optimize the SampleMACrossOver strategy without issues.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      AFIAK, the optimizer will only optimize variables exposed as parameters, so if you have created your own strategy using the wizard it may not work unless you define variables in the first step.
      Code:
              [Description("Period for fast MA")]
              [Category("Parameters")]
              public int Fast
              {
                  get { return fast; }
                  set { fast = Math.Max(1, value); }
              }
      
              [Description("Period for slow MA")]
              [Category("Parameters")]
              public int Slow
              {
                  get { return slow; }
                  set { slow = Math.Max(1, value); }
              }

      Comment


        #4
        I am running version 6.5.1000.2 I have a trial gain connection and have downloaded the historical data for EURJPY forex. I am trying to do an optimisation with the sampleMAcrossover strategy.

        It performs a back test OK but will not do the optimisation with say the slow parameter set to 25;30;1.

        Hope this is all the information you need.

        Thanks for your help,

        Nick

        Comment


          #5
          Not sure what you mean by "will not do the optimisation".

          Do you see data for the backtested time frame as you open a chart for the interval you want to backtest (e.g. 1 minute series)?

          Comment


            #6
            no variables to optimise

            I have just started to use the optimiser and after several successful runs I started getting the message described saying there were no variables to optimise and hence no results. This despite the optimize window showing parameters with min and max values. Same message with some of the included strategies to which I had added a parameter range. What can I do? I tried shutting down Ninja and re-starting but the problem was still there.

            Comment


              #7
              Originally posted by bkout View Post
              I have just started to use the optimiser and after several successful runs I started getting the message described saying there were no variables to optimise and hence no results. This despite the optimize window showing parameters with min and max values. Same message with some of the included strategies to which I had added a parameter range. What can I do? I tried shutting down Ninja and re-starting but the problem was still there.
              Hello Bkout,

              Thank you for your post.

              Try repairing your database: Tools --> Options --> Misc --> Repair DB.

              Make sure you are selecting strategies with optimization parameters.

              If that doesn't work, can you confirm that you can get some to work and not others? Have you tried the "SampleMACrossOver" strategy?
              Ray S.NinjaTrader Customer Service

              Comment


                #8
                I'm having the same problem. Tried multiple strategies (ones that I know were working) and I get the same message every time.

                "There are no optimization results available, since the strategy has no parameters to optimize."

                I tried repairing the database but that did not help. Please advise.

                Comment


                  #9
                  It looks like a restart of NinjaTrader fixed the problem.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by bortz, 11-06-2023, 08:04 AM
                  47 responses
                  1,607 views
                  0 likes
                  Last Post aligator  
                  Started by jaybedreamin, Today, 05:56 PM
                  0 responses
                  9 views
                  0 likes
                  Last Post jaybedreamin  
                  Started by DJ888, 04-16-2024, 06:09 PM
                  6 responses
                  19 views
                  0 likes
                  Last Post DJ888
                  by DJ888
                   
                  Started by Jon17, Today, 04:33 PM
                  0 responses
                  6 views
                  0 likes
                  Last Post Jon17
                  by Jon17
                   
                  Started by Javierw.ok, Today, 04:12 PM
                  0 responses
                  15 views
                  0 likes
                  Last Post Javierw.ok  
                  Working...
                  X