chore: ensure trades are committed after the exit loop
This commit is contained in:
@@ -293,6 +293,7 @@ class FreqtradeBot(LoggingMixin):
|
|||||||
trades = Trade.get_open_trades()
|
trades = Trade.get_open_trades()
|
||||||
# First process current opened trades (positions)
|
# First process current opened trades (positions)
|
||||||
self.exit_positions(trades)
|
self.exit_positions(trades)
|
||||||
|
Trade.commit()
|
||||||
|
|
||||||
# Check if we need to adjust our current positions before attempting to enter new trades.
|
# Check if we need to adjust our current positions before attempting to enter new trades.
|
||||||
if self.strategy.position_adjustment_enable:
|
if self.strategy.position_adjustment_enable:
|
||||||
|
|||||||
Reference in New Issue
Block a user