Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Fitness function

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

    Fitness function

    Is it possible to customize optimization fitness functions in NT7? SQN, Expectancy, whatever you'd like, etc?

    #2
    goto mydocuments/ninjatrader7/bin/custom/type/

    you can copy and modify any of the existing fitness functions.

    Comment


      #3
      Thanks Neb. I have pasted SQN.cs and MaxExpectancy.cs into that folder but they do not show up in the optimization drop down box. Any idea's on why I cannot see them?

      Comment


        #4
        Open up any other file from ninjatrader and hit compile, that should do it.

        Comment


          #5
          That did the trick! Thanks.

          Comment


            #6
            Originally posted by eleven View Post
            Thanks Neb. I have pasted SQN.cs and MaxExpectancy.cs into that folder but they do not show up in the optimization drop down box. Any idea's on why I cannot see them?
            Might it be possible to share those fitness function files?

            Comment


              #7
              Sure. These are the 2 files that I have used.

              I would be interested in fitness functions that others use. Does anybody have any to share?
              Attached Files

              Comment


                #8
                I have tried to code a fitness function to result in r-squared (coefficient of determination) without success. This would measure an equity curve by how linear it is calculated using linear regression.

                Does any one have such a fitness function they would be willing to share?

                Thank,
                eleven

                Comment


                  #9
                  I have not been able to do that with this optimizer. I have come close by using other methods but its mostly trial and error based on the type of system your using.

                  Comment


                    #10
                    Thanks Neb.

                    Another question: Can DataSeries be used in the fitness functions for use with the optimizer? I think this is what was not working in my previous attempt at coding a r-squared fitness function.

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by samish18, Today, 10:13 AM
                    0 responses
                    2 views
                    0 likes
                    Last Post samish18  
                    Started by kenz987, Yesterday, 10:20 AM
                    2 responses
                    13 views
                    0 likes
                    Last Post kenz987
                    by kenz987
                     
                    Started by nicthe, 08-23-2023, 07:53 AM
                    7 responses
                    196 views
                    0 likes
                    Last Post nicthe
                    by nicthe
                     
                    Started by nicthe, Today, 09:24 AM
                    0 responses
                    5 views
                    0 likes
                    Last Post nicthe
                    by nicthe
                     
                    Started by stalt, 12-28-2015, 01:36 PM
                    6 responses
                    1,536 views
                    0 likes
                    Last Post giulyko00  
                    Working...
                    X