Skip to content

Commit 84063f2

Browse files
committed
X4: add global buy protection rule.
1 parent 88bcfcb commit 84063f2

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

NostalgiaForInfinityX4.py

+14-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.344"
68+
return "v14.0.345"
6969

7070
# ROI table:
7171
minimal_roi = {
@@ -6681,6 +6681,19 @@ def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame
66816681
| (dataframe['ema_200_dec_24_4h'] == False)
66826682
| (dataframe['ema_200_dec_4_1d'] == False)
66836683
)
6684+
# 1h & 4h downtrend, 5m & 15m & 4h downmove, 1h downtrend
6685+
&
6686+
(
6687+
(dataframe['not_downtrend_1h'])
6688+
| (dataframe['not_downtrend_4h'])
6689+
| (dataframe['rsi_3'] > 20.0)
6690+
| (dataframe['close'] > dataframe['bb20_2_low_15m'])
6691+
| (dataframe['close'] > dataframe['bb20_2_low_1h'])
6692+
| (dataframe['close'] > dataframe['sup_level_4h'])
6693+
| (dataframe['rsi_3_15m'] > 26.0)
6694+
| (dataframe['rsi_3_4h'] > 16.0)
6695+
| (dataframe['ema_200_dec_48_1h'] == False)
6696+
)
66846697
)
66856698

66866699
tok = time.perf_counter()

0 commit comments

Comments
 (0)