Skip to content

Commit 8b60ff1

Browse files
committed
X7: signal 44: add protection.
1 parent 01ca3ea commit 8b60ff1

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

NostalgiaForInfinityX7.py

Lines changed: 7 additions & 3 deletions
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.889"
72+
return "v17.3.890"
7373

7474
stoploss = -0.99
7575

@@ -16450,6 +16450,8 @@ def populate_entry_trend(self, df: DataFrame, metadata: dict) -> DataFrame:
1645016450
& ((df["RSI_3_15m"] > 15.0) | (df["RSI_3_4h"] > 45.0) | (df["AROONU_14_4h"] < 90.0))
1645116451
# 15m down move, 4h & 1d downtrend
1645216452
& ((df["RSI_3_15m"] > 15.0) | (df["ROC_9_4h"] > -10.0) | (df["ROC_9_1d"] > -40.0))
16453+
# 15m down move, 1h high & overbought
16454+
& ((df["RSI_3_15m"] > 25.0) | (df["AROONU_14_1d"] < 90.0) | (df["ROC_9_1d"] < 100.0))
1645316455
# 1h & 4h down move, 1h still not low enough
1645416456
& ((df["RSI_3_1h"] > 3.0) | (df["RSI_3_4h"] > 3.0) | (df["AROONU_14_1h"] < 20.0))
1645516457
# 1h & 4h down move
@@ -16552,8 +16554,6 @@ def populate_entry_trend(self, df: DataFrame, metadata: dict) -> DataFrame:
1655216554
& ((df["RSI_3_1h"] > 15.0) | (df["ROC_9_4h"] < 20.0) | (df["ROC_9_1d"] < 20.0))
1655316555
# 1h & 4h down move, 4h high
1655416556
& ((df["RSI_3_1h"] > 20.0) | (df["RSI_3_4h"] > 50.0) | (df["AROONU_14_4h"] < 90.0))
16555-
# 1h down move, 1d high & overbought
16556-
& ((df["RSI_3_1h"] > 20.0) | (df["AROONU_14_1d"] < 100.0) | (df["ROC_9_1d"] < 100.0))
1655716557
# 1h down move, 4h high, 1d downtrend
1655816558
& ((df["RSI_3_1h"] > 20.0) | (df["STOCHRSIk_14_14_3_3_4h"] < 80.0) | (df["ROC_9_1d"] > -40.0))
1655916559
# 1h & 4h down ove, 4h high
@@ -16562,6 +16562,8 @@ def populate_entry_trend(self, df: DataFrame, metadata: dict) -> DataFrame:
1656216562
& ((df["RSI_3_1h"] > 25.0) | (df["AROONU_14_1h"] < 70.0) | (df["AROONU_14_1d"] < 80.0))
1656316563
# 1h down move, 4h high, 1d downtrend
1656416564
& ((df["RSI_3_1h"] > 25.0) | (df["AROONU_14_4h"] < 80.0) | (df["ROC_9_1d"] > -20.0))
16565+
# 1h down move, 1d high & overbought
16566+
& ((df["RSI_3_1h"] > 25.0) | (df["AROONU_14_1d"] < 90.0) | (df["ROC_9_1d"] < 100.0))
1656516567
# 1h down move, 1h downtrend, 4h overbought
1656616568
& ((df["RSI_3_1h"] > 25.0) | (df["ROC_9_1h"] > -20.0) | (df["ROC_9_4h"] < 20.0))
1656716569
# 1h down move, 1d overbought
@@ -16600,6 +16602,8 @@ def populate_entry_trend(self, df: DataFrame, metadata: dict) -> DataFrame:
1660016602
& ((df["RSI_3_4h"] > 30.0) | (df["AROONU_14_4h"] < 50.0) | (df["ROC_9_1d"] > -40.0))
1660116603
# 4h down move, 1d high & overbought
1660216604
& ((df["RSI_3_4h"] > 30.0) | (df["AROONU_14_1d"] < 100.0) | (df["ROC_9_1d"] < 30.0))
16605+
# 4h down move, 1h high & overbought
16606+
& ((df["RSI_3_4h"] > 35.0) | (df["AROONU_14_1d"] < 90.0) | (df["ROC_9_1d"] < 100.0))
1660316607
# 4h down move, 4h high
1660416608
& ((df["RSI_3_4h"] > 50.0) | (df["STOCHRSIk_14_14_3_3_4h"] < 80.0))
1660516609
# 4h down move, 4h overbought

0 commit comments

Comments
 (0)