From dd78b95a67cf6239fa2ee62688ebbeb28380b45f Mon Sep 17 00:00:00 2001 From: iterativ Date: Sun, 22 Dec 2024 17:26:23 +0200 Subject: [PATCH] X5: add global protection rule (Long). --- NostalgiaForInfinityX5.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/NostalgiaForInfinityX5.py b/NostalgiaForInfinityX5.py index 9a5c34ba5c..9b624d890a 100644 --- a/NostalgiaForInfinityX5.py +++ b/NostalgiaForInfinityX5.py @@ -4996,6 +4996,22 @@ def populate_indicators(self, df: DataFrame, metadata: dict) -> DataFrame: | (df["RSI_14_1d"] < 20.0) | (df["ROC_9_1d"] > -20.0) ) + # 15m & 1h & 4h & 1d down move, 15m & 1h strong downtrend & not low enough, 4h & 1d still not low enough + & ( + (df["RSI_3_15m"] > 5.0) + | (df["RSI_3_1h"] > 5.0) + | (df["RSI_3_4h"] > 10.0) + | (df["RSI_3_1d"] > 40.0) + | (df["CMF_20_15m"] > -0.20) + | (df["CCI_20_15m"] < -450.0) + | (df["RSI_14_1h"] < 10.0) + | (df["CMF_20_1h"] > -0.20) + | (df["CCI_20_1h"] < -350.0) + | (df["RSI_14_4h"] < 10.0) + | (df["CCI_20_4h"] < -300.0) + | (df["RSI_14_1d"] < 35.0) + | (df["STOCHRSIk_14_14_3_3_1d"] < 20.0) + ) # 15m & 1h & 4h & 1d down move, 15m & 1h & 4h still not low enough enough, 1d still not low enough & downtrend & ( (df["RSI_3_15m"] > 5.0)