Skip to content

Commit 9f18e39

Browse files
committed
sell_quick_mode: rework.
1 parent 1df5cd1 commit 9f18e39

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
@@ -3032,7 +3032,7 @@ def sell_quick_mode(self, current_profit: float, max_profit:float, last_candle,
30323032
if (last_candle['close'] < last_candle['atr_high_thresh_q']) and (previous_candle_1['close'] > previous_candle_1['atr_high_thresh_q']):
30333033
if (0.05 > current_profit > 0.02):
30343034
return True, 'signal_profit_q_atr'
3035-
elif (current_profit < -0.08):
3035+
elif (current_profit < -0.08) and (last_candle['sma_200_dec_24']) and (last_candle['ema_25'] < last_candle['ema_50']):
30363036
return True, 'signal_stoploss_q_atr'
30373037

30383038
if (0.04 > current_profit > 0.02) and (last_candle['pm'] <= last_candle['pmax_thresh']) and (last_candle['close'] > last_candle['sma_21'] * 1.1):

0 commit comments

Comments
 (0)