Calcul 20250101-20250714 843.349 235.135

This commit is contained in:
Jérôme Delacotte
2025-07-16 13:35:02 +02:00
parent f5847ffc25
commit 2b0b8953c8

View File

@@ -1130,8 +1130,8 @@ class Zeus_8_3_2_B_4_2(IStrategy):
if (count_of_buys < limit_buy) and condition and (
pct_max < lim): # and val > self.buy_val_adjust.value and last_candle['mid_smooth_deriv1_1d'] > - 1):
try:
if 6 <= count_of_buys and last_candle['sma24_deriv1_1h'] < 0:
return None
# if 6 <= count_of_buys and last_candle['sma24_deriv1_1h'] < 0:
# return None
# print(f"{trade.pair} current_profit={current_profit} count_of_buys={count_of_buys} pct_first={pct_first:.3f} pct_max={pct_max:.3f} lim={lim:.3f} index={index}")
# self.pairs[trade.pair]['last_palier_index'] = index
@@ -1808,6 +1808,6 @@ class Zeus_8_3_2_B_4_2(IStrategy):
pct_max = round((last_candle['close'] - self.pairs[pair]['first_buy']) / self.pairs[pair]['first_buy'], 3)
if max_pair != '':
return max_pair == pair or pct_max < - 0.25
return max_pair == pair #or pct_max < - 0.25
else:
return True