@@ -1029,58 +1029,6 @@ def sell_stoploss(self, current_profit: float, max_profit: float, max_loss: floa
10291029 ):
10301030 return True , 'sell_stoploss_u_e_2'
10311031
1032- # Under EMA200, pair negative, low max rate
1033- if (
1034- (- 0.04 > current_profit > - 0.07 )
1035- and (max_profit < 0.005 )
1036- and (max_loss < 0.07 )
1037- and (last_candle ['close' ] < last_candle ['ema_200' ])
1038- and (last_candle ['ema_25' ] < last_candle ['ema_50' ])
1039- and (last_candle ['ema_vwma_osc_32' ] < 0.0 )
1040- and (last_candle ['ema_vwma_osc_64' ] < 0.0 )
1041- and (last_candle ['ema_vwma_osc_96' ] < 0.0 )
1042- and (last_candle ['cmf' ] < - 0.0 )
1043- and (current_time - timedelta (minutes = 30 ) > trade .open_date_utc )
1044- ):
1045- return True , 'sell_stoploss_u_e_3'
1046-
1047- # Under EMA200, pair negative, long duration, max rate over a specific value
1048- if (
1049- (- 0.04 > current_profit > - 0.07 )
1050- and (max_loss < 0.07 )
1051- and (max_profit > 0.06 )
1052- and (max_profit > (current_profit + 0.1 ))
1053- and (last_candle ['close' ] < last_candle ['ema_200' ])
1054- and (last_candle ['ema_25' ] < last_candle ['ema_50' ])
1055- and (last_candle ['sma_200_dec_24' ])
1056- and (last_candle ['sma_200_dec_20_1h' ])
1057- and (last_candle ['ema_vwma_osc_32' ] < 0.0 )
1058- and (last_candle ['ema_vwma_osc_64' ] < 0.0 )
1059- and (last_candle ['ema_vwma_osc_96' ] < 0.0 )
1060- and (last_candle ['cmf' ] < - 0.0 )
1061- and (last_candle ['close' ] < last_candle ['sup_level_1h' ])
1062- and (current_time - timedelta (minutes = 720 ) > trade .open_date_utc )
1063- ):
1064- return True , 'sell_stoploss_u_e_4'
1065-
1066- # Under EMA200, pair negative, low max rate, short trade duration
1067- if (
1068- (- 0.04 > current_profit > - 0.07 )
1069- and (max_profit < 0.015 )
1070- and (max_loss < 0.07 )
1071- and (last_candle ['close' ] < last_candle ['ema_200' ])
1072- and (last_candle ['ema_25' ] < last_candle ['ema_50' ])
1073- and (last_candle ['sma_200_dec_24' ])
1074- and (last_candle ['sma_200_dec_20_1h' ])
1075- and (last_candle ['ema_vwma_osc_32' ] < 0.0 )
1076- and (last_candle ['ema_vwma_osc_64' ] < 0.0 )
1077- and (last_candle ['ema_vwma_osc_96' ] < 0.0 )
1078- and (last_candle ['cmf' ] < - 0.0 )
1079- and (last_candle ['close' ] < last_candle ['sup_level_1h' ])
1080- and (current_time - timedelta (minutes = 120 ) < trade .open_date_utc )
1081- ):
1082- return True , 'sell_stoploss_u_e_5'
1083-
10841032 # Under EMA200, pair negative, low max rate
10851033 if (
10861034 (current_profit < - 0.08 )
0 commit comments