Allow closing trades without message

This commit is contained in:
Matthias
2020-11-16 20:21:32 +01:00
parent b606936eb7
commit 9f34aebdaa
2 changed files with 7 additions and 6 deletions

View File

@@ -243,7 +243,7 @@ class Backtesting:
trade.close_date = sell_row[DATE_IDX]
trade.sell_reason = sell.sell_type
trade.close(closerate)
trade.close(closerate, show_msg=False)
return BacktestResult(pair=trade.pair,
profit_percent=trade.calc_profit_ratio(rate=closerate),