Skip to content

Commit 2edae51

Browse files
committed
X4: add global buy protection rule.
1 parent a2bbb9d commit 2edae51

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

NostalgiaForInfinityX4.py

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

6767
def version(self) -> str:
68-
return "v14.0.315"
68+
return "v14.0.316"
6969

7070
# ROI table:
7171
minimal_roi = {
@@ -6351,6 +6351,21 @@ def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame
63516351
| (dataframe['rsi_14_1d'] < 46.0)
63526352
| (dataframe['ema_200_dec_48_1h'] == False)
63536353
)
6354+
# 1h & 4h downtrend, 5m & 15m & 1h & 4h downmove, 1d still high
6355+
&
6356+
(
6357+
(dataframe['not_downtrend_1h'])
6358+
| (dataframe['not_downtrend_4h'])
6359+
| (dataframe['rsi_3'] > 10.0)
6360+
| (dataframe['close'] > dataframe['bb20_2_low_15m'])
6361+
| (dataframe['close'] > dataframe['bb20_2_low_1h'])
6362+
| (dataframe['close'] > dataframe['sup_level_4h'])
6363+
| (dataframe['rsi_3_15m'] > 26.0)
6364+
| (dataframe['rsi_3_1h'] > 30.0)
6365+
| (dataframe['rsi_3_4h'] > 36.0)
6366+
| (dataframe['cti_20_1d'] < 0.5)
6367+
| (dataframe['rsi_14_1d'] < 46.0)
6368+
)
63546369
)
63556370

63566371
tok = time.perf_counter()

0 commit comments

Comments
 (0)