From 0c23e3fb91fa17991238090a5a44a2b1d6e1e848 Mon Sep 17 00:00:00 2001 From: iterativ Date: Sat, 14 Dec 2024 19:18:12 +0200 Subject: [PATCH] X5: add global protection rule (Long). --- NostalgiaForInfinityX5.py | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/NostalgiaForInfinityX5.py b/NostalgiaForInfinityX5.py index 4811b8448c..b4d19dc4c9 100644 --- a/NostalgiaForInfinityX5.py +++ b/NostalgiaForInfinityX5.py @@ -67,7 +67,7 @@ class NostalgiaForInfinityX5(IStrategy): INTERFACE_VERSION = 3 def version(self) -> str: - return "v15.1.279" + return "v15.1.280" stoploss = -0.99 @@ -3903,6 +3903,24 @@ def populate_indicators(self, df: DataFrame, metadata: dict) -> DataFrame: | (df["AROONU_14_4h"] < 50.0) | (df["STOCHRSIk_14_14_3_3_4h"] < 70.0) ) + # 15m & 4h down move, 15m & 1h & 4h still high, 1d high & overbought + & ( + (df["RSI_3_15m"] > 45.0) + | (df["RSI_3_4h"] > 65.0) + | (df["RSI_14_15m"] < 40.0) + | (df["AROONU_14_15m"] < 50.0) + | (df["CCI_20_15m"] < -0.0) + | (df["STOCHk_14_3_3_15m"] < 20.0) + | (df["RSI_14_1h"] < 50.0) + | (df["AROONU_14_1h"] < 75.0) + | (df["CCI_20_1h"] < -0.0) + | (df["STOCHRSIk_14_14_3_3_1h"] < 80.0) + | (df["RSI_14_4h"] < 50.0) + | (df["CCI_20_4h"] < -0.0) + | (df["RSI_14_1d"] < 70.0) + | (df["AROONU_14_1d"] < 75.0) + | (df["ROC_9_1d"] < 40.0) + ) # 15m down move, 15m stil not low enough, 1h & 4h high, 1d overbought & ( (df["RSI_3_15m"] > 45.0)