feat: allow entry only if state is running

This commit is contained in:
Axel-CH
2025-03-21 17:30:32 -04:00
parent f46c8cdc4a
commit d09160fff8

View File

@@ -300,7 +300,7 @@ class FreqtradeBot(LoggingMixin):
self.process_open_trade_positions() self.process_open_trade_positions()
# Then looking for entry opportunities # Then looking for entry opportunities
if self.get_free_open_trades(): if self.state == State.RUNNING and self.get_free_open_trades():
self.enter_positions() self.enter_positions()
self._schedule.run_pending() self._schedule.run_pending()
Trade.commit() Trade.commit()