Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Max Cummulative DrawDown - Optimization Fitness

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

    Max Cummulative DrawDown - Optimization Fitness

    Hello,

    Anyway to optimize based on Max cumulative Drawdown ?

    Thanks in advance

    #2
    Hello markkm,

    Thank you for your note.

    There is a Min Draw Down (for the minimum amount of account loss) included with NinjaTrader.

    To confirm, you are wanting the opposite, to optimize over the largest decrease in account size (large losses)?

    It is possible to create custom a custom Optimization Fitness scripts.
    Below is a public link to the help guide.


    I would recommend copying the Min Draw Down included with NinjaTrader and then modifying the calculation.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank you Chelsea.
      Correct, I'd like to penalize it by dividing e.g. net profit by Max cumulative drawdown, so my best performance would show the best net profit with the least cumulative drawdown.

      The Min DrawDown only shows the smallest since drawdown, and it's not cumulative.



      Minimum Drawdown
      This fitness metric represents the smallest decrease (drawdown) in account size experienced from the highest high seen in each trade, and is used to find the iteration with the lowest drawdown.

      See the Maximum Drawdown formula on the Statistics Definitions page
      Min Drawdown = the smallest single drawdown

      Comment


        #4
        I am referring to this metric - see attached picture.
        Can anybody please help ?
        Attached Files

        Comment


          #5
          Hello markkm,

          While our NinjaTrader support team is not able to write the logic or calculation on your behalf, this thread will remain open for any community members that would like to write this calculation and logic as a convenience to you.

          You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like our business development follow up with you with a list of affiliate consultants who would be happy to create this script or any others at your request.
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            An accurate measure of True Drawdown is critical !

            To the NT team: While I understand how NT8 currently calculates drawdown, and while I also understand that you can't be expected to develop every feature and indicator the NT community wants, I'd like to second the original poster's request for an accurate method to integrate real drawdown (eg. Max Cumulative Drawdown) into our Optimization fitness and performance metrics.



            Drawdown is understood by the vast majority of the finance community to be Cumulative Maximum Drawdown. This metric does in fact appear on the strategy analyzer analysis table as "Cum. max. drawdown," however, it does not seem to be accessible within a custom Optimization Fitness function. Considering that Drawdown is one of the Most important metrics in quantitative finance (if not THE most important), I think it is more than reasonable to expect an accurate drawdown feature. Frankly, I love the NT8 platform but the lack of a usefull drawdown measurement is probably your single greatest problem.


            PS: I'll pass this along to your product team as well.

            Comment


              #7
              Max Cumulative Drawdown metric is Critical... Why is it still not available?

              To the NT team: While I understand how NT8 currently calculates drawdown, and while I also understand that you can't be expected to develop every feature and indicator the NT community wants, I'd like to second the original poster's request for an accurate method to integrate real drawdown (eg. Max Cumulative Drawdown) into our Optimization fitness and performance metrics.

              Drawdown is understood by the vast majority of the finance community to be Cumulative Maximum Drawdown. This metric does in fact appear on the strategy analyzer analysis table as "Cum. max. drawdown," however, it does not seem to be accessible within a custom Optimization Fitness function. Considering that Drawdown is one of the Most important metrics in quantitative finance (if not THE most important), I think it is more than reasonable to expect an accurate drawdown feature. Frankly, I love the NT8 platform but the lack of a usefull drawdown measurement is probably your single greatest problem.


              PS: I'll pass this along to your product team as well.

              Comment


                #8
                Hello deltamacro,

                I will submit a feature request on your behalf for the development to consider creating this optimization fitness script.

                Once I have a tracking ID for this request I will post in this thread for future reference.
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #9
                  deltamacro, I agree, thanks for bringing this up.

                  Meanwhile, you can divide by (Math.Abs(strategy.SystemPerformance.AllTrades.Tra desPerformance.Percent.Drawdown) to optimize for the least DD. It's not cumulative but it gives an indication.

                  Comment


                    #10
                    Hello,

                    I have received tracking ID #SFT-3468 for this request for a Max Cumulative Drawdown Optimization Fitness script.

                    Please note it is up to the NinjaTrader Development to decide if or when any request will be implemented.
                    Chelsea B.NinjaTrader Customer Service

                    Comment


                      #11
                      Is there any update on creating this Max Drawdown Optimization?

                      Comment


                        #12
                        Hello rcarver62,

                        Welcome to the NinjaTrader forums!

                        SFT-3468 has not been implemented at this time.

                        Please note it is up to the NinjaTrader Development to decide if or when any request will be implemented.
                        Chelsea B.NinjaTrader Customer Service

                        Comment


                          #13
                          Any other backdoor ways to control a strategy in a similar way?

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by Christopher_R, Today, 12:29 AM
                          0 responses
                          9 views
                          0 likes
                          Last Post Christopher_R  
                          Started by sidlercom80, 10-28-2023, 08:49 AM
                          166 responses
                          2,235 views
                          0 likes
                          Last Post sidlercom80  
                          Started by thread, Yesterday, 11:58 PM
                          0 responses
                          3 views
                          0 likes
                          Last Post thread
                          by thread
                           
                          Started by jclose, Yesterday, 09:37 PM
                          0 responses
                          8 views
                          0 likes
                          Last Post jclose
                          by jclose
                           
                          Started by WeyldFalcon, 08-07-2020, 06:13 AM
                          10 responses
                          1,415 views
                          0 likes
                          Last Post Traderontheroad  
                          Working...
                          X