Skip to content

Commit 6129bcb

Browse files
committed
X7: signal 102: add protection.
1 parent 4e642ef commit 6129bcb

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

NostalgiaForInfinityX7.py

Lines changed: 8 additions & 2 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.835"
72+
return "v17.3.836"
7373

7474
stoploss = -0.99
7575

@@ -18859,6 +18859,8 @@ def populate_entry_trend(self, df: DataFrame, metadata: dict) -> DataFrame:
1885918859
long_entry_logic.append(
1886018860
(df["AROONU_14_15m"] < 70.0) | (df["AROONU_14_1h"] < 80.0) | (df["AROONU_14_4h"] < 90.0)
1886118861
)
18862+
# 15m & 1h high, 4h overbought
18863+
long_entry_logic.append((df["AROONU_14_15m"] < 70.0) | (df["AROONU_14_1h"] < 90.0) | (df["ROC_9_4h"] < 20.0))
1886218864
# 15m & 1d high, 1d overbought
1886318865
long_entry_logic.append(
1886418866
(df["AROONU_14_15m"] < 70.0) | (df["AROONU_14_1d"] < 90.0) | (df["ROC_9_1d"] < 100.0)
@@ -18877,6 +18879,10 @@ def populate_entry_trend(self, df: DataFrame, metadata: dict) -> DataFrame:
1887718879
long_entry_logic.append((df["AROONU_14_1h"] < 50.0) | (df["AROONU_14_4h"] < 90.0) | (df["ROC_9_4h"] < 80.0))
1887818880
# 1h & 4h high, 1h overbought
1887918881
long_entry_logic.append((df["AROONU_14_1h"] < 80.0) | (df["AROONU_14_4h"] < 100.0) | (df["ROC_9_1h"] < 40.0))
18882+
# 1h & 1d high, 1d overbought
18883+
long_entry_logic.append((df["AROONU_14_1h"] < 80.0) | (df["AROONU_14_1d"] < 100.0) | (df["ROC_9_1d"] < 30.0))
18884+
# 1h high, 4h & 1d overbought
18885+
long_entry_logic.append((df["AROONU_14_1h"] < 90.0) | (df["ROC_9_4h"] < 20.0) | (df["ROC_9_1d"] < 40.0))
1888018886
# 4h & 1d high, 4h overbought
1888118887
long_entry_logic.append((df["AROONU_14_4h"] < 80.0) | (df["AROONU_14_1d"] < 100.0) | (df["ROC_9_4h"] < 30.0))
1888218888
# 4h & 1d high, 1d overbought
@@ -18886,7 +18892,7 @@ def populate_entry_trend(self, df: DataFrame, metadata: dict) -> DataFrame:
1888618892
(df["AROONU_14_4h"] < 90.0) | (df["STOCHRSIk_14_14_3_3_4h"] < 85.0) | (df["ROC_9_4h"] < 50.0)
1888718893
)
1888818894
# 1d high, 4h & 1d overbought
18889-
long_entry_logic.append((df["AROONU_14_1d"] < 100.0) | (df["ROC_9_4h"] < 50.0) | (df["ROC_9_1d"] < 100.0))
18895+
long_entry_logic.append((df["AROONU_14_1d"] < 100.0) | (df["ROC_9_4h"] < 20.0) | (df["ROC_9_1d"] < 40.0))
1889018896
# 4h high, 4h & 1d overbought
1889118897
long_entry_logic.append(
1889218898
(df["STOCHRSIk_14_14_3_3_4h"] < 70.0) | (df["ROC_9_4h"] < 30.0) | (df["ROC_9_1d"] < 30.0)

0 commit comments

Comments
 (0)