From c8f3a2ec68ce2c425db2f04eeab3b1fa9221d896 Mon Sep 17 00:00:00 2001 From: hmo Date: Thu, 30 Jul 2026 00:38:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=89=A7=E8=A1=8C=E6=95=B0=E8=AF=BB?= =?UTF-8?q?=E5=8F=96portfolio=5Ffull.positions=5Ftaken=E2=80=94=E2=80=94al?= =?UTF-8?q?l=E8=A1=8C=E9=9B=86=E4=B8=AD=E4=BB=93=E4=B8=BAnull=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E7=9A=840/11k?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/index.html b/static/index.html index 7adc69a5..b32bd035 100644 --- a/static/index.html +++ b/static/index.html @@ -2111,7 +2111,7 @@ function renderStrategyTable(strategies) { cell('full_return_pct', (st.portfolio_full || {}).total_return_pct, v => v + '%' + ((st.portfolio_full||{}).std ? '±' + (st.portfolio_full||{}).std + '' : ''), 'font-bold text-amber-300') + cell('capital_final', (st.portfolio_full||pf).capital_final, v => '¥' + (v/10000).toFixed(0) + '万') + cell('cagr_pct', (st.portfolio_full||pf).cagr_pct, v => v + '%', hl((st.portfolio_full||pf).cagr_pct, best.cagr_pct)) + - cell('total_trades', st.total_trades, v => (pf.positions_taken||0) + '/' + (v > 999 ? Math.round(v/1000) + 'k' : v), '', false) + + cell('total_trades', st.total_trades, v => ((st.portfolio_full||{}).positions_taken ?? (pf.positions_taken||0)) + '/' + (v > 999 ? Math.round(v/1000) + 'k' : v), '', false) + cell('avg_hold_days', st.avg_hold_days, v => v + 'd') + cell('win_rate', st.win_rate, v => v + '%', hl(st.win_rate, best.win_rate)) + cell('avg_profit_pct', st.avg_profit_pct, v => v + '%', (st.avg_profit_pct || 0) >= 0 ? 'text-green-400' : 'text-red-400') +