Skip to content

Commit 72a8c4a

Browse files
committed
Buy 12: rework.
1 parent 92e28fb commit 72a8c4a

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

NostalgiaForInfinityNext.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -525,13 +525,13 @@ class NostalgiaForInfinityNext(IStrategy):
525525
"safe_dips" : True,
526526
"safe_dips_type" : "130",
527527
"safe_pump" : True,
528-
"safe_pump_type" : "40",
528+
"safe_pump_type" : "120",
529529
"safe_pump_period" : "24",
530530
"btc_1h_not_downtrend" : False,
531531
"close_over_pivot_type" : "none", # pivot, sup1, sup2, sup3, res1, res2, res3
532532
"close_over_pivot_offset" : 1.0,
533-
"close_under_pivot_type" : "none", # pivot, sup1, sup2, sup3, res1, res2, res3
534-
"close_under_pivot_offset" : 1.0
533+
"close_under_pivot_type" : "res3", # pivot, sup1, sup2, sup3, res1, res2, res3
534+
"close_under_pivot_offset" : 1.3
535535
},
536536
13: {
537537
"ema_fast" : False,
@@ -1689,10 +1689,10 @@ class NostalgiaForInfinityNext(IStrategy):
16891689
buy_11_r_480_1h_max = -20.0
16901690
buy_11_crsi_1h_min = 26.0
16911691

1692-
buy_ma_offset_12 = 0.921
1693-
buy_rsi_12 = 28.0
1694-
buy_ewo_12 = 1.8
1695-
buy_cti_12 = -0.7
1692+
buy_ma_offset_12 = 0.928
1693+
buy_ewo_12_min = 2.0
1694+
buy_rsi_12_max = 32.0
1695+
buy_cti_12_max = -0.9
16961696

16971697
buy_13_ma_offset = 0.99
16981698
buy_13_cti = -0.82
@@ -3709,12 +3709,12 @@ def custom_sell(self, pair: str, trade: 'Trade', current_time: 'datetime', curre
37093709
return f"{signal_name} ( {buy_tag} )"
37103710

37113711
# Stoplosses
3712-
if any(c in ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '40', '41', '42', '43', '44', '45', '46', '47', '48'] for c in buy_tags):
3712+
if any(c in ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '40', '41', '42', '43', '44', '45', '46', '47', '48'] for c in buy_tags):
37133713
sell, signal_name = self.sell_stoploss_atr(current_profit, last_candle, previous_candle_1, trade, current_time)
37143714
if sell and (signal_name is not None):
37153715
return f"{signal_name} ( {buy_tag} )"
37163716

3717-
if all(c in ['11'] for c in buy_tags):
3717+
if all(c in ['11', '12'] for c in buy_tags):
37183718
sell, signal_name = self.sell_stoploss_extra(current_profit, max_profit, max_loss, last_candle, previous_candle_1, trade, current_time)
37193719
if sell and (signal_name is not None):
37203720
return f"{signal_name} ( {buy_tag} )"
@@ -4597,9 +4597,9 @@ def populate_buy_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
45974597

45984598
# Logic
45994599
item_buy_logic.append(dataframe['close'] < dataframe['sma_30'] * self.buy_ma_offset_12)
4600-
item_buy_logic.append(dataframe['ewo'] > self.buy_ewo_12)
4601-
item_buy_logic.append(dataframe['rsi_14'] < self.buy_rsi_12)
4602-
item_buy_logic.append(dataframe['cti'] < self.buy_cti_12)
4600+
item_buy_logic.append(dataframe['ewo_sma'] > self.buy_ewo_12_min)
4601+
item_buy_logic.append(dataframe['rsi_14'] < self.buy_rsi_12_max)
4602+
item_buy_logic.append(dataframe['cti'] < self.buy_cti_12_max)
46034603

46044604
# Condition #13
46054605
elif index == 13:

0 commit comments

Comments
 (0)