Ajout max 48

This commit is contained in:
Jérôme Delacotte
2025-07-23 20:18:12 +02:00
parent faec58ef19
commit b0a22e61c5

View File

@@ -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)