Zeus_8_1d 20250714-20251007 349.605
This commit is contained in:
10
Zeus_8_1d.py
10
Zeus_8_1d.py
@@ -79,6 +79,9 @@ class Zeus_8_1d(IStrategy):
|
||||
|
||||
plot_config = {
|
||||
"main_plot": {
|
||||
# "close_mean_centered": {
|
||||
# "color": "red"
|
||||
# },
|
||||
"mid_smooth_5": {
|
||||
"color": "blue"
|
||||
},
|
||||
@@ -689,6 +692,10 @@ class Zeus_8_1d(IStrategy):
|
||||
dataframe['deriv1'] = 100 * dataframe['deriv1'] / dataframe['mid']
|
||||
dataframe['deriv2'] = 100 * dataframe['deriv2'] / dataframe['mid']
|
||||
|
||||
# Regarde dans le futur
|
||||
# n = 10
|
||||
# dataframe['close_mean_centered'] = dataframe['close'].rolling(window=2 * n + 1, center=True, min_periods=1).mean()
|
||||
|
||||
# ===============================
|
||||
# Lissage des valeurs Journalières
|
||||
horizon_d = 12 * 5 * 24
|
||||
@@ -792,13 +799,12 @@ class Zeus_8_1d(IStrategy):
|
||||
factor = factor / 2
|
||||
dataframe.loc[
|
||||
(
|
||||
|
||||
|
||||
# (valid_inversion & inversion_last5 )
|
||||
# (dataframe['mid_smooth_12'].shift(2) > dataframe['mid_smooth_12'].shift(1))
|
||||
# (dataframe['mid_smooth_24_deriv1'].shift(1) <= 0)
|
||||
(dataframe['mid_smooth_24_deriv1'] >= 0.05)
|
||||
& (dataframe['mid_smooth_24_deriv2'] > 0)
|
||||
& (dataframe['mid_smooth_5_deriv2'] > 0)
|
||||
# & (dataframe['hapercent'] > 0)
|
||||
#& (dataframe['max_rsi_12'] < 50)
|
||||
# & (dataframe['open'] <= dataframe['bb_middleband'])
|
||||
|
||||
Reference in New Issue
Block a user