Switched close_reason back to sell_reason

This commit is contained in:
Sam Germain
2021-06-20 02:53:59 -06:00
parent 73dbc7a2f4
commit e198d7f3d2
17 changed files with 79 additions and 79 deletions

View File

@@ -193,7 +193,7 @@ def plot_trades(fig, trades: pd.DataFrame) -> make_subplots:
if trades is not None and len(trades) > 0:
# Create description for sell summarizing the trade
trades['desc'] = trades.apply(lambda row: f"{round(row['profit_ratio'] * 100, 1)}%, "
f"{row['close_reason']}, "
f"{row['sell_reason']}, "
f"{row['trade_duration']} min",
axis=1)
trade_buys = go.Scatter(