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)