Merge pull request #3126 from freqtrade/max_drawdown_percent

[minor] Plot percent correctly
This commit is contained in:
hroff-1902 2020-03-30 21:37:23 +03:00 committed by GitHub
commit 92bd550851
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,8 +136,8 @@ def add_max_drawdown(fig, row, trades: pd.DataFrame, df_comb: pd.DataFrame) -> m
df_comb.loc[lowdate, 'cum_profit'], df_comb.loc[lowdate, 'cum_profit'],
], ],
mode='markers', mode='markers',
name=f"Max drawdown {max_drawdown:.2f}%", name=f"Max drawdown {max_drawdown * 100:.2f}%",
text=f"Max drawdown {max_drawdown:.2f}%", text=f"Max drawdown {max_drawdown * 100:.2f}%",
marker=dict( marker=dict(
symbol='square-open', symbol='square-open',
size=9, size=9,