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

Genetic Optimizer Settings

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

    Genetic Optimizer Settings

    Can someone point me to some guidance on selecting proper settings for the GO:

    # of Generations
    Crossover Rate
    Generation Size
    Min Performance
    Mutation Rate
    Mutation Strength
    Reset Size %

    I'm not really sure what Reset Size % is, but the other terms I have some understanding of what they do.....

    what I don't have any idea of is how to select sizes so one gets a thorough search, but not selecting such a high settings that you defeat the purpose of using GO instead of brute force.

    #2
    Crassius, all paramters of the GO are explained here in the help guide, including the reset size -



    There can be unfortunately no 'rule of thumb' for the settings, as they would be very individual to the problem solved with the GO. If you find the GO is behind in found optimal solutions compared to the exhaustive search, try first increasing the # of Generations and their size, so a deeper search field would be covered...
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Some Genetic Algorithm Learning Resouces

      Vielen Dank, Bertrand.

      I will post a few resources that I found helpful in researching this that go beyond NinjaTrader specific support for others that may find this thread through search in the future.

      I found these examples on the MathWorks documentation site that were helpful to read through even though it is for different software.

      Global Optimization Toolbox provides functions that search for global solutions to problems that contain multiple maxima or minima.



      I have attached two scholarly articles that were focused, even if they are less fun to read than a comic book.

      Their subjects are obvious from their titles.

      Attached as PDF's please find,

      Optimal Population Size and the Genetic Algorithm, Gotshall and Rylander

      Large Populations or Many Generations for Genetic Algorithms, Vrajitoru
      Attached Files

      Comment


        #4
        Originally posted by Crassius View Post
        Vielen Dank, Bertrand.

        I will post a few resources that I found helpful in researching this that go beyond NinjaTrader specific support for others that may find this thread through search in the future.

        I found these examples on the MathWorks documentation site that were helpful to read through even though it is for different software.

        Global Optimization Toolbox provides functions that search for global solutions to problems that contain multiple maxima or minima.



        I have attached two scholarly articles that were focused, even if they are less fun to read than a comic book.

        Their subjects are obvious from their titles.

        Attached as PDF's please find,

        Optimal Population Size and the Genetic Algorithm, Gotshall and Rylander

        Large Populations or Many Generations for Genetic Algorithms, Vrajitoru
        Is there anyone here who regularly uses the GO? Can you please share your settings?

        Comment


          #5
          Originally posted by calhawk01 View Post
          Is there anyone here who regularly uses the GO? Can you please share your settings?
          Hello calhawk01,

          Why not just use the default GO settings already set by NT? I use the default settings. The default settings should be robust enough for backtesting a strategy.

          Also, you can just compare the GO optimization of your strategy versus the Default Optimization. If they are similar, then use the default settings.

          Also, you can change each GO settings by 1 and compare the default settings and see if test make a big difference.

          I start by using GO to give me a general idea of profitability of an optimized strategy. Then I nail down to using short span testing (maybe 6 months at a time) with the default optimizations if I see something that looks profitable.

          This is just my opinion as I feel GO is too complex for my simple thinking and the default settings is good enough.

          Comment


            #6
            I tend to use at least 50 Generations. The typical setting for use of a GA in computer science has always been about 100 generations and 20 chromosomes (particles).

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            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
            8 views
            0 likes
            Last Post funk10101  
            Started by pkefal, 04-11-2024, 07:39 AM
            11 responses
            37 views
            0 likes
            Last Post jeronymite  
            Working...
            X