fix: 交易数列改执行数——显示实际参与组合的笔数/信号总数(v1.0:870/11k而非虚假的10246)
This commit is contained in:
+2
-2
@@ -2089,7 +2089,7 @@ function renderStrategyTable(strategies) {
|
||||
th('total_return', '集中仓', 'text-right') +
|
||||
th('capital_final', '最终资产', 'text-right') +
|
||||
th('cagr', '年化', 'text-right') +
|
||||
th('trades', '交易数', 'text-right') +
|
||||
th('trades', '执行数', 'text-right', '实际参与组合模拟的交易笔数;信号总数=为鼠标悬停查看') +
|
||||
th('hold', '均持仓', 'text-right') +
|
||||
th('win_rate', '胜率', 'text-right') +
|
||||
th('avg_profit', '平均收益', 'text-right') + th('sharpe', '夏普', 'text-right') +
|
||||
@@ -2113,7 +2113,7 @@ function renderStrategyTable(strategies) {
|
||||
cell('total_return_pct', pf.total_return_pct, v => v + '%', retCls + ' ' + hl(pf.total_return_pct, best.total_return_pct)) +
|
||||
cell('capital_final', pf.capital_final, v => '¥' + (v/10000).toFixed(0) + '万') +
|
||||
cell('cagr_pct', pf.cagr_pct, v => v + '%', hl(pf.cagr_pct, best.cagr_pct)) +
|
||||
cell('total_trades', st.total_trades, v => v) +
|
||||
cell('total_trades', st.total_trades, v => (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') +
|
||||
|
||||
Reference in New Issue
Block a user