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 Nov 25, 2024
1 parent 9e884d4 commit 6dbc2c9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions NostalgiaForInfinityX5.py
Original file line number Diff line number Diff line change
Expand Up @@ -3440,6 +3440,20 @@ def populate_indicators(self, df: DataFrame, metadata: dict) -> DataFrame:
| (df["STOCHRSIk_14_14_3_3_4h"] < 90.0)
| (df["ROC_9_4h"] < 50.0)
)
# 15m down move, 15m stil not low enough, 1h & 4h high, 1d overbought
& (
(df["RSI_3_15m"] > 45.0)
| (df["RSI_14_15m"] < 40.0)
| (df["AROONU_14_15m"] < 25.0)
| (df["STOCHk_14_3_3_15m"] < 20.0)
| (df["RSI_14_1h"] < 70.0)
| (df["STOCHk_14_3_3_1h"] < 50.0)
| (df["STOCHRSIk_14_14_3_3_1h"] < 50.0)
| (df["RSI_14_4h"] < 70.0)
| (df["STOCHk_14_3_3_4h"] < 70.0)
| (df["STOCHRSIk_14_14_3_3_4h"] < 70.0)
| (df["ROC_9_1d"] < 40.0)
)
# 15m down move, 15m still high, 1h & 4h still high, 1d high & overbought
& (
(df["RSI_3_15m"] > 45.0)
Expand Down

0 comments on commit 6dbc2c9

Please sign in to comment.