Skip to content

Commit 46495bc

Browse files
committed
X7: signal 46: add protection.
1 parent 2573c08 commit 46495bc

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

NostalgiaForInfinityX7.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class NostalgiaForInfinityX7(IStrategy):
6969
INTERFACE_VERSION = 3
7070

7171
def version(self) -> str:
72-
return "v17.3.842"
72+
return "v17.3.843"
7373

7474
stoploss = -0.99
7575

@@ -16867,6 +16867,10 @@ def populate_entry_trend(self, df: DataFrame, metadata: dict) -> DataFrame:
1686716867
long_entry_logic.append(
1686816868
(df["RSI_3_15m"] > 10.0) | (df["RSI_3_4h"] > 20.0) | (df["STOCHRSIk_14_14_3_3_4h"] < 30.0)
1686916869
)
16870+
# 15m & 4h down move, 1d high
16871+
long_entry_logic.append(
16872+
(df["RSI_3_15m"] > 10.0) | (df["RSI_3_4h"] > 30.0) | (df["STOCHRSIk_14_14_3_3_1d"] < 90.0)
16873+
)
1687016874
# 15m down move, 4h still high, 1d high
1687116875
long_entry_logic.append((df["RSI_3_15m"] > 10.0) | (df["AROONU_14_4h"] < 50.0) | (df["AROONU_14_1d"] < 90.0))
1687216876
# 15m & 1h down move, 4h high
@@ -16953,6 +16957,10 @@ def populate_entry_trend(self, df: DataFrame, metadata: dict) -> DataFrame:
1695316957
long_entry_logic.append((df["RSI_3_1h"] > 15.0) | (df["RSI_3_4h"] > 20.0) | (df["ROC_9_1d"] < 50.0))
1695416958
# 1h & 4h & 1d down move
1695516959
long_entry_logic.append((df["RSI_3_1h"] > 15.0) | (df["RSI_3_4h"] > 25.0) | (df["RSI_3_1d"] > 25.0))
16960+
# 1h & 4h down move, 1d high
16961+
long_entry_logic.append(
16962+
(df["RSI_3_1h"] > 15.0) | (df["RSI_3_4h"] > 30.0) | (df["STOCHRSIk_14_14_3_3_1d"] < 80.0)
16963+
)
1695616964
# 1h & 4h down move, 1h & 4h still high
1695716965
long_entry_logic.append(
1695816966
(df["RSI_3_1h"] > 15.0) | (df["RSI_3_4h"] > 40.0) | (df["RSI_14_1h"] < 40.0) | (df["RSI_14_4h"] < 50.0)

0 commit comments

Comments
 (0)