chore: ensure trades are committed after the exit loop

This commit is contained in:
Matthias
2025-04-07 19:52:35 +02:00
parent 8be31275d7
commit 6b033c211e

View File

@@ -293,6 +293,7 @@ class FreqtradeBot(LoggingMixin):
trades = Trade.get_open_trades()
# First process current opened trades (positions)
self.exit_positions(trades)
Trade.commit()
# Check if we need to adjust our current positions before attempting to enter new trades.
if self.strategy.position_adjustment_enable: