Skip to content

Commit d7e160f

Browse files
committed
X6: add global protection entry (Long).
1 parent 99292d5 commit d7e160f

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

NostalgiaForInfinityX6.py

Lines changed: 14 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.25"
72+
return "v16.7.26"
7373

7474
stoploss = -0.99
7575

@@ -5782,6 +5782,19 @@ def populate_indicators(self, df: DataFrame, metadata: dict) -> DataFrame:
57825782
| (df["AROONU_14_1h"] < 100.0)
57835783
| (df["AROONU_14_4h"] < 100.0)
57845784
)
5785+
# 15m & 1h down move, 15m & 1h & 4h still high, 1h & 4h & 1d downtrend, 1h & 4h high
5786+
& (
5787+
(df["RSI_3_15m"] > 45.0)
5788+
| (df["RSI_3_1h"] > 45.0)
5789+
| (df["RSI_14_15m"] < 40.0)
5790+
| (df["RSI_14_1h"] < 50.0)
5791+
| (df["RSI_14_4h"] < 50.0)
5792+
| (df["CMF_20_1h"] > -0.10)
5793+
| (df["CMF_20_4h"] > -0.10)
5794+
| (df["CMF_20_1d"] > -0.30)
5795+
| (df["AROONU_14_1h"] < 70.0)
5796+
| (df["AROONU_14_4h"] < 90.0)
5797+
)
57855798
# 15m & 1h down move, 1h & 4h still high, 4h high, 1h & 4h overbought
57865799
& (
57875800
(df["RSI_3_15m"] > 45.0)

0 commit comments

Comments
 (0)