Calcul 20240101-20250514 1140$ 254.117$ => 4.488
This commit is contained in:
@@ -453,6 +453,7 @@ class Zeus_8_3_2_B_4_2(IStrategy):
|
||||
last_candle = dataframe.iloc[-1].squeeze()
|
||||
last_candle_1h = dataframe.iloc[-13].squeeze()
|
||||
before_last_candle = dataframe.iloc[-2].squeeze()
|
||||
before_last_candle_2 = dataframe.iloc[-3].squeeze()
|
||||
|
||||
expected_profit = self.expectedProfit(pair, last_candle)
|
||||
# print(f"current_time={current_time} current_profit={current_profit} expected_profit={expected_profit}")
|
||||
@@ -473,7 +474,13 @@ class Zeus_8_3_2_B_4_2(IStrategy):
|
||||
# if (last_candle['tendency'] in ('H++', 'H+')) and (last_candle['rsi'] < 80):
|
||||
# return None
|
||||
#
|
||||
if (last_candle['sma20_deriv1'] < 0 and before_last_candle['sma20_deriv1'] >= 0) and (current_profit > expected_profit):
|
||||
# if (last_candle['sma20_deriv1'] < 0 and before_last_candle['sma20_deriv1'] >= 0) and (current_profit > expected_profit):
|
||||
# return 'Drv_' + str(count_of_buys)
|
||||
|
||||
|
||||
if ((before_last_candle_2['mid_smooth_3_deriv1'] <= before_last_candle['mid_smooth_3_deriv1'])
|
||||
& (before_last_candle['mid_smooth_3_deriv1'] >= last_candle['mid_smooth_3_deriv1'])) \
|
||||
and (current_profit > expected_profit):
|
||||
return 'Drv_' + str(count_of_buys)
|
||||
|
||||
# if (baisse > mx) & (current_profit > expected_profit):
|
||||
@@ -1121,7 +1128,13 @@ class Zeus_8_3_2_B_4_2(IStrategy):
|
||||
|
||||
# if (days_since_open > count_of_buys) & (0 < count_of_buys <= max_buys) & (current_rate <= limit) & (last_candle['enter_long'] == 1):
|
||||
|
||||
condition = True #(last_candle['mid_smooth_3_deriv1'] > self.buy_mid_smooth_3_deriv1.value) and (last_candle['mid_smooth_24_deriv1'] > self.buy_mid_smooth_24_deriv1.value)
|
||||
# ['mid_smooth_1h_deriv1']
|
||||
# sans cdt° ==>Avg. stake amount 276.516 USDT │ Total trade volume 175760.342 USDT 315 │ 1.17 │ 1204.156 │ 60.21│ 1 day, 13:45:00 │ 314 0 1 99.7 │ 0.787 USDT 0.02% │
|
||||
# > - 0.03 ==>Avg. stake amount 259.702 USDT │ Total trade volume 149302.88 USDT 285 │ 1.19 │ 974.542 │ 48.73│ 1 day, 17:45:00 │ 284 0 1 99.6 │ 0.787 USDT 0.03% │
|
||||
# > - 0.03 ==>Avg. stake amount 253.535 USDT │ Total trade volume 145312.936 USDT 284 │ 1.19 │ 1014.898 │ 50.74| 1 day, 17:54:00 │ 283 0 1 99.6 │ 0.684 USDT 0.02% │
|
||||
# > - 0.015 ==>Avg. stake amount 249.107 USDT │ Total trade volume 138186.861 USDT 275 │ 1.20 │ 901.976 │ 45.1 │ 1 day, 19:17:00 │ 274 0 1 99.6 │ 0.684 USDT 0.02%
|
||||
|
||||
condition = True #last_candle['mid_smooth_1h_deriv1'] > - 0.05 #(last_candle['mid_smooth_3_deriv1'] > self.buy_mid_smooth_3_deriv1.value) and (last_candle['mid_smooth_24_deriv1'] > self.buy_mid_smooth_24_deriv1.value)
|
||||
# (last_candle['enter_long'] == 1 & (count_of_buys < 3)) \
|
||||
# or ((before_last_candle['mid_re_smooth_3_deriv1'] <= 0) & (last_candle['mid_re_smooth_3_deriv1'] >= 0) & (3 <= count_of_buys < 6)) \
|
||||
# or ((before_last_candle['mid_smooth_1h_deriv1'] <= 0) & (last_candle['mid_smooth_1h_deriv1'] >= 0) & (6 <= count_of_buys))
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user