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 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
|
# We should increase our position
|
||||||
if self.strategy.max_entry_position_adjustment > -1:
|
if self.strategy.max_entry_position_adjustment > -1:
|
||||||
count_of_entries = trade.nr_of_successful_entries
|
count_of_entries = trade.nr_of_successful_entries
|
||||||
|
|||||||
Reference in New Issue
Block a user