Skip to content

Commit fe32e05

Browse files
committed
X7: signal 101: add protection.
1 parent e274abc commit fe32e05

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

NostalgiaForInfinityX7.py

Lines changed: 3 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.830"
72+
return "v17.3.831"
7373

7474
stoploss = -0.99
7575

@@ -18358,6 +18358,8 @@ def populate_entry_trend(self, df: DataFrame, metadata: dict) -> DataFrame:
1835818358
long_entry_logic.append(
1835918359
(df["RSI_3_4h"] > 15.0) | (df["STOCHRSIk_14_14_3_3_1d"] < 90.0) | (df["ROC_9_1d"] < 20.0)
1836018360
)
18361+
# 4h down move, 4h & 1d downtrend
18362+
long_entry_logic.append((df["RSI_3_4h"] > 20.0) | (df["ROC_9_4h"] > -20.0) | (df["ROC_9_1d"] > -30.0))
1836118363
# 4h dowqn move, 4h still high, 1d downtrend
1836218364
long_entry_logic.append(
1836318365
(df["RSI_3_4h"] > 25.0) | (df["STOCHRSIk_14_14_3_3_4h"] < 50.0) | (df["ROC_9_1d"] > -30.0)

0 commit comments

Comments
 (0)