remove irrelevant trade.has_open_orders conditions

This commit is contained in:
Axel-CH
2024-09-11 18:42:51 -04:00
parent 730bef2920
commit 33b421014d
2 changed files with 4 additions and 6 deletions

View File

@@ -1377,8 +1377,7 @@ class Backtesting:
self.wallets.update()
# 4. Create exit orders (if any)
if trade.has_open_position:
self._check_trade_exit(trade, row, current_time) # Place exit order if necessary
self._check_trade_exit(trade, row, current_time) # Place exit order if necessary
# 5. Process exit orders.
order = trade.select_order(trade.exit_side, is_open=True)