Skip to content

Commit 01d9ca5

Browse files
committed
X5: add global protection rule (Long).
1 parent 7228d76 commit 01d9ca5

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

NostalgiaForInfinityX5.py

+18
Original file line numberDiff line numberDiff line change
@@ -5183,6 +5183,24 @@ def populate_indicators(self, df: DataFrame, metadata: dict) -> DataFrame:
51835183
| (df["RSI_14_1d"] < 30.0)
51845184
| (df["STOCHk_14_3_3_1d"] < 20.0)
51855185
)
5186+
# 15m & 1h & 4h & 1d down move, 15m & 1h & 4h & 1d still not low enough
5187+
& (
5188+
(df["RSI_3_15m"] > 15.0)
5189+
| (df["RSI_3_1h"] > 20.0)
5190+
| (df["RSI_3_4h"] > 10.0)
5191+
| (df["RSI_3_1d"] > 15.0)
5192+
| (df["RSI_14_15m"] < 20.0)
5193+
| (df["MFI_14_15m"] < 10.0)
5194+
| (df["CCI_20_15m"] < -300.0)
5195+
| (df["RSI_14_1h"] < 20.0)
5196+
| (df["MFI_14_1h"] < 10.0)
5197+
| (df["AROONU_14_1h"] < 50.0)
5198+
| (df["CCI_20_1h"] < -250.0)
5199+
| (df["RSI_14_4h"] < 20.0)
5200+
| (df["MFI_14_4h"] < 10.0)
5201+
| (df["CCI_20_4h"] < -250.0)
5202+
| (df["RSI_14_1d"] < 30.0)
5203+
)
51865204
# 15m & 1h & 4h & 1d down move, 15m & 1h still not low enough, 4h still not low enough & downtrend, 1d still not low enough
51875205
& (
51885206
(df["RSI_3_15m"] > 15.0)

0 commit comments

Comments
 (0)