Skip to content

Commit 0cac733

Browse files
committed
X6: add global protection entry (Long).
1 parent f459a28 commit 0cac733

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

NostalgiaForInfinityX6.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class NostalgiaForInfinityX6(IStrategy):
6969
INTERFACE_VERSION = 3
7070

7171
def version(self) -> str:
72-
return "v16.7.26"
72+
return "v16.7.27"
7373

7474
stoploss = -0.99
7575

@@ -4320,6 +4320,17 @@ def populate_indicators(self, df: DataFrame, metadata: dict) -> DataFrame:
43204320
| (df["CMF_20_1d"] > -0.3)
43214321
| (df["AROONU_14_15m"] < 30.0)
43224322
)
4323+
# 15m & 4h down move, 15m & 1h still high, 1h high, 1h over
4324+
& (
4325+
(df["RSI_3_15m"] > 15.0)
4326+
| (df["RSI_3_4h"] > 15.0)
4327+
| (df["RSI_14_15m"] < 40.0)
4328+
| (df["RSI_14_1h"] < 50.0)
4329+
| (df["AROONU_14_1h"] < 80.0)
4330+
| (df["STOCHRSIk_14_14_3_3_15m"] < 40.0)
4331+
| (df["STOCHRSIk_14_14_3_3_1h"] < 90.0)
4332+
| (df["ROC_9_1h"] < 10.0)
4333+
)
43234334
# 15m & 4h down move, 15m & 1h & 4h still high, 15m & 4h high, 4h overbought
43244335
& (
43254336
(df["RSI_3_15m"] > 15.0)

0 commit comments

Comments
 (0)