Skip to content

Commit dacdd60

Browse files
committed
X7: signal 102: add protection.
1 parent 4c405c2 commit dacdd60

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.727"
72+
return "v17.3.728"
7373

7474
stoploss = -0.99
7575

@@ -18616,6 +18616,8 @@ def populate_entry_trend(self, df: DataFrame, metadata: dict) -> DataFrame:
1861618616
long_entry_logic.append(
1861718617
(df["AROONU_14_4h"] < 90.0) | (df["STOCHRSIk_14_14_3_3_4h"] < 85.0) | (df["ROC_9_4h"] < 50.0)
1861818618
)
18619+
# 1d high, 4h & 1d overbought
18620+
long_entry_logic.append((df["AROONU_14_1d"] < 100.0) | (df["ROC_9_4h"] < 50.0) | (df["ROC_9_1d"] < 100.0))
1861918621
# 4h high, 4h & 1d overbought
1862018622
long_entry_logic.append(
1862118623
(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)