Skip to content

Commit 7d9bbbb

Browse files
committed
sell_stoploss: rework.
1 parent 6ee3c82 commit 7d9bbbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NostalgiaForInfinityNext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3377,7 +3377,7 @@ def sell_under_min(self, current_profit: float, last_candle) -> tuple:
33773377
return False, None
33783378

33793379
def sell_stoploss(self, current_profit: float, max_profit: float, max_loss: float, last_candle, previous_candle_1, trade: 'Trade', current_time: 'datetime') -> tuple:
3380-
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):
3380+
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):
33813381
if (-0.12 <= current_profit < -0.08):
33823382
if (last_candle['close'] < last_candle['atr_high_thresh_1']) and (previous_candle_1['close'] > previous_candle_1['atr_high_thresh_1']):
33833383
return True, 'signal_stoploss_atr_1'

0 commit comments

Comments
 (0)