From 417ee95e9a1db6a24f79eba2638a7c380ebd7d7e Mon Sep 17 00:00:00 2001 From: iterativ Date: Sat, 9 Mar 2024 10:24:01 +0200 Subject: [PATCH] X4: add global buy protection rule. --- NostalgiaForInfinityX4.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/NostalgiaForInfinityX4.py b/NostalgiaForInfinityX4.py index 3e4c60b968..d9819a7b7f 100644 --- a/NostalgiaForInfinityX4.py +++ b/NostalgiaForInfinityX4.py @@ -68,7 +68,7 @@ class NostalgiaForInfinityX4(IStrategy): INTERFACE_VERSION = 3 def version(self) -> str: - return "v14.1.310" + return "v14.1.311" stoploss = -0.99 @@ -25586,6 +25586,16 @@ def populate_indicators(self, df: DataFrame, metadata: dict) -> DataFrame: | (df["close"] > df["sup_level_1h"]) | (df["close"] < df["res_hlevel_4h"]) ) + & ( + (df["change_pct_4h"] > -0.04) + | (df["change_pct_1h"] > -0.02) + | (df["not_downtrend_1h"]) + | (df["rsi_3_1h"] > 12.0) + | (df["cti_20_4h"] < 0.7) + | (df["rsi_14_4h"] < 50.0) + | (df["rsi_14_4h"].shift(48) < 70.0) + | (df["rsi_14_max_6_4h"] < 70.0) + ) ) df["global_protections_long_dump"] = (