Skip to content

Commit

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

def version(self) -> str:
return "v13.1.276"
return "v13.1.277"

stoploss = -0.99

Expand Down Expand Up @@ -18716,6 +18716,18 @@ def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame
| (dataframe["close"] < dataframe["res_hlevel_4h"])
| (dataframe["hl_pct_change_6_1d"] < 1.0)
)
& (
(dataframe["change_pct_1d"] < 0.08)
| (dataframe["rsi_14_1h"] < 50.0)
| (dataframe["cti_20_4h"] < 0.7)
| (dataframe["rsi_14_4h"] < 60.0)
| (dataframe["rsi_14_max_6_4h"] < 80.0)
| (dataframe["rsi_14_1d"] < 60.0)
| (dataframe["r_480_1h"] < -35.0)
| (dataframe["r_480_4h"] < -25.0)
| (dataframe["close"] > dataframe["sup_level_1h"])
| (dataframe["close"] > (dataframe["high_max_12_1h"] * 0.85))
)
)

dataframe["global_protections_long_dump"] = (
Expand Down

0 comments on commit b96028b

Please sign in to comment.