More fun with types

This commit is contained in:
Matthias
2023-02-16 08:40:34 +00:00
parent 491f49388c
commit 47b66f3220
2 changed files with 6 additions and 6 deletions

View File

@@ -506,7 +506,7 @@ class RPC:
trades_df = DataFrame([{'close_date': trade.close_date.strftime(DATETIME_PRINT_FORMAT),
'profit_abs': trade.close_profit_abs}
for trade in trades if not trade.is_open])
for trade in trades if not trade.is_open and trade.close_date])
max_drawdown_abs = 0.0
max_drawdown = 0.0
if len(trades_df) > 0: