feat: prevent raising position size using adjustment position in paused state

This commit is contained in:
Axel-CH
2025-03-25 12:09:24 -04:00
parent 4fa8c3f9ab
commit 0553486e55

View File

@@ -781,6 +781,10 @@ class FreqtradeBot(LoggingMixin):
)
if stake_amount is not None and stake_amount > 0.0:
if self.state == State.PAUSED:
logger.debug("Position adjustment aborted because the bot is in PAUSED state")
return
# We should increase our position
if self.strategy.max_entry_position_adjustment > -1:
count_of_entries = trade.nr_of_successful_entries