Calcul 20240101-20250714 2123.520 295.469$

This commit is contained in:
Jérôme Delacotte
2025-07-20 23:13:43 +02:00
parent 24d10698d2
commit 9cce16610d
2 changed files with 2976 additions and 715 deletions

View File

@@ -713,6 +713,13 @@ class Zeus_8_3_2_B_4_2(IStrategy):
# poly_func, x_future, y_future, count = self.polynomial_forecast(informative['sma5_deriv1_1d'], window=24, degree=4)
informative['futur_percent_3'] = 100 * ((informative['sma5'].shift(-3) - informative['sma5']) / informative['sma5'])
futur_cols = ['futur_percent_3']
indic_1 = 'sma5_deriv1'
indic_2 = 'sma20_deriv1'
self.calculateProbabilite2Index(informative, futur_cols, indic_1, indic_2)
dataframe = merge_informative_pair(dataframe, informative, self.timeframe, "1d", ffill=True)
dataframe['last_price'] = dataframe['close']
@@ -1059,7 +1066,7 @@ class Zeus_8_3_2_B_4_2(IStrategy):
else:
pct = 0.025
lim = - pct - (count_of_buys * 0.001)
# lim = - pct - (count_of_buys * 0.001)
lim = self.getLimitBuy(pair, last_candle, pct)
if (len(dataframe) < 1):