Skip to content

Commit 8371475

Browse files
committed
X3: add global buy protection rule.
1 parent 93bfa8b commit 8371475

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

NostalgiaForInfinityX3.py

+14-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class NostalgiaForInfinityX3(IStrategy):
6565
INTERFACE_VERSION = 3
6666

6767
def version(self) -> str:
68-
return "v13.0.658"
68+
return "v13.0.659"
6969

7070
# ROI table:
7171
minimal_roi = {
@@ -6077,6 +6077,19 @@ def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame
60776077
| (dataframe['rsi_14_1d'] < 50.0)
60786078
| (dataframe['ema_200_dec_4_1d'] == False)
60796079
)
6080+
# current 4h green with top wick, 5m & 15m downmove, 15m & 1h & 4h & 1d still high
6081+
&
6082+
(
6083+
(dataframe['change_pct_4h'] < 0.04)
6084+
| (dataframe['top_wick_pct_4h'] < 0.04)
6085+
| (dataframe['rsi_3'] > 20.0)
6086+
| (dataframe['rsi_3_15m'] > 30.0)
6087+
| (dataframe['rsi_14_15m'] < 33.0)
6088+
| (dataframe['rsi_14_1h'] < 46.0)
6089+
| (dataframe['cti_20_4h'] < 0.5)
6090+
| (dataframe['rsi_14_4h'] < 50.0)
6091+
| (dataframe['rsi_14_1d'] < 50.0)
6092+
)
60806093
)
60816094

60826095
tok = time.perf_counter()

0 commit comments

Comments
 (0)