Skip to content

Commit a80fe24

Browse files
committed
Buy 36: rework.
1 parent 909ed06 commit a80fe24

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

NostalgiaForInfinityX.py

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,8 +1236,8 @@ class NostalgiaForInfinityX(IStrategy):
12361236
"close_under_pivot_offset" : 1.0
12371237
},
12381238
36: {
1239-
"ema_fast" : False,
1240-
"ema_fast_len" : "50",
1239+
"ema_fast" : True,
1240+
"ema_fast_len" : "16",
12411241
"ema_slow" : False,
12421242
"ema_slow_len" : "12",
12431243
"close_above_ema_fast" : False,
@@ -1248,20 +1248,20 @@ class NostalgiaForInfinityX(IStrategy):
12481248
"sma200_rising_val" : "30",
12491249
"sma200_1h_rising" : False,
12501250
"sma200_1h_rising_val" : "50",
1251-
"safe_dips_threshold_0" : 0.028,
1251+
"safe_dips_threshold_0" : 0.032,
12521252
"safe_dips_threshold_2" : 0.09,
1253-
"safe_dips_threshold_12" : None,
1253+
"safe_dips_threshold_12" : 0.14,
12541254
"safe_dips_threshold_144" : None,
12551255
"safe_pump_6h_threshold" : 0.5,
12561256
"safe_pump_12h_threshold" : None,
12571257
"safe_pump_24h_threshold" : None,
12581258
"safe_pump_36h_threshold" : None,
1259-
"safe_pump_48h_threshold" : None,
1259+
"safe_pump_48h_threshold" : 1.6,
12601260
"btc_1h_not_downtrend" : False,
12611261
"close_over_pivot_type" : "none", # pivot, sup1, sup2, sup3, res1, res2, res3
12621262
"close_over_pivot_offset" : 1.0,
1263-
"close_under_pivot_type" : "none", # pivot, sup1, sup2, sup3, res1, res2, res3
1264-
"close_under_pivot_offset" : 1.0
1263+
"close_under_pivot_type" : "res3", # pivot, sup1, sup2, sup3, res1, res2, res3
1264+
"close_under_pivot_offset" : 1.45
12651265
},
12661266
37: {
12671267
"ema_fast" : False,
@@ -7987,10 +7987,12 @@ def populate_buy_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
79877987
item_buy_logic.append(dataframe['ema_200'] > (dataframe['ema_200'].shift(36) * 1.035))
79887988

79897989
# Logic
7990-
item_buy_logic.append(dataframe['close'] < dataframe['ema_20'] * 0.956)
7990+
item_buy_logic.append(dataframe['close'] < dataframe['ema_20'] * 0.97)
79917991
item_buy_logic.append(dataframe['rsi_14'] < 34.0)
7992+
item_buy_logic.append(dataframe['r_14'] < -90.0)
79927993
item_buy_logic.append(dataframe['r_64'] < -80.0)
7993-
item_buy_logic.append(dataframe['cti'] < -0.5)
7994+
item_buy_logic.append(dataframe['cti'] < -0.9)
7995+
item_buy_logic.append(dataframe['volume_mean_12'] > (dataframe['volume_mean_24'] * 0.75))
79947996
item_buy_logic.append(dataframe['r_480_1h'] < -30.0)
79957997

79967998
# Condition #37 - Semi swing. Uptrend. Local dip.

0 commit comments

Comments
 (0)