Calcul 20240101-20250714 4045.139 187.323 ==> 21.59

This commit is contained in:
Jérôme Delacotte
2025-07-18 14:35:29 +02:00
parent 18c940b06c
commit 384404e590
2 changed files with 4382 additions and 8188 deletions

View File

@@ -1805,11 +1805,11 @@ class Zeus_8_3_2_B_4_2(IStrategy):
limit = 3
if pair.startswith('BTC'):
if pair.startswith('BTC') or self.pairs[pair]['count_of_buys'] == 0:
return True # BTC toujours autorisé
# Filtrer les paires non-BTC
non_btc_pairs = [p for p in self.pairs if not p.startswith('BTC')]
non_btc_pairs = [p for p in self.pairs] # if not p.startswith('BTC')]
# Compter les positions actives sur les paires non-BTC
max_nb_trades = 0
@@ -1842,6 +1842,6 @@ class Zeus_8_3_2_B_4_2(IStrategy):
self.should_enter_trade_count = 0
if max_pair != '':
return max_pair == pair or pct_max < - 0.25
return (max_pair == pair and self.pairs[pair]['count_of_buys'] <= 5) or pct_max < - 0.25
else:
return True