Skip to content

Commit 6cace20

Browse files
committed
X7: signal 6: add protection.
1 parent 0d789ed commit 6cace20

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

NostalgiaForInfinityX7.py

Lines changed: 8 additions & 2 deletions
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.844"
72+
return "v17.3.845"
7373

7474
stoploss = -0.99
7575

@@ -14251,8 +14251,14 @@ def populate_entry_trend(self, df: DataFrame, metadata: dict) -> DataFrame:
1425114251
& ((df["RSI_3_15m"] > 20.0) | (df["RSI_3_1d"] > 30.0) | (df["STOCHRSIk_14_14_3_3_15m"] < 50.0))
1425214252
# 15m down move, 15m still not low enough, 1h high
1425314253
& ((df["RSI_3_15m"] > 20.0) | (df["AROONU_14_15m"] < 25.0) | (df["STOCHRSIk_14_14_3_3_1h"] < 90.0))
14254+
# 15m down move, 15m still high, 1h high
14255+
& ((df["RSI_3_15m"] > 20.0) | (df["AROONU_14_15m"] < 40.0) | (df["AROONU_14_1h"] < 70.0))
14256+
# 15m down move, 15m still high, 4h high
14257+
& ((df["RSI_3_15m"] > 20.0) | (df["AROONU_14_15m"] < 40.0) | (df["AROONU_14_4h"] < 70.0))
1425414258
# 15m down move, 1h & 4h high
1425514259
& ((df["RSI_3_15m"] > 20.0) | (df["AROONU_14_1h"] < 80.0) | (df["AROONU_14_4h"] < 80.0))
14260+
# 15m down move, 1h high, 1d overbought
14261+
& ((df["RSI_3_15m"] > 20.0) | (df["AROONU_14_1h"] < 80.0) | (df["ROC_9_1d"] < 10.0))
1425614262
# 15m down move, 4h high & overbought
1425714263
& ((df["RSI_3_15m"] > 20.0) | (df["AROONU_14_4h"] < 70.0) | (df["ROC_9_4h"] < 30.0))
1425814264
# 15m down move, 4h high, 1h overbought
@@ -14566,7 +14572,7 @@ def populate_entry_trend(self, df: DataFrame, metadata: dict) -> DataFrame:
1456614572
# 1h high, 4h &1d overbought
1456714573
& ((df["AROONU_14_1h"] < 85.0) | (df["ROC_9_4h"] < 30.0) | (df["ROC_9_1d"] < 30.0))
1456814574
# 1h high, 4h & 1d overbought
14569-
& ((df["AROONU_14_1h"] < 90.0) | (df["ROC_9_4h"] < 10.0) | (df["ROC_9_1d"] < 20.0))
14575+
& ((df["AROONU_14_1h"] < 90.0) | (df["ROC_9_4h"] < 10.0) | (df["ROC_9_1d"] < 15.0))
1457014576
# 4h & 1d high, 4h overbought
1457114577
& ((df["AROONU_14_4h"] < 70.0) | (df["AROONU_14_1d"] < 100.0) | (df["ROC_9_4h"] < 50.0))
1457214578
# 4h & 1d high, 4h overbought

0 commit comments

Comments
 (0)