From b0a22e61c5311e182364b6f112364f6aa852b6f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Delacotte?= Date: Wed, 23 Jul 2025 20:18:12 +0200 Subject: [PATCH] Ajout max 48 --- Zeus_8_3_2_B_4_2.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Zeus_8_3_2_B_4_2.py b/Zeus_8_3_2_B_4_2.py index 8353f94..b209add 100644 --- a/Zeus_8_3_2_B_4_2.py +++ b/Zeus_8_3_2_B_4_2.py @@ -660,6 +660,8 @@ class Zeus_8_3_2_B_4_2(IStrategy): dataframe['rsi'] = talib.RSI(dataframe['close'], timeperiod=14) self.calculeDerivees(dataframe, 'rsi') + dataframe['max48'] = talib.MAX(dataframe['close'], timeperiod=48) + # Bollinger Bands bollinger = qtpylib.bollinger_bands(qtpylib.typical_price(dataframe), window=20, stds=2) dataframe['bb_lowerband'] = bollinger['lower'] @@ -934,6 +936,7 @@ class Zeus_8_3_2_B_4_2(IStrategy): # & (dataframe['deriv2_1h'] >= -0.00) (dataframe['mid_smooth_3_deriv1'].shift(2) >= dataframe['mid_smooth_3_deriv1'].shift(1)) & (dataframe['mid_smooth_3_deriv1'].shift(1) <= dataframe['mid_smooth_3_deriv1']) + & (dataframe['close'] < dataframe['max48'] * 0.995) # # # (dataframe['mid_smooth_1h_deriv1'] >= 0)