Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

How to calculate Max Drawdown of several trading Strategies

I would like to Calculate the Max Drawdown for specific Strategy,(one)

Also when I select a combination of multiple Strategies\(Where I built Portfolio) for a filtered period, could be a couple days/month or 2-3 -4 years.

 

My Model and Relationship are

All my trades are in one table.

All trategies in 1 table.

All portfolio are in 1 table, combination of multiple Strategies

Calendar table

Patrader_1-1677548829928.png

 

Definition of Max Drawdown (MDD) is the maximum observed loss from a peak to a trough of a portfolio, before a new peak is attained

Below picture is from my trading software, Green graph is Cumulative net profit, and red is Max Drawdown, I need to be able to get in BI the same MDD, so the MDD has been reached from Peak Dec 16/21 to march 10,22. (Yellow rectangle)

Patrader_2-1677548999439.png

 

_1_Master_Trade_Combined

TradeIDBots.AccountData.Exit timeP & L
7757Bot_ES_MU2023-01-05 10:30-568
7743Bot_ES_MU2023-01-06 16:002558
2757Bot_CL_WC2023-01-09 10:35-675
7737Bot_ES_MU2023-01-09 13:3082
2756Bot_CL_WC2023-01-09 16:00375
7698Bot_ES_MU2023-01-12 15:00-568
7690Bot_ES_AP2023-01-13 10:30-1318
2751Bot_CL_PP2023-01-13 16:35335
7686Bot_ES_MU2023-01-17 11:00-568
2749Bot_CL_MG2023-01-18 16:00705
2750Bot_CL_WC2023-01-18 16:00715
7671Bot_ES_MU2023-01-18 16:001895
7669Bot_ES_MU2023-01-19 13:3045
7659Bot_ES_MU2023-01-20 16:002432
2747Bot_CL_PP2023-01-20 16:35165
2746Bot_CL_WC2023-01-23 10:10-665
7635Bot_ES_MU2023-01-24 10:30-568
7623Bot_ES_MU2023-01-25 10:30-568
7628Bot_ES_AP2023-01-25 11:308
2744Bot_CL_MG2023-01-27 14:30205
2745Bot_CL_WC2023-01-27 14:30225
2742Bot_CL_PP2023-01-27 16:35-225
2741Bot_CL_WC2023-01-30 11:40-175
7604Bot_ES_AP2023-01-30 16:00808
7597Bot_ES_MU2023-01-30 16:00745
7588Bot_ES_MU2023-01-31 16:00995

 

Portfolio

PortfolioBots.Account
Port #1Bot_ES_MU
 Bot_ES_MU
 Bot_CL_WC
 Bot_CL_PP
Port#2Bot_CL_WC
 Bot_ES_MU
 Bot_ES_AP
Port#3Bot_CL_PP
 Bot_ES_MU
 Bot_CL_MG
 Bot_ES_AP

 

I need to add Column of MDD first (and be able to generate a bar graph), the previous suggestion in this thread is not reflecting the MDD as I described above.

Thanks

 

0 REPLIES 0

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.