┏━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┓

┃ Strategy ┃ Trades ┃ Avg Profit % ┃ Tot Profit USDT ┃ Tot Profit % ┃     Avg Duration ┃  Win  Draw  Loss  Win% ┃             Drawdown ┃
┡━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━┩
│    Empty │     71 │         3.39 │        6790.561 │       679.06 │ 6 days, 19:44:00 │   42     0    29  59.2 │ 722.969 USDT  16.42% │
This commit is contained in:
Jérôme Delacotte
2026-02-28 20:44:11 +01:00
parent 123804b5f3
commit a04b07f7ea
2 changed files with 245 additions and 196 deletions

View File

@@ -369,7 +369,7 @@ class Empty(IStrategy):
condition = False if self.pairs[pair]['count_of_lost'] >= 1 \
and (last_candle['sma12_deriv1_1d'] < 0.001 \
or last_candle['sma12_deriv2_1d'] < 0.001) else True
or last_candle['sma12_deriv2_1d'] < 0.001) and entry_tag != 'dist' else True
reason = ''
if not condition:
@@ -561,6 +561,10 @@ class Empty(IStrategy):
self.pairs[pair]['force_sell'] = True
return 'B30'
# if profit > max(5, expected_profit) and last_candle['sma5_deriv1_1d'] < 0 and baisse > 0.15:
# self.pairs[pair]['force_sell'] = True
# return 'Drv5d'
# if last_candle['range_pos'] > 0.05 and current_profit < - last_candle['range_pos'] /4 : #last_candle['cross_sma60']:
# self.pairs[pair]['force_sell'] = True
# return 'Range'
@@ -769,6 +773,28 @@ class Empty(IStrategy):
['enter_long', 'enter_tag']
] = (1, 'bull')
# #####################################################################################
# conditions = list()
# conditions.append(dataframe['dist_sma200_1d'] < -0.05)
# conditions.append(dataframe['sma12_inv'] == 1)
# # conditions.append(dataframe['sma100_deriv1_1d'] > 0)
# if conditions:
# dataframe.loc[
# reduce(lambda x, y: x & y, conditions),
# ['enter_long', 'enter_tag']
# ] = (1, 'dist')
# #####################################################################################
conditions = list()
conditions.append(dataframe['close'] < dataframe['sma100_1d'])
conditions.append(dataframe['mid_smooth12'] > dataframe['mid_smooth12'].shift(1))
conditions.append(dataframe['sma100_deriv1_1d'] > 0)
if conditions:
dataframe.loc[
reduce(lambda x, y: x & y, conditions),
['enter_long', 'enter_tag']
] = (1, 'dist')
# #####################################################################################
# CA BAISSE !!
# "buy": {