Skip to content

Commit b7b7d4d

Browse files
committed
X7: signal 161: add protection.
1 parent 058e7f0 commit b7b7d4d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

NostalgiaForInfinityX7.py

Lines changed: 5 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.832"
72+
return "v17.3.833"
7373

7474
stoploss = -0.99
7575

@@ -20952,6 +20952,10 @@ def populate_entry_trend(self, df: DataFrame, metadata: dict) -> DataFrame:
2095220952
long_entry_logic.append(
2095320953
(df["RSI_3_4h"] > 40.0) | (df["STOCHRSIk_14_14_3_3_1h"] < 50.0) | (df["CCI_20_change_pct_4h"] > -0.0)
2095420954
)
20955+
# 4h down move, 1d high & overbought
20956+
long_entry_logic.append(
20957+
(df["RSI_3_4h"] > 40.0) | (df["STOCHRSIk_14_14_3_3_1d"] < 80.0) | (df["ROC_9_1d"] < 10.0)
20958+
)
2095520959
# 4h down move, 1h high, 4h still high
2095620960
long_entry_logic.append((df["RSI_3_4h"] > 45.0) | (df["AROONU_14_1h"] < 70.0) | (df["AROONU_14_4h"] < 50.0))
2095720961
# 4h down move, 15m high, 4h still high

0 commit comments

Comments
 (0)