mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-20 14:00:38 +00:00
feat: prevent raising position size using adjustment position in paused state
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user