Calcul 20250101-20250714 1024.828 229.132$
This commit is contained in:
@@ -1130,12 +1130,14 @@ class Zeus_8_3_2_B_4_2(IStrategy):
|
|||||||
if (count_of_buys < limit_buy) and condition and (
|
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):
|
pct_max < lim): # and val > self.buy_val_adjust.value and last_candle['mid_smooth_deriv1_1d'] > - 1):
|
||||||
try:
|
try:
|
||||||
# if 6 <= count_of_buys and last_candle['sma24_deriv1_1h'] < 0:
|
# if 6 <= count_of_buys:
|
||||||
# return None
|
# if not ((before_last_candle_24['sma24_deriv1_1h'] > before_last_candle_12['sma24_deriv1_1h'])
|
||||||
|
# & (before_last_candle_12['sma24_deriv1_1h'] < last_candle['sma24_deriv1_1h'])):
|
||||||
|
# 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}")
|
# 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
|
# self.pairs[trade.pair]['last_palier_index'] = index
|
||||||
|
|
||||||
# Appel de la fonction
|
# # Appel de la fonction
|
||||||
# poly_func, x_future, y_future, count = self.polynomial_forecast(
|
# poly_func, x_future, y_future, count = self.polynomial_forecast(
|
||||||
# dataframe['mid_smooth_12'],
|
# dataframe['mid_smooth_12'],
|
||||||
# window=self.buy_horizon_predict_1h.value * 12,
|
# window=self.buy_horizon_predict_1h.value * 12,
|
||||||
@@ -1808,6 +1810,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)
|
pct_max = round((last_candle['close'] - self.pairs[pair]['first_buy']) / self.pairs[pair]['first_buy'], 3)
|
||||||
|
|
||||||
if max_pair != '':
|
if max_pair != '':
|
||||||
return max_pair == pair #or pct_max < - 0.25
|
return max_pair == pair or pct_max < - 0.25
|
||||||
else:
|
else:
|
||||||
return True
|
return True
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user