Skip to content

Commit 87cafef

Browse files
committed
Buy 11: rework.
1 parent 40c3d23 commit 87cafef

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

NostalgiaForInfinityX.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -537,18 +537,18 @@ class NostalgiaForInfinityX(IStrategy):
537537
"sma200_rising_val" : "30",
538538
"sma200_1h_rising" : False,
539539
"sma200_1h_rising_val" : "50",
540-
"safe_dips_threshold_0" : 0.028,
540+
"safe_dips_threshold_0" : 0.032,
541541
"safe_dips_threshold_2" : 0.09,
542542
"safe_dips_threshold_12" : 0.48,
543543
"safe_dips_threshold_144" : 0.9,
544-
"safe_pump_6h_threshold" : 0.4,
544+
"safe_pump_6h_threshold" : 0.5,
545545
"safe_pump_12h_threshold" : None,
546546
"safe_pump_24h_threshold" : None,
547-
"safe_pump_36h_threshold" : 0.9,
547+
"safe_pump_36h_threshold" : 0.88,
548548
"safe_pump_48h_threshold" : None,
549549
"btc_1h_not_downtrend" : False,
550-
"close_over_pivot_type" : "sup2", # pivot, sup1, sup2, sup3, res1, res2, res3
551-
"close_over_pivot_offset" : 1.0,
550+
"close_over_pivot_type" : "sup3", # pivot, sup1, sup2, sup3, res1, res2, res3
551+
"close_over_pivot_offset" : 1.06,
552552
"close_under_pivot_type" : "none", # pivot, sup1, sup2, sup3, res1, res2, res3
553553
"close_under_pivot_offset" : 1.0
554554
},
@@ -5656,11 +5656,10 @@ def populate_buy_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
56565656

56575657
# Logic
56585658
item_buy_logic.append(dataframe['ema_26'] > dataframe['ema_12'])
5659-
item_buy_logic.append((dataframe['ema_26'] - dataframe['ema_12']) > (dataframe['open'] * 0.024))
5659+
item_buy_logic.append((dataframe['ema_26'] - dataframe['ema_12']) > (dataframe['open'] * 0.027))
56605660
item_buy_logic.append((dataframe['ema_26'].shift() - dataframe['ema_12'].shift()) > (dataframe['open'] / 100))
5661-
item_buy_logic.append(dataframe['close'] < dataframe['ema_20'] * 0.935)
5662-
item_buy_logic.append(dataframe['rsi_14'] < 20.0) # 28.0 20.0
5663-
item_buy_logic.append(dataframe['crsi_1h'] > 14.0)
5661+
item_buy_logic.append(dataframe['close'] < dataframe['ema_20'] * 0.932)
5662+
item_buy_logic.append(dataframe['rsi_14'] < 25.0)
56645663

56655664
# Condition #12 - Semi swing. Local deeper dip. Uptrend.
56665665
elif index == 12:

0 commit comments

Comments
 (0)