Skip to content

Commit cf2da5a

Browse files
committed
Buy 38: rework.
1 parent a80fe24 commit cf2da5a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

NostalgiaForInfinityX.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1293,7 +1293,7 @@ class NostalgiaForInfinityX(IStrategy):
12931293
},
12941294
38: {
12951295
"ema_fast" : False,
1296-
"ema_fast_len" : "50",
1296+
"ema_fast_len" : "16",
12971297
"ema_slow" : False,
12981298
"ema_slow_len" : "12",
12991299
"close_above_ema_fast" : False,
@@ -1304,9 +1304,9 @@ class NostalgiaForInfinityX(IStrategy):
13041304
"sma200_rising_val" : "30",
13051305
"sma200_1h_rising" : False,
13061306
"sma200_1h_rising_val" : "50",
1307-
"safe_dips_threshold_0" : None,
1308-
"safe_dips_threshold_2" : None,
1309-
"safe_dips_threshold_12" : None,
1307+
"safe_dips_threshold_0" : 0.032,
1308+
"safe_dips_threshold_2" : 0.09,
1309+
"safe_dips_threshold_12" : 0.16,
13101310
"safe_dips_threshold_144" : None,
13111311
"safe_pump_6h_threshold" : 0.45,
13121312
"safe_pump_12h_threshold" : None,
@@ -8013,9 +8013,8 @@ def populate_buy_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
80138013

80148014
# Logic
80158015
item_buy_logic.append(dataframe['ema_26'] > dataframe['ema_12'])
8016-
item_buy_logic.append((dataframe['ema_26'] - dataframe['ema_12']) > (dataframe['open'] * 0.02))
8016+
item_buy_logic.append((dataframe['ema_26'] - dataframe['ema_12']) > (dataframe['open'] * 0.024))
80178017
item_buy_logic.append((dataframe['ema_26'].shift() - dataframe['ema_12'].shift()) > (dataframe['open'] / 100))
8018-
item_buy_logic.append(dataframe['mfi'] < 34.5)
80198018
item_buy_logic.append(dataframe['r_64'] < -65.0)
80208019
item_buy_logic.append(dataframe['r_96'] < -50.0)
80218020
item_buy_logic.append(dataframe['r_480_1h'] < -1.0)

0 commit comments

Comments
 (0)