Skip to content

Commit 545e649

Browse files
committed
Buy 54: 15m Semi swing. Uptrend. Local dip.
1 parent c71de31 commit 545e649

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
@@ -233,6 +233,7 @@ class NostalgiaForInfinityX(IStrategy):
233233
"buy_condition_51_enable": True,
234234
"buy_condition_52_enable": True,
235235
"buy_condition_53_enable": True,
236+
"buy_condition_54_enable": True,
236237
#############
237238
}
238239

@@ -1728,6 +1729,34 @@ class NostalgiaForInfinityX(IStrategy):
17281729
"close_over_pivot_offset" : 1.0,
17291730
"close_under_pivot_type" : "none", # pivot, sup1, sup2, sup3, res1, res2, res3
17301731
"close_under_pivot_offset" : 1.0
1732+
},
1733+
54: {
1734+
"ema_fast" : False,
1735+
"ema_fast_len" : "50",
1736+
"ema_slow" : False,
1737+
"ema_slow_len" : "50",
1738+
"close_above_ema_fast" : False,
1739+
"close_above_ema_fast_len" : "200",
1740+
"close_above_ema_slow" : False,
1741+
"close_above_ema_slow_len" : "200",
1742+
"sma200_rising" : False,
1743+
"sma200_rising_val" : "42",
1744+
"sma200_1h_rising" : False,
1745+
"sma200_1h_rising_val" : "50",
1746+
"safe_dips_threshold_0" : 0.032,
1747+
"safe_dips_threshold_2" : 0.09,
1748+
"safe_dips_threshold_12" : None,
1749+
"safe_dips_threshold_144" : None,
1750+
"safe_pump_6h_threshold" : 0.5,
1751+
"safe_pump_12h_threshold" : None,
1752+
"safe_pump_24h_threshold" : None,
1753+
"safe_pump_36h_threshold" : 0.95,
1754+
"safe_pump_48h_threshold" : 1.05,
1755+
"btc_1h_not_downtrend" : False,
1756+
"close_over_pivot_type" : "none", # pivot, sup1, sup2, sup3, res1, res2, res3
1757+
"close_over_pivot_offset" : 1.0,
1758+
"close_under_pivot_type" : "none", # pivot, sup1, sup2, sup3, res1, res2, res3
1759+
"close_under_pivot_offset" : 1.0
17311760
}
17321761
}
17331762

@@ -7056,6 +7085,17 @@ def populate_buy_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
70567085
item_buy_logic.append(dataframe['r_14'] < -90.0)
70577086
item_buy_logic.append(dataframe['cti_1h'] > -0.7)
70587087

7088+
# Condition #54 - 15m Semi swing. Uptrend. Local dip.
7089+
elif index == 54:
7090+
# Non-Standard protections
7091+
item_buy_logic.append(dataframe['ema_12_15m'] > dataframe['ema_200_15m'])
7092+
7093+
# Logic
7094+
item_buy_logic.append(dataframe['ewo_15m'] > 7.4)
7095+
item_buy_logic.append(dataframe['r_14_15m'] < -96.0)
7096+
item_buy_logic.append(dataframe['r_96_15m'] < -94.0)
7097+
item_buy_logic.append(dataframe['r_14'] < -96.0)
7098+
70597099
item_buy_logic.append(dataframe['volume'] > 0)
70607100
item_buy = reduce(lambda x, y: x & y, item_buy_logic)
70617101
dataframe.loc[item_buy, 'buy_tag'] += f"{index} "

0 commit comments

Comments
 (0)