diff --git a/src/components/ftbot/BacktestResultView.vue b/src/components/ftbot/BacktestResultView.vue index 19d3d772..774f39e6 100644 --- a/src/components/ftbot/BacktestResultView.vue +++ b/src/components/ftbot/BacktestResultView.vue @@ -136,6 +136,18 @@ export default defineComponent({ props.backtestResult.profit_total_abs, )}`, }, + { + metric: 'CAGR', + value: `${props.backtestResult.cagr ? formatPercent(props.backtestResult.cagr) : 'N/A'}`, + }, + { + metric: 'Profit factor', + value: `${ + props.backtestResult.profit_factor + ? formatPrice(props.backtestResult.profit_factor, 3) + : 'N/A' + }`, + }, { metric: 'Total trades / Daily Avg Trades', value: `${props.backtestResult.total_trades} / ${props.backtestResult.trades_per_day}`, diff --git a/src/types/backtest.ts b/src/types/backtest.ts index ed03e6e8..3fe52c76 100644 --- a/src/types/backtest.ts +++ b/src/types/backtest.ts @@ -61,6 +61,7 @@ export interface StrategyBacktestResult { profit_total: number; profit_total_abs: number; cagr?: number; + profit_factor?: number; backtest_end: string; backtest_end_ts: number;