From 274de5511d6a540f8c91184f4fa313ac649b65c2 Mon Sep 17 00:00:00 2001 From: iterativ Date: Tue, 10 Dec 2024 01:05:32 +0200 Subject: [PATCH] X5: add global protection rule (Long). --- NostalgiaForInfinityX5.py | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/NostalgiaForInfinityX5.py b/NostalgiaForInfinityX5.py index 8cfe5bfce0..41d5c5ff86 100644 --- a/NostalgiaForInfinityX5.py +++ b/NostalgiaForInfinityX5.py @@ -67,7 +67,7 @@ class NostalgiaForInfinityX5(IStrategy): INTERFACE_VERSION = 3 def version(self) -> str: - return "v15.1.268" + return "v15.1.269" stoploss = -0.99 @@ -3460,6 +3460,26 @@ def populate_indicators(self, df: DataFrame, metadata: dict) -> DataFrame: | (df["RSI_14_1d"] < 50.0) | (df["STOCHk_14_3_3_1d"] < 60.0) ) + # 15m & 1h down move, 15m still not low enough, 1h & 4h still high, 1d still high & overbought + & ( + (df["RSI_3_15m"] > 35.0) + | (df["RSI_3_1h"] > 60.0) + | (df["RSI_14_15m"] < 35.0) + | (df["CCI_20_15m"] < -200.0) + | (df["STOCHk_14_3_3_15m"] < 10.0) + | (df["RSI_14_1h"] < 50.0) + | (df["CCI_20_1h"] < 50.0) + | (df["AROONU_14_1h"] < 50.0) + | (df["STOCHk_14_3_3_1h"] < 35.0) + | (df["RSI_14_4h"] < 50.0) + | (df["AROONU_14_4h"] < 50.0) + | (df["CCI_20_4h"] < 100.0) + | (df["STOCHk_14_3_3_4h"] < 40.0) + | (df["RSI_14_1d"] < 60.0) + | (df["AROONU_14_1d"] < 75.0) + | (df["STOCHRSIk_14_14_3_3_1d"] < 80.0) + | (df["ROC_9_1d"] < 25.0) + ) # 15m & 1h & 4h down move, 15m & 1h & 4h still high, 1d high & overbought & ( (df["RSI_3_15m"] > 35.0)