Skip to content

Commit e901a96

Browse files
committed
X3: add global buy protection rule.
1 parent e0c42f6 commit e901a96

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

NostalgiaForInfinityX3.py

+18-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.663"
68+
return "v13.0.664"
6969

7070
# ROI table:
7171
minimal_roi = {
@@ -6148,6 +6148,23 @@ def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame
61486148
| (dataframe['rsi_14_1d'] < 40.0)
61496149
| (dataframe['ema_200_dec_48_1h'] == False)
61506150
)
6151+
# 4m & 15m downmove,15m & 1h & 4h & 1d still high
6152+
&
6153+
(
6154+
(dataframe['rsi_3'] > 26.0)
6155+
| (dataframe['close'] > dataframe['bb20_2_low_15m'])
6156+
| (dataframe['close'] > dataframe['bb20_2_low_1h'])
6157+
| (dataframe['close'] > dataframe['sup_level_4h'])
6158+
| (dataframe['rsi_3_15m'] > 30.0)
6159+
| (dataframe['cti_20_15m'] < -0.5)
6160+
| (dataframe['rsi_14_15m'] < 33.0)
6161+
| (dataframe['cti_20_1h'] < -0.8)
6162+
| (dataframe['rsi_14_1h'] < 46.0)
6163+
| (dataframe['cti_20_4h'] < -0.8)
6164+
| (dataframe['rsi_14_4h'] < 46.0)
6165+
| (dataframe['cti_20_1d'] < 0.5)
6166+
| (dataframe['rsi_14_1d'] < 46.0)
6167+
)
61516168
)
61526169

61536170
tok = time.perf_counter()

0 commit comments

Comments
 (0)