Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drawdown Question

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

    Drawdown Question

    Hi Dierk,

    I’m backtesting a few some simple models in both Excel and in NT just to double check NT’s performance statistics. I’m basically running a simple crossover “long only” model. I’m concerned that “Draw Down” statistic may not be calculated correctly and or applied correctly.

    Excel and NT versions
    a)NT and Excel both generate the same trades and cumulative PNL so the models are programmed correctly.
    b)If I calculate the drawdown as a typical CTA, I would use the formula
    a.Percent Draw Down= Retracement/Peak
    i.Retracement=Peak-Subsequent Low.
    b.(from Ed Seykota’s site)
    c)It is necessary to provide a starting equity to get correct % values, and this would be ideal. (I’m getting the same trade sizes as the Excel version because I’m putting starting equity into the strategy)

    The results…

    The actual draw down for the simple model is 53%. (Excel)
    The optimizer returns a value of 7%

    A big difference for anyone looking at drawdown….The NT optimizer returns different dollar amounts and % for the actual Draw Down.

    I believe the issue lies in

    1) Seeding the Drawdown statistic with starting equity..
    2) NT’s current “Draw Down” looks at Peak Equity on a closed basis. (e.g. when a trade is taken off). However, if I’m holding a position for several days or weeks, Peak equity and drawdown are actually measured on a daily basis (e.g. on the close of the bar). Thus Peak Equity always needs to basis open equity.

    Simple example: Dear Mr. investor, your account is actually down 50% based on open equity, but since we haven’t taken the position off yet…please discount the 50% figure. We watched the open equity go up for several days and back down....really no drawdown...?

    If I adjust the Excel model version to be basis Closed equity…they get the same $ dollar figures. Thus I believe the issue to be constrained to both 1 and 2 above.

    My guess is that the DD is some type of intraday/real time DD where users take the position off every day…thus the close of the bar and taking the position off are the same thing.


    Regards

    Matt

    #2
    Unfortunately I can not comment on your tests or on Ed Seykota's DrawDown calcs. We do calculate the drawdown as the max retracement from the last peak.

    Please let me know if you have a reproducible scenario that the calculation do not match logic above. Please provide then a step by step scenario in order to reproduce.

    Also: To not get confused I strongly recommend verifying based on the Percentage mode. Thus "starting equity" is irrelevant.

    Also:
    >> NT’s current “Draw Down” looks at Peak Equity on a closed basis
    That is correct.

    Thanks

    Comment


      #3
      Re: Drawdown

      Dierk,

      The root of my issue: I need to look at Draw Down Peak Equity on an Open Equity basis.

      Example of measuring Peak Equity on Closed Basis.

      I buy a stock or future at @1$ and hold it for 300 days. The stock climbs to 10 and stays there for 299 days. On day 300 the stock returns to 1. NT's drawdown is 0. I believe the rest of the world will measure this drawdown at 90%.

      a) If you are the investor in this fund, You are going to see your daily equity move from 10 back to 1 and recognize the drawdown of 90%.
      b)The usefullness of modelling drawdown is to find parameters so that I exit prior to the return to 1.
      c)I believe the industry will measure the drawdown as 90% as well...




      Regards

      Matt

      Comment


        #4
        There are several ways to skin a cat. NT provides you closed trade drawdown

        Comment


          #5
          Re: Dd

          Actually , I think closed trade drawdown will get alot of cats skinned.

          If the example of a draw down discrepancy of 90% vs 0% doesn't alarm you, then I don't have more to say.

          Nice software, actually better in alot of ways than some of the CTA software in use...

          A huge improvement would be to allow customization of the optimization metrics in the strategy...

          Thanks for your time...

          Regards

          Matt

          Comment


            #6
            There is no discrepancy. As per your sample below there is a closed trade drawdown of 0 which is reported by NT.

            Comment


              #7
              >> A huge improvement would be to allow customization of the optimization metrics in the strategy...
              Forgot: Although we do not provide support for that, you might want to take a look at the folder <my documents>/NinjaTrader6/bin/Custom/Type ... you get the idea ...

              Comment


                #8
                Intraday Drawdown

                Great Thread!

                Dierk, I have exactly the same concern. In order to get a proper handle on the peak to valley drawdown, WHILE IN THE TRADE, what do I need to change?

                Do I need to change something in @minDrawDown.cs (and respectively the additional Long and Short versions of said?)

                Please advise. It would really be helpful.

                TradeStation for example has Peak to Valley, based on Closed Trade, but also intraday. Does the MAE give any insight to this?


                Thank you,



                r2kTrader
                Last edited by r2kTrader; 04-17-2009, 06:29 AM.

                Comment


                  #9
                  Unfortunately NT does not support 'intratrade' drawdown.

                  Comment


                    #10
                    Dierk,

                    Is there any way to get this information from the system. Do you provide any way programmatically to extract this information?


                    r2kTrader

                    Originally posted by NinjaTrader_Dierk View Post
                    Unfortunately NT does not support 'intratrade' drawdown.

                    Comment


                      #11
                      Unfortunately we do not provide support for that.

                      Comment


                        #12
                        Dierk,

                        Short answer: This is completely unacceptable.

                        Just to be clear, and correct me if I am wrong.

                        REAL RISK = Total Drawdown from when trade is filled until trade is closed. Thus if trade is put on at 100.00 and it the instrument goes to 50.00, but the final exit price is 75.00, then the REAL RISK would be 50.00.

                        When backtesting in NT, the tester will not be able to know what the REAL RISK was for a given trade based on the performance results as they are current provided.

                        Citing the REAL RISK example above, NT will show a max drawdown of 25.00 and not the TRUE drawdown of 50.00.

                        Is this correct?




                        Originally posted by NinjaTrader_Dierk View Post
                        Unfortunately we do not provide support for that.
                        Last edited by r2kTrader; 02-26-2009, 09:32 AM.

                        Comment


                          #13
                          Unfortunately NT only supports end-of-trade draw down at this time.

                          Comment


                            #14
                            Could you please tell us why?

                            The data is there, and this is critical as any trader will absolutely agree, so why?

                            Also, can you PLEASE direct me to do it myself.

                            1. We know what the fill price is, or even average fill price is.

                            2. We know what the low of the instrument was while in the market with an open position.

                            3. We calculate the difference between 1 and 2 and that's going to tell us the REAL DRAWDOWN.

                            What am I missing here other than how to plug this into where the performance is currently being displayed for backtesting.

                            I understand you don't support it. But that is like having a hot dog stand and not providing mustard. Let's stop the back and forth with "we do not support this" and start talking about how or when to support it or how we can support it ourselves. Otherwise, backtesting is nothing more than a blackhole unless you have a firm stop loss to assure you didn't drawdown more than you max stop loss. Even then it's not accurate enough to design a true system.



                            Originally posted by NinjaTrader_Dierk View Post
                            Unfortunately NT only supports end-of-trade draw down at this time.

                            Comment


                              #15
                              Unfortunately I have no further information for you at this time than .DrawDown as per link below would be end-of-trade drawdown: http://www.ninjatrader-support.com/H...luesClass.html

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by argusthome, 03-08-2026, 10:06 AM
                              0 responses
                              116 views
                              0 likes
                              Last Post argusthome  
                              Started by NabilKhattabi, 03-06-2026, 11:18 AM
                              0 responses
                              61 views
                              0 likes
                              Last Post NabilKhattabi  
                              Started by Deep42, 03-06-2026, 12:28 AM
                              0 responses
                              40 views
                              0 likes
                              Last Post Deep42
                              by Deep42
                               
                              Started by TheRealMorford, 03-05-2026, 06:15 PM
                              0 responses
                              44 views
                              0 likes
                              Last Post TheRealMorford  
                              Started by Mindset, 02-28-2026, 06:16 AM
                              0 responses
                              82 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Working...
                              X