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 Feb 24, 2024
1 parent 8067135 commit 7080e4e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 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.236"
return "v13.1.237"

stoploss = -0.99

Expand Down Expand Up @@ -18292,6 +18292,17 @@ def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame
| (dataframe["close"] > dataframe["sup_level_4h"])
| (dataframe["hl_pct_change_6_1d"] < 1.2)
)
& (
(dataframe["top_wick_pct_1d"] < 0.08)
| (dataframe["not_downtrend_1h"])
| (dataframe["rsi_14_4h"] < 40.0)
| (dataframe["cti_20_1d"] < 0.8)
| (dataframe["rsi_14_1d"] < 60.0)
| (dataframe["close"] > dataframe["sup_level_1h"])
| (dataframe["close"] < dataframe["res_hlevel_1d"])
| (dataframe["close"] > (dataframe["high_max_6_1d"] * 0.80))
| (dataframe["hl_pct_change_6_1d"] < 1.2)
)
)

dataframe["global_protections_long_dump"] = (
Expand Down

0 comments on commit 7080e4e

Please sign in to comment.