Skip to content

Commit 66243b4

Browse files
committed
X7: signal 3: add protection.
1 parent f822545 commit 66243b4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

NostalgiaForInfinityX7.py

Lines changed: 4 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.892"
72+
return "v17.3.893"
7373

7474
stoploss = -0.99
7575

@@ -13199,14 +13199,16 @@ def populate_entry_trend(self, df: DataFrame, metadata: dict) -> DataFrame:
1319913199
& ((df["RSI_3_1h"] > 45.0) | (df["STOCHRSIk_14_14_3_3_1h"] < 40.0) | (df["ROC_9_1d"] < 200.0))
1320013200
# 1h down move, 15m & 1h high
1320113201
& ((df["RSI_3_1h"] > 50.0) | (df["AROONU_14_15m"] < 70.0) | (df["AROONU_14_1h"] < 100.0))
13202+
# 1h down move, 1h high, 4h overbought
13203+
& ((df["RSI_3_1h"] > 50.0) | (df["AROONU_14_1h"] < 80.0) | (df["ROC_9_4h"] < 10.0))
1320213204
# 1h down move, 4h still high, 1d overbought
1320313205
& ((df["RSI_3_1h"] > 50.0) | (df["AROONU_14_4h"] < 50.0) | (df["ROC_9_1d"] < 200.0))
1320413206
# 1h down move, 4h high & overbought
1320513207
& ((df["RSI_3_1h"] > 50.0) | (df["AROONU_14_4h"] < 100.0) | (df["ROC_9_4h"] < 50.0))
1320613208
# 1h down move, 1h & 4h high
1320713209
& ((df["RSI_3_1h"] > 50.0) | (df["STOCHRSIk_14_14_3_3_1h"] < 80.0) | (df["AROONU_14_4h"] < 100.0))
1320813210
# 1h down move, 4h high & overbought
13209-
& ((df["RSI_3_1h"] > 50.0) | (df["STOCHRSIk_14_14_3_3_4h"] < 90.0) | (df["ROC_9_4h"] < 40.0))
13211+
& ((df["RSI_3_1h"] > 50.0) | (df["STOCHRSIk_14_14_3_3_4h"] < 70.0) | (df["ROC_9_4h"] < 10.0))
1321013212
# 1h down move, 1h high, 1d high
1321113213
& ((df["RSI_3_1h"] > 55.0) | (df["STOCHRSIk_14_14_3_3_1h"] < 70.0) | (df["AROONU_14_1d"] < 100.0))
1321213214
# 1h down move, 1h high, 1d downtrend

0 commit comments

Comments
 (0)