Skip to content

Commit 2e17800

Browse files
committed
sell_long_mode: rework.
1 parent 298f3b0 commit 2e17800

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

NostalgiaForInfinityNext.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3141,6 +3141,9 @@ def sell_long_mode(self, current_profit: float, max_profit:float, max_loss:float
31413141
elif (0.5 < current_profit <= 0.9) and (max_profit - current_profit > 0.2) and (last_candle['cmf'] < 0.0):
31423142
return True, 'sell_long_t_5'
31433143

3144+
elif (0.03 < current_profit <= 0.06) and (current_time - timedelta(minutes=720) > trade.open_date_utc) and (last_candle['r_480'] > -20.0):
3145+
return True, 'sell_long_l_1'
3146+
31443147
elif (current_profit < -0.1) and (last_candle['close'] < last_candle['atr_high_thresh_l']) and (previous_candle_1['close'] > previous_candle_1['atr_high_thresh_q']) and (last_candle['sma_200_dec_24']) and (last_candle['ema_25'] < last_candle['ema_50']):
31453148
return True, 'sell_long_stoploss_1'
31463149

0 commit comments

Comments
 (0)