Skip to content

Add realized maximum drawdown metric#504

Closed
nick-dolan wants to merge 2 commits intojesse-ai:masterfrom
nick-dolan:realized-max-dd
Closed

Add realized maximum drawdown metric#504
nick-dolan wants to merge 2 commits intojesse-ai:masterfrom
nick-dolan:realized-max-dd

Conversation

@nick-dolan
Copy link
Copy Markdown
Contributor

@nick-dolan nick-dolan commented Mar 3, 2025

Realized Max Drawdown

Trend-following strategies often filter out price spikes to avoid losing the trend early, and it often happens that you get the same maximum drawdown plus or minus at the same point, regardless of the hyper-parameters. To solve this problem, I suggest using RMD to get MAX Drawdown on closed trades.

Realized Maximum Drawdown (or Maximum Closed-Trade Balance Drop Percentage) refers to the largest percentage decline in the balance of a trading account based solely on closed trades, measured from the highest balance achieved to the lowest balance before a recovery or new peak occurs. This metric is crucial for assessing the downside risk of a trading strategy, as it excludes unrealized losses from open trades and focuses on actual, realized losses.

Formula for Realized Max Drawdown

$$ \text{Realized Max Drawdown %)} = \max \left( \frac{\text{Peak Balance} - \text{Lowest Subsequent Balance}}{\text{Peak Balance}} \times 100 \right) $$

where:

  • Peak Balance refers to the highest cumulative realized profit balance.
  • Lowest Subsequent Balance is the lowest point the balance drops to after reaching a peak, before potentially reaching a new peak.

@nick-dolan
Copy link
Copy Markdown
Contributor Author

Here is an example of optimisations to illustrate the use case, Max Drawdown is always around 30%, while Realised Max Drawdown is different everywhere and I need to throw out all variants with RMD greater than 10%. I can't do it without RMD

Screenshot 2025-03-04 at 13 32 47

@stale
Copy link
Copy Markdown

stale bot commented Jun 25, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale No recent activity. label Jun 25, 2025
@stale stale bot removed the stale No recent activity. label Jun 30, 2025
@stale
Copy link
Copy Markdown

stale bot commented Aug 29, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale No recent activity. label Aug 29, 2025
@stale stale bot closed this Sep 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale No recent activity.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant