Skip to content

Commit 643f5aa

Browse files
committed
Buy 2: rework.
1 parent f2e13fc commit 643f5aa

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

NostalgiaForInfinityX.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ class NostalgiaForInfinityX(IStrategy):
276276
"close_under_pivot_offset" : 1.0
277277
},
278278
2: {
279-
"ema_fast" : True,
279+
"ema_fast" : False,
280280
"ema_fast_len" : "50",
281281
"ema_slow" : True,
282282
"ema_slow_len" : "20",
@@ -292,7 +292,7 @@ class NostalgiaForInfinityX(IStrategy):
292292
"safe_dips_threshold_2" : 0.06,
293293
"safe_dips_threshold_12" : 0.3,
294294
"safe_dips_threshold_144" : None,
295-
"safe_pump_6h_threshold" : 0.4,
295+
"safe_pump_6h_threshold" : 0.5,
296296
"safe_pump_12h_threshold" : None,
297297
"safe_pump_24h_threshold" : None,
298298
"safe_pump_36h_threshold" : None,
@@ -301,7 +301,7 @@ class NostalgiaForInfinityX(IStrategy):
301301
"close_over_pivot_type" : "none", # pivot, sup1, sup2, sup3, res1, res2, res3
302302
"close_over_pivot_offset" : 1.0,
303303
"close_under_pivot_type" : "none", # pivot, sup1, sup2, sup3, res1, res2, res3
304-
"close_under_pivot_offset" : 1.4
304+
"close_under_pivot_offset" : 1.0
305305
},
306306
3: {
307307
"ema_fast" : False,
@@ -6647,13 +6647,12 @@ def populate_buy_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
66476647
# Non-Standard protections
66486648

66496649
# Logic
6650-
item_buy_logic.append(dataframe['rsi_14'] < (dataframe['rsi_14_1h'] - 47.5))
6650+
item_buy_logic.append(dataframe['rsi_14'] < (dataframe['rsi_14_1h'] - 47.0))
66516651
item_buy_logic.append(dataframe['mfi'] < 46.0)
66526652
item_buy_logic.append(dataframe['cti'] < -0.8)
6653-
item_buy_logic.append(dataframe['r_14'] < -99.0)
6653+
item_buy_logic.append(dataframe['r_14'] < -98.0)
66546654
item_buy_logic.append(dataframe['r_480'] > -95.0)
6655-
item_buy_logic.append(dataframe['r_480'] < -20.0)
6656-
item_buy_logic.append(dataframe['cti_1h'] < 0.88)
6655+
item_buy_logic.append(dataframe['cti_1h'] < 0.82)
66576656

66586657
# Condition #3 - Semi swing. Local dip.
66596658
elif index == 3:

0 commit comments

Comments
 (0)