From 42182522198ba4f63670d39108856109069bdf32 Mon Sep 17 00:00:00 2001 From: iterativ Date: Tue, 28 Jan 2025 14:57:28 +0200 Subject: [PATCH] X5: add global protection rule (Long). --- NostalgiaForInfinityX5.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/NostalgiaForInfinityX5.py b/NostalgiaForInfinityX5.py index ca3759babe..4216c7004f 100644 --- a/NostalgiaForInfinityX5.py +++ b/NostalgiaForInfinityX5.py @@ -67,7 +67,7 @@ class NostalgiaForInfinityX5(IStrategy): INTERFACE_VERSION = 3 def version(self) -> str: - return "v15.1.354" + return "v15.1.355" stoploss = -0.99 @@ -5242,6 +5242,22 @@ def populate_indicators(self, df: DataFrame, metadata: dict) -> DataFrame: | (df["ROC_9_4h"] < 50.0) | (df["ROC_9_1d"] < 250.0) ) + # 15m down move, 15m & 1h & 4h & 1d high + & ( + (df["RSI_3_15m"] > 50.0) + | (df["RSI_14_15m"] < 40.0) + | (df["AROONU_14_15m"] < 50.0) + | (df["CCI_20_15m"] < -0.0) + | (df["RSI_14_1h"] < 70.0) + | (df["AROONU_14_1h"] < 75.0) + | (df["CCI_20_1h"] < 100.0) + | (df["STOCHRSIk_14_14_3_3_1h"] < 80.0) + | (df["RSI_14_4h"] < 50.0) + | (df["CCI_20_4h"] < 100.0) + | (df["RSI_14_1d"] < 50.0) + | (df["AROONU_14_1d"] < 75.0) + | (df["STOCHRSIk_14_14_3_3_1d"] < 70.0) + ) # 15m & 1d down move, 15m still high, 1h high & overbought, 1d still high & overbought & ( (df["RSI_3_15m"] > 55.0)