Plot percent correctly
This commit is contained in:
parent
9e1f7cb71c
commit
54d20cb81c
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user