You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ifself.sell_condition_1_enableand (last_candle['rsi_14'] >self.sell_rsi_bb_1) and (last_candle['close'] >last_candle['bb20_2_upp']) and (previous_candle_1['close'] >previous_candle_1['bb20_2_upp']) and (previous_candle_2['close'] >previous_candle_2['bb20_2_upp']) and (previous_candle_3['close'] >previous_candle_3['bb20_2_upp']) and (previous_candle_4['close'] >previous_candle_4['bb20_2_upp']) and (previous_candle_5['close'] >previous_candle_5['bb20_2_upp']):
3395
3395
if (last_candle['close'] >last_candle['ema_200']):
3396
-
if (current_profit>0.0):
3396
+
if (current_profit>0.01):
3397
3397
returnf"sell_signal_1_1_1 ( {buy_tag} )"
3398
3398
else:
3399
-
if (current_profit>0.0):
3399
+
if (current_profit>0.01):
3400
3400
returnf"sell_signal_1_2_1 ( {buy_tag} )"
3401
3401
elif (max_loss>0.25):
3402
3402
returnf"sell_signal_1_2_2 ( {buy_tag} )"
3403
3403
3404
3404
# Sell signal 2
3405
3405
elif (self.sell_condition_2_enable) and (last_candle['rsi_14'] >self.sell_rsi_bb_2) and (last_candle['close'] >last_candle['bb20_2_upp']) and (previous_candle_1['close'] >previous_candle_1['bb20_2_upp']) and (previous_candle_2['close'] >previous_candle_2['bb20_2_upp']):
3406
3406
if (last_candle['close'] >last_candle['ema_200']):
3407
-
if (current_profit>0.0):
3407
+
if (current_profit>0.01):
3408
3408
returnf"sell_signal_2_1_1 ( {buy_tag} )"
3409
3409
else:
3410
-
if (current_profit>0.0):
3410
+
if (current_profit>0.01):
3411
3411
returnf"sell_signal_2_2_1 ( {buy_tag} )"
3412
3412
elif (max_loss>0.25):
3413
3413
returnf"sell_signal_2_2_2 ( {buy_tag} )"
3414
3414
3415
3415
# Sell signal 3
3416
3416
elif (self.sell_condition_3_enable) and (last_candle['rsi_14'] >self.sell_rsi_main_3):
3417
3417
if (last_candle['close'] >last_candle['ema_200']):
3418
-
if (current_profit>0.0):
3418
+
if (current_profit>0.01):
3419
3419
returnf"sell_signal_3_1_1 ( {buy_tag} )"
3420
3420
else:
3421
-
if (current_profit>0.0):
3421
+
if (current_profit>0.01):
3422
3422
returnf"sell_signal_3_2_1 ( {buy_tag} )"
3423
3423
elif (max_loss>0.25):
3424
3424
returnf"sell_signal_3_2_2 ( {buy_tag} )"
3425
3425
3426
3426
# Sell signal 4
3427
3427
elifself.sell_condition_4_enableand (last_candle['rsi_14'] >self.sell_dual_rsi_rsi_4) and (last_candle['rsi_14_1h'] >self.sell_dual_rsi_rsi_1h_4):
3428
3428
if (last_candle['close'] >last_candle['ema_200']):
3429
-
if (current_profit>0.0):
3429
+
if (current_profit>0.01):
3430
3430
returnf"sell_signal_4_1_1 ( {buy_tag} )"
3431
3431
else:
3432
-
if (current_profit>0.0):
3432
+
if (current_profit>0.01):
3433
3433
returnf"sell_signal_4_2_1 ( {buy_tag} )"
3434
3434
elif (max_loss>0.25):
3435
3435
returnf"sell_signal_4_2_2 ( {buy_tag} )"
3436
3436
3437
3437
# Sell signal 6
3438
3438
elifself.sell_condition_6_enableand (last_candle['close'] <last_candle['ema_200']) and (last_candle['close'] >last_candle['ema_50']) and (last_candle['rsi_14'] >self.sell_rsi_under_6):
3439
-
if (current_profit>0.0):
3439
+
if (current_profit>0.01):
3440
3440
returnf"sell_signal_6_1 ( {buy_tag} )"
3441
3441
elif (max_loss>0.25):
3442
3442
returnf"sell_signal_6_2 ( {buy_tag} )"
3443
3443
3444
3444
# Sell signal 7
3445
3445
elifself.sell_condition_7_enableand (last_candle['rsi_14_1h'] >self.sell_rsi_1h_7) and (last_candle['crossed_below_ema_12_26']):
3446
3446
if (last_candle['close'] >last_candle['ema_200']):
0 commit comments