Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MoGo - new genetic optimiser for NT 6.5

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

    #16
    MoGo v1.1 released

    Originally posted by bibulous View Post
    Yes, I do have boolean parameters, but those are not included in the optimization universe. I also run the latest version of NT.

    Marc
    This was the problem. MoGo relied on being able to read all strategy parameters from NT, but NT was blowing up when it tried to fetch the value of a boolean property.

    Version 1.1 is out which fixes this. The (minor) downside is that the CSV exported when you select 'Save all trials' in MoGo will not include any non double/int parameters that your strategy may have.

    Link:




    -Swig-

    Comment


      #17
      Originally posted by -Swig- View Post
      This was the problem. MoGo relied on being able to read all strategy parameters from NT, but NT was blowing up when it tried to fetch the value of a boolean property.

      Version 1.1 is out which fixes this. The (minor) downside is that the CSV exported when you select 'Save all trials' in MoGo will not include any non double/int parameters that your strategy may have.

      Link:




      -Swig-
      Thanks! Seems to work now.

      Marc

      Comment


        #18
        Source code posted

        Glad to hear!

        The source code is now available from the website for anyone interested.


        -Swig-

        Comment


          #19
          Thanks Swig
          It's up and running and performing well.

          -thanks

          Comment


            #20
            Swig:

            Love working with this. Hey...I tried it with Walk Forward Testing and it forces you to stay in front of your computer to restart at every new Look back Period.

            Just a thought...somehow allowing it to run the entire WF without manual continuation.

            Thanks again for your work

            Comment


              #21
              CRCatNinja,

              There is specific functionality in MoGo for this. If you hold down <Ctrl> the first time you click OK to start optimisation, MoGo won't re-display the parameter window until you hold <Ctrl> again.

              Please refer to the usage instructions on the website for more details.

              -Swig-

              Comment


                #22
                variation in MoGo Output

                Swig

                With constant input parameter, I am getting significant variation in output. Is there MoGo parameters that need to be set to minimize this problem?

                Comment


                  #23
                  Hi Buttermilk,

                  This is largely to be expected, since MoGo randomly creates, mates & mutates its candidates. In that respect it is non-deterministic.

                  Genetic optimisers in general do not guarantee to find the global maximum (i.e. optimal solution); rather they find a decent solution in vastly fewer trials. They can get 'stuck' in local maxima, particularly if the surface of your fitness function in parameter-space is very bumpy, which it's likely to be for pretty much any trading strategy with more than a couple of parameters.

                  You can improve performance by increasing the number of generations and the population size (note I don't think it's a good idea to increase the mutation rate), but naturally the optimisation will take longer as you are running more iterations. The only sure-fire way to find the optimal solution is to exhaustively search every combination, which is what the default NT optimiser does. And it takes forever.

                  FWIW I often use MoGo with around 20 generations and a population size of around 1000. That's given me reasonably consistent results from run to run (though never quite identical).


                  Originally posted by Buttermilk View Post
                  Swig

                  With constant input parameter, I am getting significant variation in output. Is there MoGo parameters that need to be set to minimize this problem?

                  Comment


                    #24
                    Hi,

                    If the space state is huge a genetic optimizer won't find a minimum quickly.
                    So, is it possible to give mogo a trial or set of trial values to start with.

                    Thanks

                    Comment


                      #25
                      De-Installation of MoGo

                      -Swig-

                      How does on De-Install/Un-Install MoGo from Ninja Trader?

                      Thanks

                      Comment


                        #26
                        Can anyone answer the question. If I add an optimizer and later wish to remove it from Ninja Trader, what steps should I take?

                        Thanks

                        Comment


                          #27
                          Originally posted by rGQRGs7 View Post
                          Hi,

                          If the space state is huge a genetic optimizer won't find a minimum quickly.
                          So, is it possible to give mogo a trial or set of trial values to start with.

                          Thanks
                          Hi rGQEGs7,

                          MoGo doesn't support this at present, however the complete source can be downloaded from the website if you wish to add it yourself.

                          Comment


                            #28
                            Originally posted by StarBright2009 View Post
                            -Swig-

                            How does on De-Install/Un-Install MoGo from Ninja Trader?

                            Thanks
                            Hi StarBright2009,

                            After installation MoGo will appear in Windows' 'Add/Remove programs' list under Control Panel. Clicking Remove on the MoGo entry will uninstall it.

                            Comment


                              #29
                              Dead-end detection

                              It is posible to disable it? It always pop up with the same question, and it is a nuisance when you try to optimize several instruments at once...

                              Un saludo,

                              Pablo

                              Comment


                                #30
                                Originally posted by pespinar View Post
                                It is posible to disable it? It always pop up with the same question, and it is a nuisance when you try to optimize several instruments at once...

                                Un saludo,

                                Pablo
                                This dialog shows up if MoGo hasn't found a new untested combination of strategy settings after one million attempts. As such the only reason I can think of as to why you get this is because your population size and/or number of generations are set too large for the range of possible values for all your strategy parameters, so MoGo is running out of candidates to evaluate.

                                My suggestion would be to reduce one or both of these values until you don't get the popup anymore. If you're regularly getting seeing it, you may as well use the default NT 6.5 optimiser because MoGo is doing an exhaustive search more or less.

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by argusthome, 03-08-2026, 10:06 AM
                                0 responses
                                88 views
                                0 likes
                                Last Post argusthome  
                                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                                0 responses
                                48 views
                                0 likes
                                Last Post NabilKhattabi  
                                Started by Deep42, 03-06-2026, 12:28 AM
                                0 responses
                                30 views
                                0 likes
                                Last Post Deep42
                                by Deep42
                                 
                                Started by TheRealMorford, 03-05-2026, 06:15 PM
                                0 responses
                                34 views
                                0 likes
                                Last Post TheRealMorford  
                                Started by Mindset, 02-28-2026, 06:16 AM
                                0 responses
                                68 views
                                0 likes
                                Last Post Mindset
                                by Mindset
                                 
                                Working...
                                X