This commit is contained in:
薇薇安 2026-01-22 20:30:02 +08:00
parent 078576ddf8
commit d914b64294

View File

@ -240,14 +240,19 @@ const TradeList = () => {
{
stats && (
<div>
<div>整体统计</div>
<div>总交易数{stats.total_trades}</div>
<div>胜率{stats.win_rate.toFixed(2)}%</div>
<div>总盈亏{stats.total_pnl.toFixed(2)} USDT</div>
<div>平均盈亏{stats.avg_pnl.toFixed(2)} USDT</div>
<div>平均持仓时长分钟{stats.avg_duration_minutes ? Number(stats.avg_duration_minutes).toFixed(0) : 0}</div>
<div>平仓原因有意义交易
<div >
<div style={{ fontSize: '1.1rem' }}>整体统计</div>
<div style={{ display: 'flex', flexDirection: 'column', gap: '4px' }}>
<div style={{ fontSize: '1.1rem' }}>总交易数{stats.total_trades} </div>
<div style={{ fontSize: '1.1rem' }}>胜率{stats.win_rate.toFixed(2)}%</div>
</div>
<div style={{ display: 'flex', flexDirection: 'column', gap: '4px' }}>
<div style={{ fontSize: '1.1rem' }}>总盈亏{stats.total_pnl.toFixed(2)} USDT</div>
<div style={{ fontSize: '1.1rem' }}>平均盈亏{stats.avg_pnl.toFixed(2)} USDT</div>
</div>
<div style={{ display: 'flex', flexDirection: 'column', gap: '4px' }}>
<div style={{ fontSize: '1.1rem' }}>平均持仓时长分钟{stats.avg_duration_minutes ? Number(stats.avg_duration_minutes).toFixed(0) : 0}</div>
<div style={{ fontSize: '1.1rem' }}>平仓原因有意义交易
<div style={{ fontSize: '1.1rem' }}>
{(() => {
const m = stats.exit_reason_counts || {}
@ -268,13 +273,16 @@ const TradeList = () => {
})()}
</div>
</div>
<div className="stat-value">平均盈利 / 平均亏损期望 3:1{Number(stats.avg_win_loss_ratio || 0).toFixed(2)} : 1</div>
<div className="stat-value">总交易量名义{Number(stats.total_notional_usdt || 0).toFixed(2)} USDT</div>
</div>
<div style={{ display: 'flex', flexDirection: 'column', gap: '4px' }}>
<div style={{ fontSize: '1.1rem' }}>平均盈利 / 平均亏损期望 3:1{Number(stats.avg_win_loss_ratio || 0).toFixed(2)} : 1</div>
<div style={{ fontSize: '1.1rem' }}>总交易量名义{Number(stats.total_notional_usdt || 0).toFixed(2)} USDT</div>
</div>
</div>
)
}
}
{
{
stats && (
<div className="stats-summary">
<div className="stat-card">
@ -366,9 +374,9 @@ const TradeList = () => {
)}
</div>
)
}
}
{
{
trades.length === 0 ? (
<div className="no-data">暂无交易记录</div>
) : (
@ -598,8 +606,8 @@ const TradeList = () => {
})}
</div>
</>
)
}
)
}
</div >
)
}