Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Genetic optimiser bug - B7

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

    Genetic optimiser bug - B7

    Looks like there's a bug in the mutation code of the genetic optimiser. The relevant line looks like this:

    Code:
     
    individuals[individual].ParameterValues[parameter] = Math.Min(par.Max, 
    par.Min + par.Increment * random.Next(0, (int) (1.0 + Math.Round((par.Max - Math.Min(par.Max, par.Min)) / par.Increment, 0)) / 3));
    The intention of this line is to randomly mutate a parameter's value by some amount. However it will always assign a random value between the parameter's min value and 1/3 of the range to its maximum.

    As such, no parameter can ever have its value mutated into the top 2/3 of its range - quite a drawback!


    -Swig-

    #2
    Thanks for making us aware. However, this code was provided by a user "as is". On future updates we will look into improving the GA.

    Comment


      #3
      When will this bug be fixed

      Originally posted by NinjaTrader_Dierk View Post
      Thanks for making us aware. However, this code was provided by a user "as is". On future updates we will look into improving the GA.
      Can someone from Ninjatrader confirm that this bug has been logged and will be fixed. I have searched the release notes and could not find any reference to bug in the new genetic optimizer being fixed. Maybe you should ask the user who provided the code to fix it?

      Comment


        #4
        This issue still is on our list and not addressed yet. Thanks

        Comment


          #5
          Fixed in 7....15?

          Hi

          I just updated to 7....15 and read the release notes and found:

          Fixed 2959 Strategy Analyzer Several issues on the GeneticOptimizer


          Please confirm that this issue logged by Swig was one of the issues that was solved - I cannot view the code myself and therefore do not know if the GO is now worthwhile to use.

          Comment


            #6
            unfortunately I can't confirm, since that issue is still pending.

            Comment


              #7
              I've been away for a while, sorry.

              Just downloaded B15 and can confirm the bug is still there. This drastically reduces the usefulness of the included GO, and the insidious part is that it doesn't cause any errors.

              Users could be throwing away good strategy ideas thinking that the GO has had a good look around the parameter space, when in fact it hasn't.

              I really hope it gets resolved pronto; it should be a trivial fix.


              -Swig-
              Last edited by -Swig-; 05-20-2010, 06:28 AM.

              Comment


                #8
                Thanks for the update. We are currently looking at a full overhaul of the GO, stay tuned for more information.
                RayNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by gravdigaz6, Today, 11:40 PM
                0 responses
                3 views
                0 likes
                Last Post gravdigaz6  
                Started by MarianApalaghiei, Today, 10:49 PM
                3 responses
                9 views
                0 likes
                Last Post NinjaTrader_Manfred  
                Started by XXtrader, Today, 11:30 PM
                0 responses
                3 views
                0 likes
                Last Post XXtrader  
                Started by love2code2trade, Yesterday, 01:45 PM
                4 responses
                28 views
                0 likes
                Last Post love2code2trade  
                Started by funk10101, Today, 09:43 PM
                0 responses
                9 views
                0 likes
                Last Post funk10101  
                Working...
                X