@@ -1273,7 +1273,7 @@ class NostalgiaForInfinityNext(IStrategy):
12731273 "sma200_1h_rising" : False ,
12741274 "sma200_1h_rising_val" : "20" ,
12751275 "safe_dips" : True ,
1276- "safe_dips_type" : "70 " ,
1276+ "safe_dips_type" : "80 " ,
12771277 "safe_pump" : False ,
12781278 "safe_pump_type" : "100" ,
12791279 "safe_pump_period" : "24" ,
@@ -1880,13 +1880,13 @@ class NostalgiaForInfinityNext(IStrategy):
18801880 buy_42_ema_open_mult = 0.018
18811881 buy_42_bb_offset = 0.992
18821882
1883- buy_43_cti_1h = 0.5
1884- buy_43_r_1h = - 80.0
1885- buy_43_bb40_bbdelta_close = 0.046
1883+ buy_43_bb40_bbdelta_close = 0.045
18861884 buy_43_bb40_closedelta_close = 0.02
18871885 buy_43_bb40_tail_bbdelta = 0.5
1888- buy_43_cti = - 0.6
1889- buy_43_r = - 90.0
1886+ buy_43_cti_max = - 0.75
1887+ buy_43_r_480_min = - 94.0
1888+ buy_43_cti_1h_max = 0.45
1889+ buy_43_r_480_1h_min = - 80.0
18901890
18911891 buy_44_ma_offset = 0.982
18921892 buy_44_ewo = - 18.0
@@ -3858,12 +3858,12 @@ def custom_sell(self, pair: str, trade: 'Trade', current_time: 'datetime', curre
38583858 return f"{ signal_name } ( { buy_tag } )"
38593859
38603860 # Stoplosses
3861- if any (c in ['empty' , '10' , ' 13' , '14' , '15' , '16' , '17' , '18' , '20' , '21' , '22' , '23' , '24' , '25' , '26' , '27' , '28' , '29' , '30' , '31' , '32' , '33' , '34' , '35' , '36' , '37' , '38' , '40' , '41' , '42' , '43 ' , '44' , '45' , '46' , '47' , '48' ] for c in buy_tags ):
3861+ if any (c in ['empty' , '13' , '14' , '15' , '16' , '17' , '18' , '20' , '21' , '22' , '23' , '24' , '25' , '26' , '27' , '28' , '29' , '30' , '31' , '32' , '33' , '34' , '35' , '36' , '37' , '38' , '40' , '41' , '42' , '44' , '45' , '46' , '47' , '48' ] for c in buy_tags ):
38623862 sell , signal_name = self .sell_stoploss_atr (current_profit , last_candle , previous_candle_1 , trade , current_time )
38633863 if sell and (signal_name is not None ):
38643864 return f"{ signal_name } ( { buy_tag } )"
38653865
3866- if any (c in ['empty' , '1' , '2' , '3' , '4' , '5' , '6' , '7' , '8' , '9' , '11' , '12' , '19' , '39' ] for c in buy_tags ):
3866+ if any (c in ['empty' , '1' , '2' , '3' , '4' , '5' , '6' , '7' , '8' , '9' , '10' , ' 11' , '12' , '19' , '39' , '43 ' ] for c in buy_tags ):
38673867 sell , signal_name = self .sell_stoploss_extra (current_profit , max_profit , max_loss , last_candle , previous_candle_1 , trade , current_time )
38683868 if sell and (signal_name is not None ):
38693869 return f"{ signal_name } ( { buy_tag } )"
@@ -5180,16 +5180,16 @@ def populate_buy_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
51805180 # Logic
51815181 item_buy_logic .append (dataframe ['ema_200_1h' ] > dataframe ['ema_200_1h' ].shift (12 ))
51825182 item_buy_logic .append (dataframe ['ema_200_1h' ].shift (12 ) > dataframe ['ema_200_1h' ].shift (24 ))
5183- item_buy_logic .append (dataframe ['cti_1h' ] < self .buy_43_cti_1h )
5184- item_buy_logic .append (dataframe ['r_480_1h' ] > self .buy_43_r_1h )
51855183 item_buy_logic .append (dataframe ['bb40_2_low' ].shift ().gt (0 ))
51865184 item_buy_logic .append (dataframe ['bb40_2_delta' ].gt (dataframe ['close' ] * self .buy_43_bb40_bbdelta_close ))
51875185 item_buy_logic .append (dataframe ['closedelta' ].gt (dataframe ['close' ] * self .buy_43_bb40_closedelta_close ))
51885186 item_buy_logic .append (dataframe ['tail' ].lt (dataframe ['bb40_2_delta' ] * self .buy_43_bb40_tail_bbdelta ))
51895187 item_buy_logic .append (dataframe ['close' ].lt (dataframe ['bb40_2_low' ].shift ()))
51905188 item_buy_logic .append (dataframe ['close' ].le (dataframe ['close' ].shift ()))
5191- item_buy_logic .append (dataframe ['cti' ] < self .buy_43_cti )
5192- item_buy_logic .append (dataframe ['r_480' ] > self .buy_43_r )
5189+ item_buy_logic .append (dataframe ['cti' ] < self .buy_43_cti_max )
5190+ item_buy_logic .append (dataframe ['r_480' ] > self .buy_43_r_480_min )
5191+ item_buy_logic .append (dataframe ['cti_1h' ] < self .buy_43_cti_1h_max )
5192+ item_buy_logic .append (dataframe ['r_480_1h' ] > self .buy_43_r_480_1h_min )
51935193
51945194 # Condition #44
51955195 elif index == 44 :
0 commit comments