Skip to content

Commit

Permalink
X4: add global buy protection rule.
Browse files Browse the repository at this point in the history
  • Loading branch information
iterativv committed Mar 8, 2024
1 parent d0cb266 commit bb10747
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion NostalgiaForInfinityX4.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class NostalgiaForInfinityX4(IStrategy):
INTERFACE_VERSION = 3

def version(self) -> str:
return "v14.1.307"
return "v14.1.308"

stoploss = -0.99

Expand Down Expand Up @@ -26160,6 +26160,15 @@ def populate_indicators(self, df: DataFrame, metadata: dict) -> DataFrame:
| (df["close"] > df["sup_level_4h"])
| (df["hl_pct_change_6_1d"] > 0.2)
)
& (
(df["not_downtrend_1h"])
| (df["not_downtrend_4h"])
| (df["rsi_14_15m"] > df["rsi_14_15m"].shift(12))
| (df["rsi_3_1h"] > 16.0)
| (df["rsi_3_4h"] > 26.0)
| (df["rsi_14_4h"].shift(48) < 65.0)
| (df["close"] > df["sup_level_1h"])
)
)

# Global protections
Expand Down

0 comments on commit bb10747

Please sign in to comment.