diff --git a/src/shared/backtestMetrics.ts b/src/shared/backtestMetrics.ts index 54597357..d6e0e2ef 100644 --- a/src/shared/backtestMetrics.ts +++ b/src/shared/backtestMetrics.ts @@ -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 }, diff --git a/src/types/backtest.ts b/src/types/backtest.ts index 5d93e74e..c3133ecb 100644 --- a/src/types/backtest.ts +++ b/src/types/backtest.ts @@ -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;