Merge pull request #2737 from freqtrade/plotting_percent

show percent in sell hover message.
This commit is contained in:
hroff-1902
2020-01-02 22:04:34 +03:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -120,8 +120,8 @@ def plot_trades(fig, trades: pd.DataFrame) -> make_subplots:
)
)
# Create description for sell summarizing the trade
desc = trades.apply(lambda row: f"{round(row['profitperc'], 3)}%, {row['sell_reason']}, "
f"{row['duration']} min",
desc = trades.apply(lambda row: f"{round(row['profitperc'] * 100, 1)}%, "
f"{row['sell_reason']}, {row['duration']} min",
axis=1)
trade_sells = go.Scatter(
x=trades["close_time"],