Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Allow users to use Max Time to Recover as optimization criterion

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

    Allow users to use Max Time to Recover as optimization criterion

    This should be a fairly quick and easy addition to make...

    It would be great if NinjaTrader allowed users to specifiy "Max Time to Recover" as the criterion used for optimization.

    Obviously, we would want to minimize this metric in our optimizations.

    This would be somewhat useful for brute-force optimization, but it would be EXTREMELY useful for genetic optimization.
    Last edited by flonkle; 08-07-2014, 12:47 PM.

    #2
    Hello flonkle,



    Thank you for your support forum post and for providing your feedback as we continually strive to improve upon NinjaTrader's features.

    Since the type of functionality you are seeking is not presently supported within NinjaTrader for optimization, I have documented this particular feature request for "Max time to recover" as an available parameter and have sent it to our product development team.


    Once I have a tracking ID for this particular feature request, I will let you know.
    Ryan L.NinjaTrader Customer Service

    Comment


      #3
      Thanks to koganam for pointing me to the below thread which talks about how you can already write your own custom fitness-function/optimization-criterion for NT7:



      With that in mind, it was pretty simple to write a fitness-function/optimization-criterion that minimizes Max. Time to Recover.

      I have attached the code that implements this fitness-function/optimization-criterion to this post, so anyone can use it. The attached code expresses the Max. Time to Recover in units of days.

      Just place the attached code file in the same directory where you place custom fill types (mydocuments/ninjatrader7/bin/custom/type/), and then open any NT indicator or strategy and compile it.

      After that, this custom fitness-function/optimization-criterion should show up in your list of possible optimization criteria to "Optimize on..." in the Strategy Analyzer. It will be listed as:

      "min. max time to recover"

      One caveat... since the optimizer automatically tries to maximize all the optimization criteria values (even "min. drawdown" maximizes the negative number used to represent drawdown), this code expresses the "Max. Time to Recover" as a negative number. In this way, the maximum value really represents the shortest recovery time.

      Except for that small caveat, the simple code file attached below provides just the functionality I was requesting with this post.
      Attached Files
      Last edited by flonkle; 08-07-2014, 08:02 PM.

      Comment


        #4
        Hello flonkle,


        I have heard back from development and the suggestion to have a Max Time to Recover as an available parameter for optimization in the Strategy Analyzer is being tracked with ID# 2405.
        Ryan L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by lightsun47, Today, 03:51 PM
        0 responses
        5 views
        0 likes
        Last Post lightsun47  
        Started by 00nevest, Today, 02:27 PM
        1 response
        10 views
        0 likes
        Last Post 00nevest  
        Started by futtrader, 04-21-2024, 01:50 AM
        4 responses
        46 views
        0 likes
        Last Post futtrader  
        Started by Option Whisperer, Today, 09:55 AM
        1 response
        14 views
        0 likes
        Last Post bltdavid  
        Started by port119, Today, 02:43 PM
        0 responses
        10 views
        0 likes
        Last Post port119
        by port119
         
        Working...
        X