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 ageeholdings, 05-01-2024, 05:22 AM
                    6 responses
                    42 views
                    0 likes
                    Last Post ageeholdings  
                    Started by tony_28217, Today, 07:04 PM
                    0 responses
                    11 views
                    0 likes
                    Last Post tony_28217  
                    Started by flybuzz, Today, 10:33 AM
                    1 response
                    9 views
                    0 likes
                    Last Post flybuzz
                    by flybuzz
                     
                    Started by spencerp92, 10-10-2023, 09:56 AM
                    4 responses
                    308 views
                    0 likes
                    Last Post flybuzz
                    by flybuzz
                     
                    Started by samish18, Yesterday, 10:13 AM
                    1 response
                    26 views
                    0 likes
                    Last Post NinjaTrader_Eduardo  
                    Working...
                    X