Calcul 20240101-20250514 1167 252.177$ => 4,627

This commit is contained in:
Jérôme Delacotte
2025-05-24 19:55:26 +02:00
parent 05815270ae
commit 102ebe96cd
3 changed files with 613 additions and 1717 deletions

View File

@@ -351,8 +351,8 @@ class Zeus_8_3_2_B_4_2(IStrategy):
# buy_mid_smooth_3_deriv1 = DecimalParameter(-0.1, 0.1, decimals=2, default=-0.06, space='buy')
# buy_mid_smooth_24_deriv1 = DecimalParameter(-0.6, 0, decimals=2, default=-0.03, space='buy')
buy_horizon_predict_1h = IntParameter(1, 12, default=2, space='buy')
buy_level_predict_1h = IntParameter(2, 5, default=4, space='buy')
buy_horizon_predict_1h = IntParameter(1, 6, default=2, space='buy')
# buy_level_predict_1h = IntParameter(2, 5, default=4, space='buy')
def confirm_trade_entry(self, pair: str, order_type: str, amount: float, rate: float, time_in_force: str,
@@ -603,7 +603,7 @@ class Zeus_8_3_2_B_4_2(IStrategy):
)
def printLog(self, str):
if not self.dp.runmode.value in ('backtest', 'hyperopt'):
if not self.dp.runmode.value in ('backtest', 'hyperopt', 'lookahead-analysis'):
logger.info(str)
else:
if not self.dp.runmode.value in ('hyperopt'):
@@ -1153,9 +1153,9 @@ class Zeus_8_3_2_B_4_2(IStrategy):
# Appel de la fonction
poly_func, x_future, y_future, count = self.polynomial_forecast(
dataframe['sma24_deriv1_1h'],
dataframe['sma24_1h'],
window=self.buy_horizon_predict_1h.value * 12,
degree=self.buy_level_predict_1h.value,
degree=4,
n_future=3)
if count < 3: