From 7ddd8796d2cd6f3ffd756e5b061122c874b44c40 Mon Sep 17 00:00:00 2001 From: iterativ Date: Sat, 30 Nov 2024 21:36:48 +0200 Subject: [PATCH] X5: add global protection rule (Long). --- NostalgiaForInfinityX5.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/NostalgiaForInfinityX5.py b/NostalgiaForInfinityX5.py index 59731e8a72..0262b0f995 100644 --- a/NostalgiaForInfinityX5.py +++ b/NostalgiaForInfinityX5.py @@ -4244,6 +4244,24 @@ def populate_indicators(self, df: DataFrame, metadata: dict) -> DataFrame: | (df["UO_7_14_28_4h"] < 40.0) | (df["RSI_14_1d"] < 40.0) ) + # 15m & 1h & 4h & 1d down move, 15m & 1h & 4h still not low enough, 1d still high + & ( + (df["RSI_3_15m"] > 10.0) + | (df["RSI_3_1h"] > 20.0) + | (df["RSI_3_4h"] > 35.0) + | (df["RSI_3_1d"] > 60.0) + | (df["RSI_14_15m"] < 15.0) + | (df["CCI_20_15m"] < -250.0) + | (df["RSI_14_1h"] < 30.0) + | (df["CCI_20_1h"] < -200.0) + | (df["RSI_14_4h"] < 40.0) + | (df["WILLR_14_4h"] < -80.0) + | (df["CCI_20_4h"] < -200.0) + | (df["STOCHk_14_3_3_4h"] < 20.0) + | (df["STOCHRSIk_14_14_3_3_4h"] < 20.0) + | (df["RSI_14_1d"] < 50.0) + | (df["STOCHk_14_3_3_1d"] < 60.0) + ) # 15m & 1h & 4h down move, 15m still not low enough, 1h still high, 4h high & ( (df["RSI_3_15m"] > 10.0)