Remove obsolete code, improve resilience

This commit is contained in:
Matthias
2024-03-30 13:20:43 +01:00
parent 36f1111d92
commit be26e31235
2 changed files with 1 additions and 3 deletions

View File

@@ -78,7 +78,7 @@ def text_table_tags(tag_type: str, tag_results: List[Dict[str, Any]], stake_curr
output = [
[
t['key'] if t.get('key') is not None and len(
t['key']) > 0 else t.get(fallback, "OTHER"),
str(t['key'])) > 0 else t.get(fallback, "OTHER"),
t['trades'],
t['profit_mean_pct'],
t['profit_total_abs'],

View File

@@ -349,8 +349,6 @@ def generate_strategy_stats(pairlist: List[str],
results=results, skip_nan=False)
exit_reason_stats = generate_tag_metrics('exit_reason', starting_balance=start_balance,
results=results, skip_nan=False)
# exit_reason_stats = generate_exit_reason_stats(max_open_trades=max_open_trades,
# results=results)
left_open_results = generate_pair_metrics(
pairlist, stake_currency=stake_currency, starting_balance=start_balance,
results=results.loc[results['exit_reason'] == 'force_exit'], skip_nan=True)