Calcul 20240101-20250514 1204$ 276.5$

This commit is contained in:
Jérôme Delacotte
2025-05-22 20:51:48 +02:00
parent 14dd2080be
commit 5e532bd44d
2 changed files with 18 additions and 14 deletions

View File

@@ -0,0 +1,13 @@
import json
with open('/home/jerome/Perso/freqtradeDocker/user_data/hyperopts/hyperopt_results_2025-05-21_XX.json') as f:
results = json.load(f)
def custom_score(res):
stake = res.get('avg_stake_amount', 1e6)
duration = res.get('avg_duration', 1e6)
profit = res.get('profit_total_usdt', -1e6)
return -stake * 0.4 - duration * 0.3 + profit * 0.3
best = sorted(results, key=custom_score, reverse=True)[0]
print("Best configuration based on custom score:", best)