Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
seventhsite committed Dec 4, 2024
2 parents 3c30926 + 8be194e commit ac5d8cd
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 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.258"
return "v15.1.259"

stoploss = -0.99

Expand Down Expand Up @@ -5033,6 +5033,27 @@ def populate_indicators(self, df: DataFrame, metadata: dict) -> DataFrame:
| (df["RSI_14_1d"] > 80.0)
| (df["ROC_9_1d"] < 40.0)
)
# 15m & 1h & 4h & 1d up move, 15m & 1h still not high enough, 4h & 1d stil not high enough & uptrend
& (
(df["RSI_3_15m"] < 80.0)
| (df["RSI_3_1h"] < 80.0)
| (df["RSI_3_4h"] < 80.0)
| (df["RSI_3_1d"] < 95.0)
| (df["RSI_14_15m"] > 85.0)
| (df["CCI_20_15m"] > 250.0)
| (df["RSI_14_1h"] > 85.0)
| (df["CCI_20_1h"] > 250.0)
| (df["CCI_20_change_pct_1h"] < -0.0)
| (df["STOCHRSIk_14_14_3_3_1h"] > 90.0)
| (df["RSI_14_4h"] > 85.0)
| (df["CCI_20_4h"] > 250.0)
| (df["CCI_20_change_pct_4h"] < -0.0)
| (df["STOCHRSIk_14_14_3_3_4h"] > 90.0)
| (df["ROC_9_4h"] < 30.0)
| (df["RSI_14_1d"] > 90.0)
| (df["WILLR_14_1d"] > -10.0)
| (df["ROC_9_1d"] < 50.0)
)
# 15m & 1h & 4h & 1d up move, 1h still not high enough, 1d still low, 4h & 1d uptrend
& (
(df["RSI_3_15m"] < 80.0)
Expand Down Expand Up @@ -5089,6 +5110,21 @@ def populate_indicators(self, df: DataFrame, metadata: dict) -> DataFrame:
| (df["STOCHRSIk_14_14_3_3_1d"] > 80.0)
| (df["ROC_9_1d"] < 40.0)
)
# 15m & 1h & 4h up move, 15m & 1h still not high enough, 4h still not high enough & uptrend
& (
(df["RSI_3_15m"] < 95.0)
| (df["RSI_3_1h"] < 90.0)
| (df["RSI_3_4h"] < 90.0)
| (df["RSI_14_15m"] > 90.0)
| (df["CCI_20_15m"] > 250.0)
| (df["RSI_14_1h"] > 90.0)
| (df["AROOND_14_1h"] < 25.0)
| (df["CCI_20_1h"] > 300.0)
| (df["STOCHk_14_3_3_1h"] > 90.0)
| (df["RSI_14_4h"] > 95.0)
| (df["CCI_20_4h"] > 300.0)
| (df["ROC_9_4h"] < 20.0)
)
# 1h & 4h & 1d up move, 15m still not high enough, 1h & 4h & 1d still not high enough, 1d uptrend
& (
(df["RSI_3_1h"] < 80.0)
Expand Down

0 comments on commit ac5d8cd

Please sign in to comment.