Skip to content

Commit 08f5434

Browse files
committed
X7: signal 45: add protection.
1 parent daa2701 commit 08f5434

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

NostalgiaForInfinityX7.py

Lines changed: 7 additions & 3 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.655"
72+
return "v17.3.656"
7373

7474
stoploss = -0.99
7575

@@ -16287,8 +16287,10 @@ def populate_entry_trend(self, df: DataFrame, metadata: dict) -> DataFrame:
1628716287
long_entry_logic.append(
1628816288
(df["RSI_3_15m"] > 10.0) | (df["RSI_3_4h"] > 10.0) | (df["STOCHRSIk_14_14_3_3_4h"] < 30.0)
1628916289
)
16290-
# 15m & 1h down move, 1h high
16291-
long_entry_logic.append((df["RSI_3_15m"] > 30.0) | (df["RSI_3_1h"] > 30.0) | (df["AROONU_14_1h"] < 70.0))
16290+
# 15m & 4h down move, 1d high
16291+
long_entry_logic.append(
16292+
(df["RSI_3_15m"] > 10.0) | (df["RSI_3_4h"] > 10.0) | (df["STOCHRSIk_14_14_3_3_1d"] < 80.0)
16293+
)
1629216294
# 15m & 4h down move, 4h still high
1629316295
long_entry_logic.append(
1629416296
(df["RSI_3_15m"] > 10.0) | (df["RSI_3_4h"] > 30.0) | (df["STOCHRSIk_14_14_3_3_4h"] < 40.0)
@@ -16317,6 +16319,8 @@ def populate_entry_trend(self, df: DataFrame, metadata: dict) -> DataFrame:
1631716319
)
1631816320
# 15m down move, 4h high, 1d overbought
1631916321
long_entry_logic.append((df["RSI_3_15m"] > 15.0) | (df["AROONU_14_4h"] < 70.0) | (df["ROC_9_1d"] < 50.0))
16322+
# 15m & 1h down move, 1h high
16323+
long_entry_logic.append((df["RSI_3_15m"] > 30.0) | (df["RSI_3_1h"] > 30.0) | (df["AROONU_14_1h"] < 70.0))
1632016324
# 1h down move, 4h still not low enough
1632116325
long_entry_logic.append((df["RSI_3_1h"] > 3.0) | (df["AROONU_14_4h"] < 30.0))
1632216326
# 1h & 4h down move, 1h still not low enough

0 commit comments

Comments
 (0)