diff --git a/NostalgiaForInfinityNext.py b/NostalgiaForInfinityNext.py index 2572ca6a14..b8e1905f95 100644 --- a/NostalgiaForInfinityNext.py +++ b/NostalgiaForInfinityNext.py @@ -3377,7 +3377,7 @@ def sell_under_min(self, current_profit: float, last_candle) -> tuple: return False, None def sell_stoploss(self, current_profit: float, max_profit: float, max_loss: float, last_candle, previous_candle_1, trade: 'Trade', current_time: 'datetime') -> tuple: - if (last_candle['close'] < last_candle['ema_200']) and (last_candle['sma_200_dec_24']) and (last_candle['ema_25'] < last_candle['ema_50']) and (current_time - timedelta(minutes=1440) > trade.open_date_utc): + if (last_candle['close'] < last_candle['ema_200']) and (last_candle['sma_200_dec_24']) and (last_candle['ema_25'] < last_candle['ema_50']) and (current_time - timedelta(minutes=2880) > trade.open_date_utc): if (-0.12 <= current_profit < -0.08): if (last_candle['close'] < last_candle['atr_high_thresh_1']) and (previous_candle_1['close'] > previous_candle_1['atr_high_thresh_1']): return True, 'signal_stoploss_atr_1'