Maximum drawdown
perf.max-drawdownWhat it measures
The largest fall in account value from a peak, as a percentage of that peak. A peak is a high point the account's value reached, and a drawdown is the fall from it to a later low.
How it's worked out
- Rungfolio records the account value for each night it runs. For each night, it compares the value with the highest value on any night before it, and finds the night whose fall from that peak is the largest share of the peak. It gives the fall in dollars and as a percentage, rounded half up to a hundredth of a percent, with the peak's and the low's nights.
- When the value comes back to its peak, the peak moves to the later night. Two falls of the same percentage are told apart by the first.
- The account value counts open lots at the last close, so the drawdown includes unrealized losses. A ladder holding lots below their buy price shows that as a fall even though nothing has sold.
A maximum drawdown figure says how far the account's value fell, at its worst, from an earlier high. It looks at the worst fall along the way, not at where the account ends up. An account whose value never fell has a drawdown of 0.
Example
The value fell from $50,100 on Oct 2 to $49,599 on Oct 5: $501, which is 1% of $50,100. Later it fell from $50,150 to $49,900: $250, about 0.5%. The larger share is the maximum drawdown: $501, 1%.
| Night | Account value | Capital in use | Drawdown |
|---|---|---|---|
| Oct 1, 2026 | $50,000.00 | $1,000.00 | |
| Oct 2, 2026 | $50,100.00 | $1,200.00 | Peak |
| Oct 5, 2026 | $49,599.00 | $1,500.00 | Trough |
| Oct 6, 2026 | $50,150.00 | $900.00 | |
| Oct 7, 2026 | $49,900.00 | $1,300.00 | |
| Oct 8, 2026 | $50,300.00 | $1,100.00 | |
| Maximum drawdown | perf.max-drawdown | $501.00, 1%, from Oct 2, 2026 to Oct 5, 2026 | |
| Average capital in use | perf.capital-in-use | $1,166.67 | |
| Return on capital used | perf.return-on-capital | 0.9%, from $10.50 realized | |
In the app
The Journal shows it for the nights in your date range. The nightly records are kept per account, so with a ladder filter it shows the whole account's, and the page says so. With several accounts, it adds up their values night by night, and an account with no record on a night counts as it last stood. So an archived account's value carries forward from its last night. Every backtest shows it too, for the account and for the buy-and-hold comparison side by side, as the public showcase will. A backtest counts both from its starting cash, on the night before its first session, so a fall in the first session counts as one.