Use absolute drawdown calc

This commit is contained in:
Matthias
2021-02-14 19:30:17 +01:00
committed by crypto_rahino
parent 2bbaeeb1b0
commit 2e6bb6c01a
5 changed files with 38 additions and 14 deletions

View File

@@ -145,7 +145,7 @@ def add_max_drawdown(fig, row, trades: pd.DataFrame, df_comb: pd.DataFrame,
Add scatter points indicating max drawdown
"""
try:
max_drawdown, highdate, lowdate = calculate_max_drawdown(trades)
max_drawdown, highdate, lowdate, _, _ = calculate_max_drawdown(trades)
drawdown = go.Scatter(
x=[highdate, lowdate],