Skip to content

Commit 49d5265

Browse files
committed
X7: signal 501: add protection.
1 parent 6341e20 commit 49d5265

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.643"
72+
return "v17.3.644"
7373

7474
stoploss = -0.99
7575

@@ -21361,6 +21361,10 @@ def populate_entry_trend(self, df: DataFrame, metadata: dict) -> DataFrame:
2136121361
short_entry_logic.append(
2136221362
(df["RSI_3_1h"] < 90.0) | (df["STOCHRSIk_14_14_3_3_1h"] > 70.0) | (df["STOCHRSIk_14_14_3_3_1d"] > 30.0)
2136321363
)
21364+
# 1h up move, 4h low, 1h uptrend
21365+
short_entry_logic.append(
21366+
(df["RSI_3_1h"] < 90.0) | (df["STOCHRSIk_14_14_3_3_4h"] > 20.0) | (df["ROC_9_1h"] < 10.0)
21367+
)
2136421368
# 1h up move, 4h low, 1h overbought
2136521369
short_entry_logic.append(
2136621370
(df["RSI_3_1h"] < 90.0) | (df["STOCHRSIk_14_14_3_3_4h"] > 40.0) | (df["ROC_9_1h"] < 30.0)

0 commit comments

Comments
 (0)