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 Jan 10, 2025
1 parent adcbd54 commit 5c22a7b
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 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.324"
return "v15.1.325"

stoploss = -0.99

Expand Down Expand Up @@ -4101,6 +4101,23 @@ def populate_indicators(self, df: DataFrame, metadata: dict) -> DataFrame:
| (df["RSI_14_1d"] < 50.0)
| (df["AROONU_14_1d"] < 75.0)
)
# 15m & 1d down move, 15m still high, 1h high & overbought, 1d still high & overbought
& (
(df["RSI_3_15m"] > 30.0)
| (df["RSI_3_1d"] > 40.0)
| (df["RSI_14_15m"] < 50.0)
| (df["CCI_20_15m"] < -100.0)
| (df["STOCHk_14_3_3_15m"] < 30.0)
| (df["RSI_14_1h"] < 70.0)
| (df["AROONU_14_1h"] < 75.0)
| (df["CCI_20_1h"] < 150.0)
| (df["STOCHk_14_3_3_1h"] < 50.0)
| (df["ROC_9_1h"] < 30.0)
| (df["RSI_14_1d"] < 50.0)
| (df["AROONU_14_1d"] < 75.0)
| (df["STOCHk_14_3_3_1d"] < 50.0)
| (df["ROC_9_1d"] < 100.0)
)
# 15m & 1 & 4h down move, 15m & 1h & 4h still not low enough, 1d still high
& (
(df["RSI_3_15m"] > 35.0)
Expand Down

0 comments on commit 5c22a7b

Please sign in to comment.