mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
feat: allow entry only if state is running
This commit is contained in:
@@ -300,7 +300,7 @@ class FreqtradeBot(LoggingMixin):
|
||||
self.process_open_trade_positions()
|
||||
|
||||
# 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._schedule.run_pending()
|
||||
Trade.commit()
|
||||
|
||||
Reference in New Issue
Block a user