I'm trying to figure out how to calculate a daily drawdown that resets automatically on each new day.
Here is some sample data as requested:
| Date | Result | Daily Drawdown | |||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 3/11/2024 | 1 | 0 | |||||||||||||||||||||||||||||||
| 3/11/2024 | 1 | 0 | |||||||||||||||||||||||||||||||
| 3/11/2024 | 1 | 0 | |||||||||||||||||||||||||||||||
| 3/11/2024 | 1 | 0 | |||||||||||||||||||||||||||||||
| 3/11/2024 | 1 | 0 | |||||||||||||||||||||||||||||||
| 3/11/2024 | 1 | 0 | |||||||||||||||||||||||||||||||
| 3/11/2024 | 1 | 0 | |||||||||||||||||||||||||||||||
| 3/11/2024 | 1 | 0 | |||||||||||||||||||||||||||||||
| 3/11/2024 | 2 | 0 | |||||||||||||||||||||||||||||||
| 3/11/2024 | 0 | 0 | |||||||||||||||||||||||||||||||
| 3/11/2024 | 1 | 0 | |||||||||||||||||||||||||||||||
| 3/11/2024 | -14 | -3 | |||||||||||||||||||||||||||||||
| 3/11/2024 | 1 | -3 | |||||||||||||||||||||||||||||||
| 3/11/2024 | -22 | -24 | |||||||||||||||||||||||||||||||
| 3/11/2024 | 1 | -24 | |||||||||||||||||||||||||||||||
| 3/11/2024 | 1 | -24 | |||||||||||||||||||||||||||||||
| 3/11/2024 | -13 | -35 | |||||||||||||||||||||||||||||||
| 3/11/2024 | 1 | -35 | |||||||||||||||||||||||||||||||
| 3/11/2024 | 1 | -35 | |||||||||||||||||||||||||||||||
| 3/11/2024 | 1 | -35 | |||||||||||||||||||||||||||||||
| 3/12/2024 | 1 | -35 | |||||||||||||||||||||||||||||||
| 3/12/2024 | 1 | -35 | |||||||||||||||||||||||||||||||
| 3/12/2024 | 1 | -35 | |||||||||||||||||||||||||||||||
| 3/12/2024 | 1 | -35 | |||||||||||||||||||||||||||||||
| 3/12/2024 | 1 | -35 | |||||||||||||||||||||||||||||||
| 3/12/2024 | 1 | -35 | |||||||||||||||||||||||||||||||
| 3/12/2024 | 1 | -35 | |||||||||||||||||||||||||||||||
| 3/12/2024 | 1 | -35 | |||||||||||||||||||||||||||||||
| 3/12/2024 | -24 | -48 | |||||||||||||||||||||||||||||||
| 3/12/2024 | 1 | -48 | |||||||||||||||||||||||||||||||
| 3/12/2024 | 1 | -48 | |||||||||||||||||||||||||||||||
| 3/12/2024 | 1 | -48 | |||||||||||||||||||||||||||||||
| 3/12/2024 | 1 | -48 | |||||||||||||||||||||||||||||||
| 3/12/2024 | 1 | -48 | |||||||||||||||||||||||||||||||
| 3/12/2024 | 1 | -48 | |||||||||||||||||||||||||||||||
| 3/12/2024 | 1 | -48 | |||||||||||||||||||||||||||||||
| 3/12/2024 | 1 | -48 | |||||||||||||||||||||||||||||||
| 3/12/2024 | 1 | -48 | |||||||||||||||||||||||||||||||
| 3/13/2024 | 1 | -48 | |||||||||||||||||||||||||||||||
| 3/13/2024 | 1 | -48 | |||||||||||||||||||||||||||||||
| 3/13/2024 | 1 | -48 | |||||||||||||||||||||||||||||||
| 3/13/2024 | 1 | -48 | |||||||||||||||||||||||||||||||
| 3/13/2024 | 1 | -48 | |||||||||||||||||||||||||||||||
| 3/13/2024 | 1 | -48 | |||||||||||||||||||||||||||||||
| 3/13/2024 | 1 | -48 | |||||||||||||||||||||||||||||||
| 3/13/2024 | 1 | -48 | |||||||||||||||||||||||||||||||
| 3/13/2024 | 1 | -48 | |||||||||||||||||||||||||||||||
| 3/13/2024 | 1 | -48 | |||||||||||||||||||||||||||||||
| 3/13/2024 | 1 | -48 | |||||||||||||||||||||||||||||||
| 3/13/2024 | 1 | -48 | |||||||||||||||||||||||||||||||
| 3/13/2024 | 1 | -48 | |||||||||||||||||||||||||||||||
| 3/13/2024 | 1 | -48 | |||||||||||||||||||||||||||||||
| 3/13/2024 | 1 | -48 | |||||||||||||||||||||||||||||||
| 3/13/2024 | 1 | -48 | |||||||||||||||||||||||||||||||
| 3/13/2024 | 1 | -48 | |||||||||||||||||||||||||||||||
| 3/13/2024 | 1 | -48 | |||||||||||||||||||||||||||||||
| 3/13/2024 | 1 | -48 | |||||||||||||||||||||||||||||||
| 3/13/2024 | 1 | -48 | |||||||||||||||||||||||||||||||
| 3/13/2024 | 1 | -48 | |||||||||||||||||||||||||||||||
| 3/13/2024 | 1 | -48 | |||||||||||||||||||||||||||||||
| 3/13/2024 | 1 | -48 | |||||||||||||||||||||||||||||||
| 3/13/2024 | -26 | -48 | |||||||||||||||||||||||||||||||
| 3/13/2024 | -25 | -67 | |||||||||||||||||||||||||||||||
| 3/13/2024 | 1 | -67 | |||||||||||||||||||||||||||||||
| 3/14/2024 | 1 | -67 | |||||||||||||||||||||||||||||||
| 3/14/2024 | 1 | -67 | |||||||||||||||||||||||||||||||
| 3/14/2024 | 1 | -67 | |||||||||||||||||||||||||||||||
| 3/14/2024 | 1 | -67 | |||||||||||||||||||||||||||||||
| 3/14/2024 | 1 | -67 | |||||||||||||||||||||||||||||||
| 3/14/2024 | 1 | -67 | |||||||||||||||||||||||||||||||
| 3/14/2024 | 1 | -67 | |||||||||||||||||||||||||||||||
| 3/14/2024 | 1 | -67 | |||||||||||||||||||||||||||||||
| 3/14/2024 | 1 | -67 | |||||||||||||||||||||||||||||||
| 3/14/2024 | 1 | -67 | |||||||||||||||||||||||||||||||
| 3/14/2024 | 1 | -67 | |||||||||||||||||||||||||||||||
| 3/14/2024 | 1 | -67 | |||||||||||||||||||||||||||||||
| 3/14/2024 | 1 | -67 | |||||||||||||||||||||||||||||||
| 3/14/2024 | 1 | -67 | |||||||||||||||||||||||||||||||
| 3/14/2024 | 1 | -67 | |||||||||||||||||||||||||||||||
| 3/14/2024 | 1 | -67 | |||||||||||||||||||||||||||||||
| 3/14/2024 | 1 | -67 | |||||||||||||||||||||||||||||||
| 3/14/2024 | 1 | -67 | |||||||||||||||||||||||||||||||
| 3/14/2024 | 1 | -67 | |||||||||||||||||||||||||||||||
| 3/14/2024 | 1 | -67 | |||||||||||||||||||||||||||||||
| 3/14/2024 | 1 | -67 | |||||||||||||||||||||||||||||||
| 3/14/2024 | -25 | -70 | |||||||||||||||||||||||||||||||
| 3/14/2024 | -23 | -93 | |||||||||||||||||||||||||||||||
| 3/14/2024 | 1 | -93 |
I would like the number in column AH (the column at the far right) to reset at each new day. At that point it should be the lower of that trade's result (if the first trade of the day was a loss), or zero.
I'd also love an arayformula method of calculating the drawdown so that it dynamically expands to however much data is in the sheet, I've been working on that one for hours but as Sheets can't handle sums in arrayformulas, it's got me stumped so I'm looking for a helping hand.