Skip to content

Commit 9c5bab5

Browse files
committed
X7: signal 6: add protection.
1 parent ec336eb commit 9c5bab5

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.639"
72+
return "v17.3.640"
7373

7474
stoploss = -0.99
7575

@@ -14387,6 +14387,8 @@ def populate_entry_trend(self, df: DataFrame, metadata: dict) -> DataFrame:
1438714387
& (
1438814388
(df["STOCHRSIk_14_14_3_3_15m"] < 40.0) | (df["STOCHRSIk_14_14_3_3_4h"] < 80.0) | (df["ROC_9_4h"] < 30.0)
1438914389
)
14390+
# 1h high, 1h overbought, 4h downtrend
14391+
& ((df["STOCHRSIk_14_14_3_3_1h"] < 80.0) | (df["ROC_9_1h"] < 10.0) | (df["ROC_9_4h"] > -10.0))
1439014392
# 1h high, 4h & 1d downtrend
1439114393
& ((df["STOCHRSIk_14_14_3_3_1h"] < 80.0) | (df["ROC_9_4h"] > -20.0) | (df["ROC_9_1d"] > -80.0))
1439214394
# 1h down move, 1h & 1d overbought

0 commit comments

Comments
 (0)