{{ currentTabTitle }}

真实数据驱动 · 严格防未来泄漏 · 样本外统计验证

{{ health.data_ready ? 'Parquet 数据就绪' : '数据未导入' }} BTC: {{ realtime.btc_spot?.mid ? ('$' + realtime.btc_spot.mid.toLocaleString()) : '加载中...' }}
BTC 现货中间价 (Binance)
${{ fmt(realtime.btc_spot?.mid, 2) }}
Bid {{ fmt(realtime.btc_spot?.bid, 2) }} / Ask {{ fmt(realtime.btc_spot?.ask, 2) }}
Predict.fun 主网目标价 (Chainlink)
${{ fmt(realtime.predictfun_live?.round?.target_price ?? realtime.current_5m_window?.ref_open_price, 2) }}
Market #{{ realtime.predictfun_live?.round?.market_id || '-' }} | Fee {{ realtime.predictfun_live?.round?.fee_rate_bps ?? '-' }}bps
Predict.fun 实时 Up / Down 卖一
{{ fmt(realtime.predictfun_live?.orderbook?.up_best_ask, 2) }} / {{ fmt(realtime.predictfun_live?.orderbook?.down_best_ask, 2) }}
Up Bid {{ fmt(realtime.predictfun_live?.orderbook?.up_best_bid, 2) }} | 倒计时 {{ fmt(realtime.current_5m_window?.rem_sec, 1) }}s
WebSocket 实时落盘采集器
{{ realtime.collector_status?.connected ? 'CONNECTED' : (realtime.collector_status?.running ? 'CONNECTING' : 'IDLE') }}
已录 {{ realtime.collector_status?.messages_recorded || 0 }} 帧 | 切换 {{ realtime.collector_status?.rounds_switched || 0 }} 轮
主网当前市场: {{ realtime.predictfun_live?.round?.title || realtime.current_5m_window?.round_id || '-' }} 现货延迟: {{ fmt(realtime.spot_latency_ms, 1) }} ms | 盘口延迟: {{ realtime.predictfun_live?.orderbook?.ingest_latency_ms ?? '-' }} ms
BTCUSDT 实时 1m 收盘价与 EMA9 / EMA21
Predict.fun 主网 Up 合约 Top-5 盘口 & Binance 盘口
Predict.fun Up Bids (买盘)
价格股数
{{ fmt(r[0], 2) }}{{ fmt(r[1], 1) }}
Predict.fun Up Asks (卖盘)
价格股数
{{ fmt(r[0], 2) }}{{ fmt(r[1], 1) }}
BTC-5M 真实轮次
{{ dataQuality.btc_5m_rounds_total || 0 }}
UP: {{ dataQuality.outcomes?.UP || 0 }} / DOWN: {{ dataQuality.outcomes?.DOWN || 0 }}
订单簿高频快照
{{ (dataQuality.orderbook_rows || 0).toLocaleString() }}
缺失盘口轮次: {{ dataQuality.btc_5m_rounds_missing_orderbook || 0 }}
Chainlink 参考价 Tick
{{ (dataQuality.chainlink_ticks || 0).toLocaleString() }}
单边盘口占比: {{ fmt((dataQuality.orderbook_one_sided_ratio || 0) * 100, 2) }}%
盘口采集延迟 (p50 / p95)
{{ fmt(dataQuality.ingest_latency_ms_p50, 0) }} / {{ fmt(dataQuality.ingest_latency_ms_p95, 0) }} ms
p99: {{ fmt(dataQuality.ingest_latency_ms_p99, 0) }} ms
BTC-5M 历史轮次列表(点击查看 Tick 回放)
Market ID目标价结算价结果操作
{{ r.market_id }} ${{ fmt(r.target_price, 2) }} ${{ fmt(r.settlement_price, 2) }} {{ r.outcome }}
轮次 Tick 级回放 (Market {{ selectedRoundId || '-' }})
BTC 1m 价格 + 布林带 + EMA 叠加图
特征与最终结算结果相关性 (Pearson r)
特征名称相关性 r
{{ f.feature }} {{ fmt(f.corr_with_outcome, 4) }}
Target A — 最终结算概率模型样本外 (OOS) 对比(按轮次时间切分 + 1 轮次 Embargo)
模型类别OOS Brier ↓Δ Brier vs 市场Log Loss ↓ROC-AUC ↑ECE 校准误差 ↓训练耗时(s)
{{ name }} {{ m.category }} {{ fmt(m.test?.brier, 5) }} {{ fmtSigned(m.delta_brier_vs_market, 5) }} {{ fmt(m.test?.log_loss, 5) }} {{ fmt(m.test?.roc_auc, 4) }} {{ fmt(m.test?.ece, 4) }} {{ fmt(m.train_sec, 3) }}
OOS 概率校准曲线 (Reliability Diagram)
LightGBM Top-12 特征重要性
动态仓位管理与复利对照实验(9 种 PositionSizer 公平对比 · Block Bootstrap 风险分析)
仓位模型交易/跳过终值(USDT)净收益 几何均值/笔单位投入EV最大回撤% 平均/最大仓位最大连亏MC回撤p95MC腰斩率
{{ s.sizing_model }} {{ s.trade_count }} / {{ s.skipped_zero_size }} ${{ fmt(s.final_equity, 2) }} {{ fmtSigned(s.net_pnl, 2) }} {{ fmtSigned(s.geometric_mean_return * 100, 3) }}% {{ fmtSigned(s.ev_per_dollar_risked * 100, 2) }}% {{ fmt(s.max_drawdown_pct * 100, 2) }}% {{ fmt(s.avg_fraction * 100, 2) }}% / {{ fmt(s.max_fraction_used * 100, 2) }}% {{ s.max_consecutive_losses }} {{ fmt((s.mc_risk?.max_dd_pct_p95 || 0) * 100, 1) }}% {{ fmt((s.mc_risk?.prob_drawdown_50pct || 0) * 100, 1) }}%
不同仓位模型复利资金增长曲线对比
模型概率估计误差敏感性(注入偏误 -3% ~ +6%)
概率偏误仓位模型终值(USDT)几何均值最大回撤%MC回撤p95
{{ fmtSigned(p.prob_bias * 100, 1) }}% {{ p.sizing_model }} ${{ fmt(p.final_equity, 2) }} {{ fmtSigned(p.geometric_mean_return * 100, 3) }}% {{ fmt(p.max_drawdown_pct * 100, 2) }}% {{ fmt(p.mc_dd_p95 * 100, 1) }}%
Phase 5 — OOS 正期望研究矩阵(持有至结算 vs +30s 提前退出,含 200bps Taker 费与 BH-FDR 控制)
策略 / 模型退出模式交易数净收益(USDT)手续费胜率最大回撤单笔EV 95% CIFDR显著
{{ s.prob_col }} {{ s.exit_mode }} {{ s.trade_count }} {{ fmtSigned(s.net_pnl, 2) }} {{ fmt(s.total_fees, 2) }} {{ fmt(s.win_rate * 100, 1) }}% {{ fmt(s.max_drawdown, 2) }} [{{ fmt(s.ev_per_trade_ci?.ci_low, 3) }}, {{ fmt(s.ev_per_trade_ci?.ci_high, 3) }}] {{ s.fdr_significant_q05 ? 'YES' : 'NO' }}
费用 (0~300 bps) & 滑点 (0~1%) 压力测试
模型Taker 费 (bps)额外滑点交易数净收益(USDT)单笔EV均值95% CI
{{ st.model }} {{ st.fee_bps }} {{ fmt(st.extra_slippage * 100, 2) }}% {{ st.trade_count }} {{ fmtSigned(st.net_pnl, 2) }} {{ fmtSigned(st.ev_mean, 3) }} [{{ fmt(st.ev_ci_low, 3) }}, {{ fmt(st.ev_ci_high, 3) }}]
终值 / 累计净收益
${{ fmt(btResult.final_equity ?? (btResult.initial_capital + btResult.net_pnl), 2) }}
Net PnL: {{ fmtSigned(btResult.net_pnl, 2) }} | 几何均值: {{ fmtSigned((btResult.geometric_mean_return || 0) * 100, 3) }}%/笔
交易次数 / 胜率 / 单位EV
{{ btResult.trade_count }} / {{ fmt((btResult.win_rate || 0) * 100, 1) }}%
EV/$1: {{ fmtSigned((btResult.ev_per_dollar_risked || 0) * 100, 2) }}% | PF: {{ btResult.profit_factor ?? 'N/A' }}
最大回撤 / MC p95回撤
{{ fmt((btResult.max_drawdown_pct || 0) * 100, 2) }}%
${{ fmt(btResult.max_drawdown, 2) }} | 连亏: {{ btResult.max_consecutive_losses ?? '-' }} | MC p95: {{ fmt((btResult.mc_risk?.max_dd_pct_p95 || 0) * 100, 1) }}%
平均 / 最大仓位比例
{{ fmt((btResult.avg_fraction || 0) * 100, 2) }}% / {{ fmt((btResult.max_fraction_used || 0) * 100, 2) }}%
零仓位跳过: {{ btResult.skipped_zero_size ?? 0 }} | 总手续费: ${{ fmt(btResult.total_fees, 2) }}
资金复利权益曲线 (Equity Curve)
每笔交易资金投入比例分布 (%)
V1.2 滚动窗口与持续样本外研究(Rolling / Expanding / Fixed Model · 防未来泄漏与重叠去重)
覆盖 {{ dataCoverage.days_count }} 天 ({{ (dataCoverage.covered_dates || []).join(', ') }}) | 可用轮次 {{ dataCoverage.usable_feature_rounds }}
⚠ {{ dataCoverage.warnings[0] }}
{{ rollResult.message }}
{{ rollResult.caveat }}
滚动窗口数 / 总交易数
{{ rollResult.summary.windows_count }} 窗 / {{ rollResult.summary.total_trades }} 笔
重叠去重排除: {{ rollResult.summary.total_dedup_excluded_rounds }} 轮
连续 OOS 终值 / 净收益
${{ fmt(rollResult.summary.final_equity, 2) }}
Net PnL: {{ fmtSigned(rollResult.summary.net_pnl, 2) }} | Fees: ${{ fmt(rollResult.summary.total_fees, 2) }}
连续最大回撤
{{ fmt(rollResult.summary.max_drawdown_pct * 100, 2) }}%
模式: {{ rollResult.config.capital_mode }} | 去重: {{ rollResult.config.dedup_rule }}
汇总 OOS Brier / Δ vs 市场
{{ fmt(rollResult.summary.overall_brier, 5) }}
Δ Brier: {{ fmtSigned(rollResult.summary.overall_delta_brier, 5) }} | AUC: {{ fmt(rollResult.summary.overall_roc_auc, 4) }}
连续样本外资金曲线 (Continuous OOS Equity)
按日收益与预测指标汇总
UTC 日期样本数BrierΔBrierAUC交易数净收益
{{ d.utc_date }}{{ d.oos_snapshots }} {{ fmt(d.brier, 5) }} {{ fmtSigned(d.delta_brier, 5) }} {{ fmt(d.roc_auc, 4) }}{{ d.trades }} {{ fmtSigned(d.net_pnl, 2) }}
窗口重训测试时段 (UTC)训练/验/测轮BrierΔ vs 市场AUC起始→终值净收益回撤%交易/均仓
#{{ w.window_idx }} {{ w.retrained ? 'YES' : 'NO' }} {{ w.test_start_utc }} ~ {{ w.test_end_utc.slice(11) }} {{ w.train_rounds }}/{{ w.val_rounds }}/{{ w.test_rounds }} {{ fmt(w.brier, 4) }} {{ fmtSigned(w.delta_brier_vs_market, 4) }} {{ fmt(w.roc_auc, 4) }} ${{ fmt(w.start_equity, 1) }} → ${{ fmt(w.end_equity, 1) }} {{ fmtSigned(w.net_pnl, 2) }} {{ fmt(w.max_dd_pct * 100, 1) }}% {{ w.trade_count }} / {{ fmt(w.avg_fraction * 100, 1) }}%
{{ paper.running ? '自动运行中 (每3秒)' : '已暂停' }} LIVE 刷新: {{ lastLiveRefresh }}
当前策略:DOWN_ONLY [0.65, 0.95] 0手续费 Maker 限价挂单 + 30秒 5bps 防反抽过滤(单笔 ≤ 2.5% 本金)
此刻状态:{{ paper.decision_status_zh || '等待行情更新...' }}
BTC 现价: ${{ fmt(paper.last_btc_price, 2) }} | 轮次目标价: ${{ fmt(paper.current_round?.target_price, 2) }} ({{ fmtSigned(paper.current_round?.dist_usd, 2) }}) | 主网实时 Up卖一: {{ fmt(paper.current_round?.ref_up_ask, 2) }} | Down买一 / 卖一: {{ fmt(paper.current_round?.ref_down_bid, 2) }} / {{ fmt(paper.current_round?.ref_down_ask, 2) }} | 倒计时: {{ fmt(paper.current_round?.rem_sec, 0) }}s
虚拟可用资金
${{ fmt(paper.cash_usdt, 2) }}
初始资金: ${{ fmt(paper.initial_capital, 2) }}
已实现盈亏 / 累计手续费
{{ fmtSigned(paper.realized_pnl, 2) }}
Maker 0费 | 累计费用: ${{ fmt(paper.total_fees, 3) }}
当前挂单 / 当前持仓
持仓 {{ paper.open_position.side }} @ {{ fmt(paper.open_position.entry_price, 2) }} 挂单 {{ paper.pending_order.side }} @ {{ fmt(paper.pending_order.limit_price, 2) }} 空仓观望中
{{ paper.current_round?.round_id || '尚未触发' }}
已成交 / 观察轮次 / 行情延迟
{{ paper.trades_filled || 0 }} / {{ paper.rounds_observed || 0 }}
延迟: {{ fmt(paper.last_latency_ms, 1) }} ms
实时模拟事件日志
类型内容
{{ ev.kind }} {{ ev.message }}
历史模拟成交与结算记录 (SQLite)
轮次动作方向价格手续费状态PnL
{{ t.round_id }}{{ t.action }}{{ t.side }} {{ fmt(t.price, 3) }}{{ fmt(t.fee_usdt, 3) }}{{ t.status }} {{ t.pnl_usdt != null ? fmtSigned(t.pnl_usdt, 2) : '-' }}
API 连通性与安全边界状态
{{ JSON.stringify(connectivity, null, 2) }}
安全配置摘要(脱敏)
{{ JSON.stringify(health.config, null, 2) }}
SQLite 实验管理总表(含全部失败与负收益实验)
ID名称类别模型支持假设耗时(s)时间(UTC)
{{ e.experiment_id }} {{ e.name }} {{ e.category }} {{ e.model_version }} {{ e.supports_hypothesis ? 'YES' : 'NO' }} {{ fmt(e.duration_sec, 2) }} {{ (e.created_at_utc || '').slice(0, 19) }}