Skip to content

Commit 7d1cf68

Browse files
committed
X4: add global buy protection rule.
1 parent 07809e6 commit 7d1cf68

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

NostalgiaForInfinityX4.py

+15-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.323"
68+
return "v14.0.324"
6969

7070
# ROI table:
7171
minimal_roi = {
@@ -6442,6 +6442,20 @@ def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame
64426442
| (dataframe['rsi_14_1d'] < 40.0)
64436443
| (dataframe['ema_200_dec_48_1h'] == False)
64446444
)
6445+
# 5m & 15m downmove, 15m & 1h & 4h & 1d still high, 4h & 1d downtrend
6446+
&
6447+
(
6448+
(dataframe['rsi_3'] > 16.0)
6449+
| (dataframe['rsi_3_15m'] > 30.0)
6450+
| (dataframe['rsi_14_15m'] < 40.0)
6451+
| (dataframe['cti_20_1h'] < -0.5)
6452+
| (dataframe['rsi_14_1h'] < 40.0)
6453+
| (dataframe['cti_20_4h'] < -0.5)
6454+
| (dataframe['rsi_14_4h'] < 40.0)
6455+
| (dataframe['rsi_14_1d'] < 40.0)
6456+
| (dataframe['ema_200_dec_24_4h'] == False)
6457+
| (dataframe['ema_200_dec_4_1d'] == False)
6458+
)
64456459
)
64466460

64476461
tok = time.perf_counter()

0 commit comments

Comments
 (0)