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 30, 2025
1 parent af81f4c commit 8a4871d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions NostalgiaForInfinityX5.py
Original file line number Diff line number Diff line change
Expand Up @@ -5325,6 +5325,23 @@ def populate_indicators(self, df: DataFrame, metadata: dict) -> DataFrame:
| (df["ROC_9_1d"] < 100.0)
)
# 15m & 1h & 1d down move, 15m & 1h & 4h still high, 1d still high & overbought
& (
(df["RSI_3_15m"] > 60.0)
| (df["RSI_3_1h"] > 65.0)
| (df["RSI_3_1d"] > 65.0)
| (df["RSI_14_15m"] < 45.0)
| (df["AROONU_14_15m"] < 75.0)
| (df["CCI_20_15m"] < -100.0)
| (df["RSI_14_1h"] < 50.0)
| (df["AROONU_14_1h"] < 75.0)
| (df["CCI_20_1h"] < -100.0)
| (df["RSI_14_4h"] < 50.0)
| (df["CCI_20_4h"] < -100.0)
| (df["RSI_14_1d"] < 50.0)
| (df["AROONU_14_1d"] < 75.0)
| (df["ROC_9_1d"] < 50.0)
)
# 15m & 1h & 1d down move, 15m & 1h & 4h still high, 1d still high & overbought
& (
(df["RSI_3_15m"] > 60.0)
| (df["RSI_3_1h"] > 70.0)
Expand Down

0 comments on commit 8a4871d

Please sign in to comment.