Ajout max 48
This commit is contained in:
@@ -660,6 +660,8 @@ class Zeus_8_3_2_B_4_2(IStrategy):
|
|||||||
dataframe['rsi'] = talib.RSI(dataframe['close'], timeperiod=14)
|
dataframe['rsi'] = talib.RSI(dataframe['close'], timeperiod=14)
|
||||||
self.calculeDerivees(dataframe, 'rsi')
|
self.calculeDerivees(dataframe, 'rsi')
|
||||||
|
|
||||||
|
dataframe['max48'] = talib.MAX(dataframe['close'], timeperiod=48)
|
||||||
|
|
||||||
# Bollinger Bands
|
# Bollinger Bands
|
||||||
bollinger = qtpylib.bollinger_bands(qtpylib.typical_price(dataframe), window=20, stds=2)
|
bollinger = qtpylib.bollinger_bands(qtpylib.typical_price(dataframe), window=20, stds=2)
|
||||||
dataframe['bb_lowerband'] = bollinger['lower']
|
dataframe['bb_lowerband'] = bollinger['lower']
|
||||||
@@ -934,6 +936,7 @@ class Zeus_8_3_2_B_4_2(IStrategy):
|
|||||||
# & (dataframe['deriv2_1h'] >= -0.00)
|
# & (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(2) >= dataframe['mid_smooth_3_deriv1'].shift(1))
|
||||||
& (dataframe['mid_smooth_3_deriv1'].shift(1) <= dataframe['mid_smooth_3_deriv1'])
|
& (dataframe['mid_smooth_3_deriv1'].shift(1) <= dataframe['mid_smooth_3_deriv1'])
|
||||||
|
& (dataframe['close'] < dataframe['max48'] * 0.995)
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# (dataframe['mid_smooth_1h_deriv1'] >= 0)
|
# (dataframe['mid_smooth_1h_deriv1'] >= 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user