Skip to content

Commit cefacf4

Browse files
committed
chore: fix typo causing double negation
1 parent c9aa202 commit cefacf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

freqtrade/optimize/backtesting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ def handle_left_open(
11681168
for trade in list(open_trades[pair]):
11691169
if (
11701170
trade.has_open_orders and trade.nr_of_successful_entries == 0
1171-
) or not not trade.has_open_position:
1171+
) or not trade.has_open_position:
11721172
# Ignore trade if entry-order did not fill yet
11731173
LocalTrade.remove_bt_trade(trade)
11741174
continue

0 commit comments

Comments
 (0)