Skip to content

Commit e5e9810

Browse files
committed
X7: signal 62: add protection.
1 parent a9d4c40 commit e5e9810

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

NostalgiaForInfinityX7.py

Lines changed: 7 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.767"
72+
return "v17.3.768"
7373

7474
stoploss = -0.99
7575

@@ -17281,6 +17281,10 @@ def populate_entry_trend(self, df: DataFrame, metadata: dict) -> DataFrame:
1728117281
& ((df["RSI_3_15m"] > 10.0) | (df["RSI_3_4h"] > 20.0) | (df["STOCHRSIk_14_14_3_3_1d"] < 90.0))
1728217282
# 15m & 4h down move, 15m still not low enough
1728317283
& ((df["RSI_3_15m"] > 10.0) | (df["RSI_3_4h"] > 15.0) | (df["AROONU_14_15m"] < 20.0))
17284+
# 15m & 4h down move, 4h still not low enough
17285+
& ((df["RSI_3_15m"] > 10.0) | (df["RSI_3_4h"] > 20.0) | (df["STOCHRSIk_14_14_3_3_4h"] < 30.0))
17286+
# 15m & 4h down move, 1d high
17287+
& ((df["RSI_3_15m"] > 10.0) | (df["RSI_3_4h"] > 20.0) | (df["STOCHRSIk_14_14_3_3_1d"] < 70.0))
1728417288
# 15m & 4h down move, 4h downtrend
1728517289
& ((df["RSI_3_15m"] > 10.0) | (df["RSI_3_4h"] > 25.0) | (df["CMF_20_4h"] > -0.30))
1728617290
# 15m & 4h down move, 1d overbought
@@ -17437,6 +17441,8 @@ def populate_entry_trend(self, df: DataFrame, metadata: dict) -> DataFrame:
1743717441
& ((df["RSI_3_4h"] > 5.0) | (df["AROONU_14_4h"] < 60.0))
1743817442
# 4h & 1d down move, 1d still not low enough
1743917443
& ((df["RSI_3_4h"] > 10.0) | (df["RSI_3_1d"] > 15.0) | (df["AROONU_14_1d"] < 30.0))
17444+
# 1h & 4h down move, 1d high
17445+
& ((df["RSI_3_1h"] > 15.0) | (df["RSI_3_4h"] > 15.0) | (df["STOCHRSIk_14_14_3_3_1d"] < 70.0))
1744017446
# 4h down move, 1h downtrend, 1d downtrend
1744117447
& ((df["RSI_3_4h"] > 15.0) | (df["CMF_20_1h"] > -0.40) | (df["ROC_9_1d"] > -20.0))
1744217448
# 4h down move, 15m high, 1d overbought

0 commit comments

Comments
 (0)