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 aussugardefender, Today, 01:07 AM
                    0 responses
                    3 views
                    0 likes
                    Last Post aussugardefender  
                    Started by pvincent, 06-23-2022, 12:53 PM
                    14 responses
                    238 views
                    0 likes
                    Last Post Nyman
                    by Nyman
                     
                    Started by TraderG23, 12-08-2023, 07:56 AM
                    9 responses
                    384 views
                    1 like
                    Last Post Gavini
                    by Gavini
                     
                    Started by oviejo, Today, 12:28 AM
                    0 responses
                    4 views
                    0 likes
                    Last Post oviejo
                    by oviejo
                     
                    Started by pechtri, 06-22-2023, 02:31 AM
                    10 responses
                    125 views
                    0 likes
                    Last Post Leeroy_Jenkins  
                    Working...
                    X