Improve compatibility

This commit is contained in:
Matthias
2022-03-24 20:53:22 +01:00
parent ec63cfd656
commit e894f620c2
9 changed files with 16 additions and 11 deletions

View File

@@ -240,7 +240,7 @@ def plot_trades(fig, trades: pd.DataFrame) -> make_subplots:
trades['desc'] = trades.apply(
lambda row: f"{row['profit_ratio']:.2%}, " +
(f"{row['enter_tag']}, " if row['enter_tag'] is not None else "") +
f"{row['sell_reason']}, " +
f"{row['exit_reason']}, " +
f"{row['trade_duration']} min",
axis=1)
trade_buys = go.Scatter(