Skip to content

Commit 8ce53a1

Browse files
committed
Buy 55: 15m. Semi swing. Uptrend. Local dip.
1 parent e12ff97 commit 8ce53a1

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

NostalgiaForInfinityX.py

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ class NostalgiaForInfinityX(IStrategy):
234234
"buy_condition_52_enable": True,
235235
"buy_condition_53_enable": True,
236236
"buy_condition_54_enable": True,
237+
"buy_condition_55_enable": True,
237238
#############
238239
}
239240

@@ -1757,6 +1758,34 @@ class NostalgiaForInfinityX(IStrategy):
17571758
"close_over_pivot_offset" : 1.0,
17581759
"close_under_pivot_type" : "none", # pivot, sup1, sup2, sup3, res1, res2, res3
17591760
"close_under_pivot_offset" : 1.0
1761+
},
1762+
55: {
1763+
"ema_fast" : False,
1764+
"ema_fast_len" : "50",
1765+
"ema_slow" : False,
1766+
"ema_slow_len" : "50",
1767+
"close_above_ema_fast" : False,
1768+
"close_above_ema_fast_len" : "200",
1769+
"close_above_ema_slow" : False,
1770+
"close_above_ema_slow_len" : "200",
1771+
"sma200_rising" : False,
1772+
"sma200_rising_val" : "42",
1773+
"sma200_1h_rising" : False,
1774+
"sma200_1h_rising_val" : "50",
1775+
"safe_dips_threshold_0" : 0.032,
1776+
"safe_dips_threshold_2" : 0.09,
1777+
"safe_dips_threshold_12" : None,
1778+
"safe_dips_threshold_144" : None,
1779+
"safe_pump_6h_threshold" : 0.5,
1780+
"safe_pump_12h_threshold" : None,
1781+
"safe_pump_24h_threshold" : None,
1782+
"safe_pump_36h_threshold" : 0.9,
1783+
"safe_pump_48h_threshold" : 1.15,
1784+
"btc_1h_not_downtrend" : False,
1785+
"close_over_pivot_type" : "none", # pivot, sup1, sup2, sup3, res1, res2, res3
1786+
"close_over_pivot_offset" : 1.0,
1787+
"close_under_pivot_type" : "none", # pivot, sup1, sup2, sup3, res1, res2, res3
1788+
"close_under_pivot_offset" : 1.0
17601789
}
17611790
}
17621791

@@ -7096,6 +7125,17 @@ def populate_buy_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
70967125
item_buy_logic.append(dataframe['r_96_15m'] < -94.0)
70977126
item_buy_logic.append(dataframe['r_14'] < -96.0)
70987127

7128+
# Condition #55 - 15m. Semi swing. Uptrend. Local dip.
7129+
elif index == 55:
7130+
# Non-Standard protections (add below)
7131+
7132+
# Logic
7133+
item_buy_logic.append(dataframe['ewo_15m'] > 7.0)
7134+
item_buy_logic.append(dataframe['close_15m'] > (dataframe['close_15m'].shift(3)))
7135+
item_buy_logic.append(dataframe['close_15m'].shift(3) < (dataframe['bb20_2_low_15m'].shift(3) * 0.986))
7136+
item_buy_logic.append(dataframe['r_14_15m'].shift(3) < -95.0)
7137+
item_buy_logic.append(dataframe['r_96_15m'].shift(3) < -86.0)
7138+
70997139
item_buy_logic.append(dataframe['volume'] > 0)
71007140
item_buy = reduce(lambda x, y: x & y, item_buy_logic)
71017141
dataframe.loc[item_buy, 'buy_tag'] += f"{index} "

0 commit comments

Comments
 (0)