Simplify backtest condition
This commit is contained in:
parent
62ca822597
commit
b6c096d3bc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user