Skip to content

Commit 39719df

Browse files
committed
sell_r_4: fine tune sell params.
1 parent c05a73b commit 39719df

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

NostalgiaForInfinityNext.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2547,19 +2547,19 @@ def sell_r_3(self, current_profit: float, last_candle) -> tuple:
25472547

25482548
def sell_r_4(self, current_profit: float, last_candle) -> tuple:
25492549
if (0.02 > current_profit >= 0.012):
2550-
if (last_candle['r_480'] > -2.0) and (last_candle['rsi_14'] > 68.0) and (last_candle['cti'] > 0.9):
2550+
if (last_candle['r_480'] > -2.0) and (last_candle['rsi_14'] > 78.0) and (last_candle['cti'] > 0.9):
25512551
return True, 'signal_profit_w_4_1'
25522552
elif (0.03 > current_profit >= 0.02):
2553-
if (last_candle['r_480'] > -2.5) and (last_candle['rsi_14'] > 68.0) and (last_candle['cti'] > 0.9):
2553+
if (last_candle['r_480'] > -2.5) and (last_candle['rsi_14'] > 78.0) and (last_candle['cti'] > 0.9):
25542554
return True, 'signal_profit_w_4_2'
25552555
elif (0.04 > current_profit >= 0.03):
2556-
if (last_candle['r_480'] > -3.0) and (last_candle['rsi_14'] > 68.0) and (last_candle['cti'] > 0.9):
2556+
if (last_candle['r_480'] > -3.0) and (last_candle['rsi_14'] > 78.0) and (last_candle['cti'] > 0.9):
25572557
return True, 'signal_profit_w_4_3'
25582558
elif (0.05 > current_profit >= 0.04):
2559-
if (last_candle['r_480'] > -3.5) and (last_candle['rsi_14'] > 68.0) and (last_candle['cti'] > 0.9):
2559+
if (last_candle['r_480'] > -3.5) and (last_candle['rsi_14'] > 78.0) and (last_candle['cti'] > 0.9):
25602560
return True, 'signal_profit_w_4_4'
25612561
elif (0.06 > current_profit >= 0.05):
2562-
if (last_candle['r_480'] > -4.0) and (last_candle['rsi_14'] > 68.0) and (last_candle['cti'] > 0.9):
2562+
if (last_candle['r_480'] > -4.0) and (last_candle['rsi_14'] > 78.0) and (last_candle['cti'] > 0.9):
25632563
return True, 'signal_profit_w_4_5'
25642564
elif (0.07 > current_profit >= 0.06):
25652565
if (last_candle['r_480'] > -4.5) and (last_candle['rsi_14'] > 79.0) and (last_candle['cti'] > 0.9):

0 commit comments

Comments
 (0)