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 NullPointStrategies, Today, 05:17 AM
                    0 responses
                    52 views
                    0 likes
                    Last Post NullPointStrategies  
                    Started by argusthome, 03-08-2026, 10:06 AM
                    0 responses
                    130 views
                    0 likes
                    Last Post argusthome  
                    Started by NabilKhattabi, 03-06-2026, 11:18 AM
                    0 responses
                    70 views
                    0 likes
                    Last Post NabilKhattabi  
                    Started by Deep42, 03-06-2026, 12:28 AM
                    0 responses
                    44 views
                    0 likes
                    Last Post Deep42
                    by Deep42
                     
                    Started by TheRealMorford, 03-05-2026, 06:15 PM
                    0 responses
                    48 views
                    0 likes
                    Last Post TheRealMorford  
                    Working...
                    X