Skip to content

Commit b188a23

Browse files
committed
X7: signal 1: add protection.
1 parent a23af9f commit b188a23

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.774"
72+
return "v17.3.775"
7373

7474
stoploss = -0.99
7575

@@ -12159,6 +12159,8 @@ def populate_entry_trend(self, df: DataFrame, metadata: dict) -> DataFrame:
1215912159
& ((df["RSI_3_1h"] > 50.0) | (df["AROONU_14_1h"] < 90.0) | (df["ROC_9_1h"] < 20.0))
1216012160
# 1h down move, 1h still high, 4h high
1216112161
& ((df["RSI_3_1h"] > 60.0) | (df["AROONU_14_1h"] < 50.0) | (df["RSI_14_4h"] < 90.0))
12162+
# 4h down move, 4h & 1d downtrend
12163+
& ((df["RSI_3_4h"] > 5.0) | (df["ROC_9_4h"] > -30.0) | (df["ROC_9_1d"] > -40.0))
1216212164
# 4h & 1d down move, 4h still not low enough
1216312165
& ((df["RSI_3_4h"] > 10.0) | (df["RSI_3_1d"] > 15.0) | (df["AROONU_14_4h"] < 20.0))
1216412166
# 4h & 1d down move, 1d still high

0 commit comments

Comments
 (0)