Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

optimizer bug?

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

    optimizer bug?

    All,

    Possible bug in the optimizer, or I could be misusing it?

    Scenario
    Using the optimizer to optimize on double slope of a regression line, in pips (Forex). Looking for a negative slope:

    Min: 0
    Max: 1
    Increment: 0.2
    (see screenshot of optimizer run window – run window.jpg)

    I received the following output from the optimizer (see screen short – optimizer bug.jpg). Notice the first line in the optimized value? Does this look right? Firstly, it is outside the range of possible values (see note above regarding settings), secondly, the values for trades, profit factor and other variables are the same as the second entry.

    Bug or am I miss using the optimizer?

    Cheers,

    Dan
    Attached Files

    #2
    Someone will respond to your post on Monday.
    RayNinjaTrader Customer Service

    Comment


      #3
      Ray,

      Thank you for the acknowledgement. I appreciate someone getting back to me on the weekend.

      Kind regards,

      Dan

      Comment


        #4
        Dan,

        Please copy+paste the Properties region of your code for that parameter. Thank you.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Josh,

          I would be happy to, no problem.

          However, I am getting an error message from the forum - something about 10,000 characters in a post?

          Kind regards,

          Dan

          Comment


            #6
            Dan,

            There shouldn't be that many lines in the Properties region of your code for one parameter. Please find the ones associated with just that one parameter.

            Ex from Period parameter of SMA:
            Code:
            [Description("Numbers of bars used for calculations")]
            [Category("Parameters")]
            public int Period
            {
                get { return period; }
                set { period = Math.Max(1, value); }
            }
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Josh,

              Thanks for that. Yes, I understand the element of the code you need.

              I have tried this again, and get the same error message for the forum unfortunately.

              Can I suggest the Ninja Trade support email address?

              Kind regards,

              Dan

              Comment


                #8
                Dan,

                I would not know how you have one parameter set taking up 10k characters. If you have a very long description field typed out for it please omit that and copy+paste the rest. Thank you.

                If that still doesn't work please send an email to support [at] ninjatrader [dot] com and put Attn Josh in the subject and please link it to this thread in the body somewhere. Thank you.
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  Dan,

                  I did not see anything that would cause problems in the code. Reviewing the screenshot once more I notice that the value being shown is E-17. That means that value is some value very close to 0. It is scientific notation so it is within the range of your optimize settings.

                  Are you able to consistently reproduce this value?
                  Josh P.NinjaTrader Customer Service

                  Comment


                    #10
                    Josh,

                    Thanks for the follow-up.

                    I haven’t been able to recreate the issue, which I see as follows – the optimizer returned values which were out of bounds of the requested optimization space.

                    I have to admit that I have gone down another development path than this version of the script, therefore I haven’t really been pushing hard on seeing if I can recreate the issue. I was more reporting it for the benefit of your development team to know that there is a likely bug in NT.

                    Of course, I am more than happy to push the code through to the NT Support mailbox for your dev team to see if they can recreate the issue.

                    Kind regards,

                    Dan

                    Comment


                      #11
                      Dan,

                      Thank you for bringing it to our attention. When there is more information we will reexamine this case.
                      Josh P.NinjaTrader Customer Service

                      Comment


                        #12
                        Josh,

                        Thanks for the reply.

                        However, I'm a little confused - what action are you taking?

                        Can I suggest that we log this in the known error log and share that with the development community so that others don't have the same issue I had.

                        Kind regards,

                        Dan

                        Comment


                          #13
                          Dan,

                          Until we have a reproducible scenario there is nothing that can be done since we are unable to test it. All "bugs" that are not reproducible are already put on a list to watch. Until further information is received there is no further action we can do.
                          Josh P.NinjaTrader Customer Service

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                          0 responses
                          558 views
                          0 likes
                          Last Post Geovanny Suaza  
                          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                          0 responses
                          324 views
                          1 like
                          Last Post Geovanny Suaza  
                          Started by Mindset, 02-09-2026, 11:44 AM
                          0 responses
                          101 views
                          0 likes
                          Last Post Mindset
                          by Mindset
                           
                          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                          0 responses
                          545 views
                          1 like
                          Last Post Geovanny Suaza  
                          Started by RFrosty, 01-28-2026, 06:49 PM
                          0 responses
                          547 views
                          1 like
                          Last Post RFrosty
                          by RFrosty
                           
                          Working...
                          X