This commit is contained in:
crypto_rahino
2021-03-19 11:13:07 +02:00
parent 38b96f071f
commit df3c607e57
136 changed files with 13669 additions and 4 deletions

View File

@@ -179,6 +179,8 @@ def plot_trades(fig, trades: pd.DataFrame) -> make_subplots:
# Create description for sell summarizing the trade
trades['desc'] = trades.apply(lambda row: f"{round(row['profit_ratio'] * 100, 1)}%, "
f"{row['sell_reason']}, "
f"open:{row['open_date']}, "
f"close:{row['close_date']}, "
f"{row['trade_duration']} min",
axis=1)
trade_buys = go.Scatter(