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 Dec 2, 2024
1 parent b4fdad0 commit bfc5924
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion NostalgiaForInfinityX5.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class NostalgiaForInfinityX5(IStrategy):
INTERFACE_VERSION = 3

def version(self) -> str:
return "v15.1.256"
return "v15.1.257"

stoploss = -0.99

Expand Down Expand Up @@ -3771,6 +3771,27 @@ def populate_indicators(self, df: DataFrame, metadata: dict) -> DataFrame:
| (df["RSI_14_1d"] < 70.0)
| (df["ROC_9_1d"] < 30.0)
)
# 15m & 1h down move, 15m & 1h still high, 4h high & overbought, 1d overbought
& (
(df["RSI_3_15m"] > 50.0)
| (df["RSI_3_1h"] > 65.0)
| (df["RSI_14_15m"] < 40.0)
| (df["AROONU_14_15m"] < 50.0)
| (df["CCI_20_15m"] < -100.0)
| (df["STOCHk_14_3_3_15m"] < 20.0)
| (df["STOCHRSIk_14_14_3_3_15m"] < 40.0)
| (df["RSI_14_1h"] < 50.0)
| (df["AROONU_14_1h"] < 25.0)
| (df["CCI_20_1h"] < -0.0)
| (df["STOCHk_14_3_3_1h"] < 20.0)
| (df["RSI_14_4h"] < 70.0)
| (df["AROONU_14_4h"] < 75.0)
| (df["CCI_20_4h"] < 100.0)
| (df["STOCHk_14_3_3_4h"] < 70.0)
| (df["STOCHRSIk_14_14_3_3_4h"] < 40.0)
| (df["ROC_9_4h"] < 50.0)
| (df["ROC_9_1d"] < 250.0)
)
# 1ddown move, 15m & 1h still high, 4h high, 1d overbought
& (
(df["RSI_3_1d"] > 40.0)
Expand Down

0 comments on commit bfc5924

Please sign in to comment.