Use >= to compare for winning trades

This commit is contained in:
Matthias 2020-06-25 19:22:50 +02:00
parent 0509b9a8fc
commit 6734269bfc
1 changed files with 1 additions and 1 deletions

View File

@ -284,7 +284,7 @@ class RPC:
profit_ratio = trade.close_profit
profit_closed_coin.append(trade.close_profit_abs)
profit_closed_ratio.append(profit_ratio)
if trade.close_profit > 0:
if trade.close_profit >= 0:
winning_trades += 1
else:
losing_trades += 1