Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Optimisation of strategy

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

    Optimisation of strategy

    I currently have only 2 variables in my strategy. 1 for profit and 1 for Loss. HOwever when I run the optimisation with different ranges, it fails and tells me I have no parameters or some thing of the sort.

    However the same strategy imported back to v6, I can run the optimisation with no problem.

    #2
    If you don't mind could you strip the strategy down to its barebones and upload it? Is there any other information you can tell us about this behavior? Thanks.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Here is it stripped down.
      Attached Files

      Comment


        #4
        Hi richa61416,

        It would appear there are issues optimizing variables used on the Set() methods. Thanks for reporting. I will inform development.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Similar problem running strategy optimization

          When I try to optimize a strategy with more than two parameters I get a message “There are no optimization results available, since the strategy has no parameters to optimize” even though the pre-run Optimize window shows the parameters and the same strategy and optimization parameters run fine in NT 6.0.

          Comment


            #6
            Hi raintree,

            Thanks for reporting. Is this the same case as richa61416 reported or is this something different?
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Since you have the following test...

              Code:
              if ( Close[5] > Close[0] )
              You should first have the following test:

              Code:
              if (CurrentBar < 5) return;       // Make sure there are enough bars.

              Comment


                #8
                In a strategy it usually doesn't matter because BarsRequired is defined as 20 by default.
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  Good point.

                  Comment


                    #10
                    Originally posted by richa61416 View Post
                    I currently have only 2 variables in my strategy. 1 for profit and 1 for Loss. HOwever when I run the optimisation with different ranges, it fails and tells me I have no parameters or some thing of the sort.

                    However the same strategy imported back to v6, I can run the optimisation with no problem.
                    This is a bug related to using some of the Draw... methods which occurs on backtest and workforward. It will fixed with next update. Thanks for reporting.

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                    0 responses
                    607 views
                    0 likes
                    Last Post Geovanny Suaza  
                    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                    0 responses
                    353 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by Mindset, 02-09-2026, 11:44 AM
                    0 responses
                    105 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                    0 responses
                    560 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by RFrosty, 01-28-2026, 06:49 PM
                    0 responses
                    561 views
                    1 like
                    Last Post RFrosty
                    by RFrosty
                     
                    Working...
                    X