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 19, 2024
1 parent d1c1b96 commit 3ef48ff
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions NostalgiaForInfinityX5.py
Original file line number Diff line number Diff line change
Expand Up @@ -4994,6 +4994,24 @@ def populate_indicators(self, df: DataFrame, metadata: dict) -> DataFrame:
| (df["RSI_14_1d"] < 40.0)
| (df["STOCHk_14_3_3_1d"] < 20.0)
)
# 15m & 1h & 4h down move, 15m & 1h & 4h still not low enough, 1d high
& (
(df["RSI_3_15m"] > 10.0)
| (df["RSI_3_1h"] > 40.0)
| (df["RSI_3_4h"] > 30.0)
| (df["RSI_14_15m"] < 15.0)
| (df["CCI_20_15m"] < -400.0)
| (df["RSI_14_1h"] < 30.0)
| (df["CCI_20_1h"] < -250.0)
| (df["WILLR_14_1h"] < -95.0)
| (df["RSI_14_4h"] < 30.0)
| (df["AROONU_14_4h"] < 25.0)
| (df["CCI_20_4h"] < -200.0)
| (df["WILLR_14_4h"] < -95.0)
| (df["RSI_14_1d"] < 50.0)
| (df["AROONU_14_1d"] < 75.0)
| (df["STOCHk_14_3_3_1d"] < 70.0)
)
# 15m & 1h & 4h down move, 15m still not low enough, 1h still high, 4h high
& (
(df["RSI_3_15m"] > 10.0)
Expand Down

0 comments on commit 3ef48ff

Please sign in to comment.