Skip to content

Commit

Permalink
X5: add global protection rule (Long).
Browse files Browse the repository at this point in the history
  • Loading branch information
iterativv committed Feb 9, 2025
1 parent 0b0bdcc commit 4ef991b
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion NostalgiaForInfinityX5.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class NostalgiaForInfinityX5(IStrategy):
INTERFACE_VERSION = 3

def version(self) -> str:
return "v15.1.365"
return "v15.1.366"

stoploss = -0.99

Expand Down Expand Up @@ -8412,6 +8412,20 @@ def populate_indicators(self, df: DataFrame, metadata: dict) -> DataFrame:
| (df["RSI_14_1d"] < 40.0)
| (df["CMF_20_1d"] > -0.15)
)
# 15m & 1h & 4h down move, 15m & 1h still not low enough, 4h still high, drop in last 30d
& (
(df["RSI_3_15m"] > 30.0)
| (df["RSI_3_1h"] > 60.0)
| (df["RSI_3_4h"] > 60.0)
| (df["RSI_14_15m"] < 30.0)
| (df["CCI_20_15m"] < -250.0)
| (df["RSI_14_1h"] < 30.0)
| (df["CCI_20_1h"] < -250.0)
| (df["RSI_14_4h"] < 45.0)
| (df["CCI_20_4h"] < -0.0)
| (df["STOCHRSIk_14_14_3_3_4h"] < 50.0)
| (df["close"] > (df["high_max_30_1d"] * 0.20))
)
# 15m & 1h & 4h & 1d down move, 15m & 1h & 4h & 1d still not low enough
& (
(df["RSI_3_15m"] > 35.0)
Expand Down

0 comments on commit 4ef991b

Please sign in to comment.