Minimum re-entry stake should not include stoploss

This commit is contained in:
Matthias
2023-03-14 08:14:01 +01:00
parent 5c280d5649
commit 8f29312c9e
2 changed files with 12 additions and 4 deletions

View File

@@ -749,7 +749,7 @@ class Backtesting:
leverage = min(max(leverage, 1.0), max_leverage)
min_stake_amount = self.exchange.get_min_pair_stake_amount(
pair, propose_rate, -0.05, leverage=leverage) or 0
pair, propose_rate, -0.05 if not pos_adjust else 0.0, leverage=leverage) or 0
max_stake_amount = self.exchange.get_max_pair_stake_amount(
pair, propose_rate, leverage=leverage)
stake_available = self.wallets.get_available_stake_amount()