+ Reply to Thread
Results 1 to 2 of 2

Calculating various drawdown metrics

  1. #1
    Forum Contributor
    Join Date
    01-26-2018
    Location
    London, England
    MS-Off Ver
    365
    Posts
    311

    Calculating various drawdown metrics

    Hi everyone,

    I'm looking to calculate the following figures from my dataset (included below, Col B):

    1. "Max drawdown (sum)"
    2. "Max drawdown (length)"
    3. "Avg. drawdown (sum)"
    4. "Avg. drawdown (length)"

    A "drawdown" is anytime the graph is trending downwards (i.e. negative gradient)

    Couple of screenies

    Max drawdown, visually:

    MDGASDHNQSmibpW7NMQY4Q.png

    Drawdown sum (used to calc the avg)

    bEEPBpdLR_qBJPa7xxfvJQ.png

    Drawdown length (used to cal avg)

    zkJpgeUfRtuQn8OEnR_Wnw.png

    Hope that wasn't to rambly

    Any questions/clarifications do leave em below

    Ty

    Mdn
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Calculating various drawdown metrics

    Please try

    1. "Max drawdown (sum)"
    =MIN(INDEX(SUBTOTAL(9,OFFSET(B1,AGGREGATE(15,6,ROW(B1:B999)/(D1:D999<>D2:D1000),ROW(INDIRECT("1:"&SUMPRODUCT(--(D1:D999>D2:D1000))))*2-1),,MMULT(AGGREGATE(15,6,ROW(B1:B999)/(D1:D999<>D2:D1000),ROW(INDIRECT("1:"&SUMPRODUCT(--(D1:D999>D2:D1000))))*2-{1,0}),{-1;1}))),))


    2. "Max drawdown (length)"
    =MAX(MMULT(AGGREGATE(15,6,ROW(B1:B999)/(D1:D999<>D2:D1000),ROW(INDIRECT("1:"&SUMPRODUCT(--(D1:D999>D2:D1000))))*2-{1,0}),{-1;1}))

    3. "Avg. drawdown (sum)"
    =AVERAGE(INDEX(SUBTOTAL(9,OFFSET(B1,AGGREGATE(15,6,ROW(B1:B999)/(D1:D999<>D2:D1000),ROW(INDIRECT("1:"&SUMPRODUCT(--(D1:D999>D2:D1000))))*2-1),,MMULT(AGGREGATE(15,6,ROW(B1:B999)/(D1:D999<>D2:D1000),ROW(INDIRECT("1:"&SUMPRODUCT(--(D1:D999>D2:D1000))))*2-{1,0}),{-1;1}))),))


    4. "Avg. drawdown (length)"
    =AVERAGE(MMULT(AGGREGATE(15,6,ROW(B1:B999)/(D1:D999<>D2:D1000),ROW(INDIRECT("1:"&SUMPRODUCT(--(D1:D999>D2:D1000))))*2-{1,0}),{-1;1}))
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Drawdown- calculate size and length of multiple drawdown phases (non-VBA)
    By chipps24 in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 04-01-2024, 09:06 AM
  2. How to distribute weight of metrics to other metrics if value is ZERO
    By ackwizz in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-18-2017, 12:38 AM
  3. Calculating maximum drawdown in a set off data
    By SEABOND in forum Excel General
    Replies: 0
    Last Post: 08-01-2016, 08:10 PM
  4. Replies: 4
    Last Post: 05-21-2015, 04:09 PM
  5. Dashboard metrics
    By EXCELBENCH in forum Excel General
    Replies: 6
    Last Post: 04-27-2015, 11:30 AM
  6. Running Metrics
    By mycon73 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-25-2011, 08:34 PM
  7. Help calculating drawdown
    By maani in forum Excel General
    Replies: 8
    Last Post: 07-27-2009, 10:59 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1