Update some backtest displays

This commit is contained in:
Matthias 2024-03-30 12:03:24 +01:00
parent 90036f5340
commit 9b5e14c033
2 changed files with 3 additions and 2 deletions

View File

@ -177,10 +177,10 @@ export function generateBacktestMetricRows(result: StrategyBacktestResult) {
{ '___ ': '___' },
{
'Best Pair': `${result.best_pair.key} ${formatPercent(result.best_pair.profit_sum)}`,
'Best Pair': `${result.best_pair.key} ${formatPercent(result.best_pair.profit_total)}`,
},
{
'Worst Pair': `${result.worst_pair.key} ${formatPercent(result.worst_pair.profit_sum)}`,
'Worst Pair': `${result.worst_pair.key} ${formatPercent(result.worst_pair.profit_total)}`,
},
{ 'Best single Trade': bestPair },
{ 'Worst single Trade': worstPair },

View File

@ -76,6 +76,7 @@ export interface StrategyBacktestResult {
results_per_pair: PairResult[];
sell_reason_summary?: ExitReasonResults[];
exit_reason_summary?: ExitReasonResults[];
results_per_enter_tag: PairResult[];
periodic_breakdown?: PeriodicBreakdown;
left_open_trades: Trade[];
total_trades: number;