From bb10747cba261d99ae4ad722fba28315bd4549df Mon Sep 17 00:00:00 2001 From: iterativ Date: Fri, 8 Mar 2024 15:26:13 +0200 Subject: [PATCH] X4: add global buy protection rule. --- NostalgiaForInfinityX4.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/NostalgiaForInfinityX4.py b/NostalgiaForInfinityX4.py index c00341f07e..64b9d728f2 100644 --- a/NostalgiaForInfinityX4.py +++ b/NostalgiaForInfinityX4.py @@ -68,7 +68,7 @@ class NostalgiaForInfinityX4(IStrategy): INTERFACE_VERSION = 3 def version(self) -> str: - return "v14.1.307" + return "v14.1.308" stoploss = -0.99 @@ -26160,6 +26160,15 @@ def populate_indicators(self, df: DataFrame, metadata: dict) -> DataFrame: | (df["close"] > df["sup_level_4h"]) | (df["hl_pct_change_6_1d"] > 0.2) ) + & ( + (df["not_downtrend_1h"]) + | (df["not_downtrend_4h"]) + | (df["rsi_14_15m"] > df["rsi_14_15m"].shift(12)) + | (df["rsi_3_1h"] > 16.0) + | (df["rsi_3_4h"] > 26.0) + | (df["rsi_14_4h"].shift(48) < 65.0) + | (df["close"] > df["sup_level_1h"]) + ) ) # Global protections