Fix a case where the amount was not recalculated. Added additional temporary logging.
This commit is contained in:
@@ -160,6 +160,10 @@ class StrategyTestV2(IStrategy):
|
||||
current_rate: float, current_profit: float, **kwargs):
|
||||
|
||||
if current_profit < -0.0075:
|
||||
for order in trade.orders:
|
||||
if order.ft_is_open:
|
||||
return None
|
||||
|
||||
return self.wallets.get_trade_stake_amount(pair, None)
|
||||
|
||||
return None
|
||||
|
Reference in New Issue
Block a user