From aabfce79ecbdff6942610d90db802dc74187ec00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Delacotte?= Date: Thu, 9 Oct 2025 19:13:26 +0200 Subject: [PATCH] Zeus_8_1d 20250714-20251007 349.605 --- Zeus_8_1d.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Zeus_8_1d.py b/Zeus_8_1d.py index 1845814..1d3eeb6 100644 --- a/Zeus_8_1d.py +++ b/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'])