Rename duration to trade_duration

This commit is contained in:
Matthias
2020-06-26 21:04:40 +02:00
parent f368aabcc7
commit 7727292861
4 changed files with 6 additions and 5 deletions

View File

@@ -163,7 +163,8 @@ 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_percent'] * 100, 1)}%, "
f"{row['sell_reason']}, {row['duration']} min",
f"{row['sell_reason']}, "
f"{row['trade_duration']} min",
axis=1)
trade_buys = go.Scatter(
x=trades["open_date"],