Skip to content

Commit 80f3f26

Browse files
committed
sell_stoploss: rework.
1 parent 99372a8 commit 80f3f26

File tree

1 file changed

+0
-69
lines changed

1 file changed

+0
-69
lines changed

NostalgiaForInfinityNext.py

Lines changed: 0 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -3466,75 +3466,6 @@ def sell_stoploss(self, current_profit: float, max_profit: float, max_loss: floa
34663466
):
34673467
return True, 'signal_stoploss_u_e_b_2'
34683468

3469-
# Under EMA200, pair and BTC negative, low max rate
3470-
if (
3471-
(-0.04 > current_profit > -0.07)
3472-
and (last_candle['ema_vwma_osc_32'] < 0.0)
3473-
and (last_candle['ema_vwma_osc_64'] < 0.0)
3474-
and (max_profit < 0.005)
3475-
and (max_loss < 0.07)
3476-
and (last_candle['sma_200_dec_24'])
3477-
and (last_candle['close'] < last_candle['ema_200'])
3478-
and (last_candle['ema_25'] < last_candle['ema_50'])
3479-
and (last_candle['cmf'] < -0.0)
3480-
and (last_candle['r_480'] < -50.0)
3481-
and (last_candle['btc_not_downtrend_1h'] == False)
3482-
):
3483-
return True, 'signal_stoploss_u_e_b_3'
3484-
3485-
3486-
# Under EMA200, pair & BTC negative, low max rate, short trade duration
3487-
if (
3488-
(-0.04 > current_profit > -0.09)
3489-
and (max_profit < 0.005)
3490-
and (max_loss < 0.09)
3491-
and (last_candle['close'] < last_candle['ema_200'])
3492-
and (last_candle['ema_25'] < last_candle['ema_50'])
3493-
and (last_candle['ema_vwma_osc_32'] < 0.0 )
3494-
and (last_candle['ema_vwma_osc_64'] < 0.0)
3495-
and (last_candle['ema_vwma_osc_96'] < 0.0)
3496-
and (last_candle['cmf'] < -0.1)
3497-
and (last_candle['r_480'] < -75.0)
3498-
and (last_candle['close'] < last_candle['sup_level_1h'])
3499-
and (current_time - timedelta(minutes=60) < trade.open_date_utc)
3500-
and (last_candle['btc_not_downtrend_1h'] == False)
3501-
):
3502-
return True, 'signal_stoploss_u_e_b_4'
3503-
3504-
# Under EMA200, pair & BTC negative, low max rate, short trade duration
3505-
if (
3506-
(-0.04 > current_profit > -0.09)
3507-
and (max_profit < 0.015)
3508-
and (max_loss < 0.09)
3509-
and (last_candle['close'] < last_candle['ema_200'])
3510-
and (last_candle['ema_25'] < last_candle['ema_50'])
3511-
and (last_candle['ema_vwma_osc_32'] < 0.0 )
3512-
and (last_candle['ema_vwma_osc_64'] < 0.0)
3513-
and (last_candle['ema_vwma_osc_96'] < 0.0)
3514-
and (last_candle['cmf'] < -0.2)
3515-
and (last_candle['close'] < last_candle['sup_level_1h'])
3516-
and (current_time - timedelta(minutes=180) < trade.open_date_utc)
3517-
and (last_candle['btc_not_downtrend_1h'] == False)
3518-
):
3519-
return True, 'signal_stoploss_u_e_b_5'
3520-
3521-
# Under EMA200, pair & BTC negative, low max rate, short trade duration
3522-
if (
3523-
(-0.04 > current_profit > -0.1)
3524-
and (max_profit < 0.015)
3525-
and (last_candle['close'] < last_candle['ema_200'])
3526-
and (last_candle['ema_25'] < last_candle['ema_50'])
3527-
and (last_candle['ema_vwma_osc_32'] < 0.0 )
3528-
and (last_candle['ema_vwma_osc_64'] < 0.0)
3529-
and (last_candle['ema_vwma_osc_96'] < 0.0)
3530-
and (last_candle['cmf'] < -0.25)
3531-
and (last_candle['r_480'] < -75.0)
3532-
and (last_candle['close'] < last_candle['sup_level_1h'])
3533-
and (current_time - timedelta(minutes=60) < trade.open_date_utc)
3534-
and (last_candle['btc_not_downtrend_1h'] == False)
3535-
):
3536-
return True, 'signal_stoploss_u_e_b_6'
3537-
35383469
return False, None
35393470

35403471
def sell_pump_dec(self, current_profit: float, last_candle) -> tuple:

0 commit comments

Comments
 (0)