Simplify backtest condition

This commit is contained in:
Matthias 2022-10-15 12:08:58 +02:00
parent 62ca822597
commit b6c096d3bc

View File

@ -924,7 +924,6 @@ class Backtesting:
Handling of left open trades at the end of backtesting
"""
for pair in open_trades.keys():
if len(open_trades[pair]) > 0:
for trade in open_trades[pair]:
if trade.open_order_id and trade.nr_of_successful_entries == 0:
# Ignore trade if entry-order did not fill yet