You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to Calculate Maximum Drawdown

I need help with a formula to calculate the maximum drawdown for my portfolio equity. I've already created a column outlining my equity value after every single trade, the percentage gain for each trade, and my cumulative equity percentage gain after each trade, but using the MIN formula on that column only returns the the lowest single value of the sample, not the lowest cumulative value (like with consecutive losses that extend the drawdown). I also can't figure out how to focus the formula on the lowest value (drawdown) from the most recent peak value (as opposed to the lowest value (drawdown) from the overall peak, which don't necessarily come in the right order to count as a drawdown).


Here's a picture of the sample data and columns I'm referencing:

Posted on Apr 6, 2022 7:47 PM

Reply
Question marked as Top-ranking reply

Posted on Apr 7, 2022 9:06 PM

Here's what the formula looks like in Numbers when following along with the video.




It would be entered as:


=MIN((B2−MAX($B$2:B2))/MAX($B$2:B2,0))


Replace the , in the formula with an ; if your region uses , as a decimal separator.


MIN in Excel and Numbers work the same. You may have missed the all important $ anchor in the "expanding range" in the formula.



SG

7 replies
Question marked as Top-ranking reply

Apr 7, 2022 9:06 PM in response to Wizard_of_Odds

Here's what the formula looks like in Numbers when following along with the video.




It would be entered as:


=MIN((B2−MAX($B$2:B2))/MAX($B$2:B2,0))


Replace the , in the formula with an ; if your region uses , as a decimal separator.


MIN in Excel and Numbers work the same. You may have missed the all important $ anchor in the "expanding range" in the formula.



SG

Apr 6, 2022 9:03 PM in response to Wizard_of_Odds

If I understand you correctly you can try things like this:





You can hide the extra columns in the first table when you've got them working correctly.


The columns showing the formulas aren't needed; they're just used to display the formulas here.


BTW, it is not entirely correct to just "add" the % changes in your column E.


SG


Apr 7, 2022 7:56 AM in response to SGIII

Is there a way for this to work if there is a winning trade between a series of losses? For example, if my starting equity was $1,000 and I lost three consecutive trades (equity now $900), won one trade (equity now $910), then lost another three trades (equity now $800), how do I capture that full drawdown from peak to trough? In other words, how would I keep a running $/% value drawdown from the peak value of my total equity to the following low point until a new peak is made?


And thank you for the heads up on the cumulative gain, I totally missed that.

Apr 7, 2022 8:25 AM in response to Wizard_of_Odds

Wizard_of_Odds wrote:

Is there a way for this to work if there is a winning trade between a series of losses? For example, if my starting equity was $1,000 and I lost three consecutive trades (equity now $900), won one trade (equity now $910), then lost another three trades (equity now $800), how do I capture that full drawdown from peak to trough?


But if you have a gain in the middle then you've got a new peak, right?


SG

Apr 7, 2022 8:38 AM in response to Wizard_of_Odds

'Trough Value - Peak Value' is equivalent to the '$ Change since recent peak' in my example.


The whole right side of the equation is equivalent to '% Change since recent peak' in the example.


Note that '% Change since recent peak' in my example does indeed "ignore low points that come before the most recent peak".


The investment jargon from your source is ambiguous. Drawdown is a euphemism for (unrealized) loss. It is important, of course, to distinguish between $ loss and % loss. The formula from your source merely measures the % loss from a peak rather than from a purchase price.


SG




Apr 7, 2022 9:56 AM in response to SGIII

The peak would always be the high point of the portfolio until a new high is made. A small win in between several losses would still be part of a larger drawdown so I want to add the total negative value from the peak to the lowest point after that. Once a new high (peak) is made, the max drawdown would then start from that point.


Below is a video of someone calculating it on Excel (feel free to skip to 1:36 for the actual Excel portion). For whatever reason, it seems the MIN function on Excel returns the cumulative minimum value whereas the Numbers MIN function returns the single cell with the lowest value.


https://www.youtube.com/watch?v=pPiLxPqz3Ds

How to Calculate Maximum Drawdown

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.