Calcul 20240101-20250714 2302 242.986$ Max 11

This commit is contained in:
Jérôme Delacotte
2025-07-23 12:57:14 +02:00
parent 685c04da50
commit faec58ef19
2 changed files with 2767 additions and 1042 deletions

View File

@@ -420,8 +420,9 @@ class Zeus_8_3_2_B_4_2(IStrategy):
self.pairs[pair]['current_profit'] = current_profit
self.pairs[pair]['max_profit'] = max(self.pairs[pair]['max_profit'], current_profit)
# if last_candle['sma20_deriv1_1d'] > 0 and last_candle['sma5_deriv1_1d'] > 0 and last_candle['mid_smooth_1h_deriv1'] > 0:
# return None
if last_candle['sma20_deriv1_1d'] > 0 and last_candle['sma5_deriv1_1d'] > 0 and last_candle['mid_smooth_1h_deriv1'] > 0\
and last_candle['mid_smooth_1h_deriv2'] > 0:
return None
# if (last_candle['mid_smooth_deriv1'] >= 0):
# return None
@@ -1104,7 +1105,7 @@ class Zeus_8_3_2_B_4_2(IStrategy):
else:
pct = 0.05
lim = - pct - (count_of_buys * 0.001)
lim = - pct - (count_of_buys * 0.005)
#lim = self.getLimitBuy(pair, last_candle, pct)
if (len(dataframe) < 1):
@@ -1989,9 +1990,9 @@ class Zeus_8_3_2_B_4_2(IStrategy):
pct_max = self.getPctFirstBuy(pair, last_candle) #self.getPctLastBuy(pair, last_candle)
# val = self.getProbaHausse(last_candle)
# if (val < 40):
# return False
val = self.getProbaHausseSma5d(last_candle)
if (val < 15):
return False
# if count_decrease == len(non_btc_pairs):
# self.should_enter_trade_count += 1