StockAgent
自进化 A 股分析师
{{ user?.username }} {{ riskLabel }} ¥{{ (user?.capital || 0).toLocaleString() }}
🔮 Top 3 探索者预测
每天由当前 daily_win_rate 排名前 3 的 Agent 各自给出大盘研判 + 未来 1 天 / 1 周 / 1 月 Top 5 持仓建议 · {{ forecasts[0].generated_date }} 生成 · 实时价 {{ priceAsOf.slice(11,16) }} 刷新(交易时段每 5 分钟自动)
{{ fcError }}
{{ ['🥇','🥈','🥉'][i] || '#' }} {{ f.agent_display }}
{{ forecastSentimentLabel(f.sentiment) }}
{{ {'1d':'📅 1 天','1w':'📆 1 周','1m':'🗓 1 个月'}[hk] }} TOP 5
股票 实时价 今日 概率 预期
{{ p.name }} {{ p.symbol }} ¥{{ priceOf(p.symbol) }} {{ pctOf(p.symbol) != null ? ((pctOf(p.symbol) > 0 ? '+' : '') + pctOf(p.symbol).toFixed(2) + '%') : '-' }} {{ ((p.prob_up || 0) * 100).toFixed(0) }}% {{ (p.expected_pct || 0) > 0 ? '+' : '' }}{{ (p.expected_pct || 0).toFixed(1) }}%
🔮
暂无预测,点上方"生成今日预测"
耗时 60-120 秒(拉数据 + 3 个 Agent 各调一次 LLM)
今日个性化持仓建议
{{ recommend.as_of }} · prompt={{ recommend.prompt_version }} · weights={{ recommend.weights_version }}
{{ error2 }}
{{ recommend.overall_position }}
{{ recommend.overall_view }}
{{ r.name }} {{ r.symbol }} {{ actionLabel(r.action) }} 建议仓位 {{ r.target_weight_pct }}% {{ r.horizon_days || 5 }}日 置信 {{ Math.round((r.confidence||0)*100) }}%
{{ r.reasoning }}
{{ factorLabel(k) }}: {{ v }}
⚠ {{ r.risks.join(' / ') }}
观察池
{{ w.name }} ({{ w.symbol }})
{{ recommend.disclaimer }}
🎯
尚无今日推荐,点上方按钮生成
生成耗时约 20-40 秒(拉数据 + LLM 推理)
我的持仓
名称代码股数成本价现价市值盈亏
{{ h.name }} {{ h.symbol }} {{ h.shares.toLocaleString() }} {{ h.avg_cost?.toFixed(2) }} {{ h.current_price?.toFixed(2) || '-' }} {{ h.current_value ? '¥'+h.current_value.toLocaleString() : '-' }} {{ h.pnl != null ? (h.pnl > 0 ? '+' : '') + h.pnl.toFixed(2) : '-' }} ({{ h.pnl_pct > 0 ? '+' : '' }}{{ h.pnl_pct.toFixed(2) }}%)
合计 ¥{{ totalValue.toLocaleString() }} {{ totalPnl > 0 ? '+' : '' }}{{ totalPnl.toFixed(2) }}
尚无持仓,点击右上角添加
🤖 10 个机器人活账户(各 ¥100,000,持仓上限 5 只)
真实仿真:从启动日起每日推进,含手续费 · 历史回测继续用于训练 config
机器人总数
{{ botPortfolios.length }}/10
总资金
¥{{ botTotalValue.toLocaleString() }}
累计盈亏
{{ botTotalPnl > 0 ? '+' : '' }}{{ botTotalPnl.toLocaleString() }}
盈利机器人
{{ botProfitable }}/{{ botPortfolios.length }}
总交易次数
{{ botTotalTrades.toLocaleString() }}
{{ b.emoji }} {{ b.display_name }} Gen {{ b.generation }}
日胜率 {{ b.daily_win_rate != null ? (b.daily_win_rate * 100).toFixed(1) + '%' : '-' }}
¥{{ b.total_value.toLocaleString() }}
{{ b.pnl > 0 ? '+' : '' }}¥{{ b.pnl.toLocaleString() }} ({{ b.pnl_pct > 0 ? '+' : '' }}{{ b.pnl_pct.toFixed(2) }}%)
现金 ¥{{ Math.round(b.cash).toLocaleString() }}
持仓 ¥{{ Math.round(b.market_value).toLocaleString() }}
交易 {{ b.total_trades }} 笔
持股 {{ b.current_holdings?.length || 0 }} 只
手续费 ¥{{ Math.round((b.total_commission||0)+(b.total_tax||0)).toLocaleString() }} · 最大回撤 {{ (b.max_drawdown_pct||0).toFixed(1) }}%
加载中...
{{ selectedBot.emoji }} {{ selectedBot.display_name }} · 当前持仓 ({{ selectedBot.current_holdings?.length || 0 }})
股票股数成本现价市值盈亏
{{ h.name }}
{{ h.symbol }}
{{ h.shares?.toLocaleString() }} {{ h.avg_cost?.toFixed(2) }} {{ h.current_price?.toFixed(2) || '-' }} ¥{{ Math.round(h.current_value || 0).toLocaleString() }} {{ (h.pnl || 0) > 0 ? '+' : '' }}{{ Math.round(h.pnl || 0).toLocaleString() }}
{{ h.pnl_pct > 0 ? '+' : '' }}{{ h.pnl_pct.toFixed(1) }}%
当前空仓
历史交易 / 委托 ({{ botTrades.length }})
时间方向股票 股数价格金额 盈亏
{{ t.trade_date }}
{{ t.trade_time.slice(11,16) }}
{{ t.side === 'buy' ? '买' : '卖' }}
{{ t.name }}
{{ t.symbol }}
{{ t.shares?.toLocaleString() }} {{ t.price?.toFixed(2) }} ¥{{ Math.round(t.amount).toLocaleString() }} ¥{{ Math.round((t.commission || 0) + (t.tax || 0) + (t.transfer_fee || 0)).toLocaleString() }} {{ t.pnl != null ? (t.pnl > 0 ? '+' : '') + Math.round(t.pnl).toLocaleString() : '-' }}
{{ t.pnl_pct > 0 ? '+' : '' }}{{ t.pnl_pct.toFixed(1) }}%
该机器人暂无交易
策略实盘模拟 · 10w 本金 · 含手续费
状态:{{ simStatus.stage }} · 进度 {{ simStatus.progress }} · 最后日期 {{ simStatus.last_date }}
策略 总资产 累计收益 现金 市值 已实现 沪深300 超额 最大回撤 夏普 交易次数 总手续费 持仓数
{{ strategyLabel(p.strategy_name) }} ¥{{ p.total_value.toLocaleString() }} {{ p.total_return_pct > 0 ? '+' : '' }}{{ p.total_return_pct.toFixed(2) }}% {{ p.benchmark_return_pct != null ? (p.benchmark_return_pct > 0 ? '+' : '') + p.benchmark_return_pct.toFixed(2) + '%' : '-' }} {{ p.excess_return_pct != null ? (p.excess_return_pct > 0 ? '+' : '') + p.excess_return_pct.toFixed(2) + '%' : '-' }} {{ p.max_drawdown_pct.toFixed(2) }}% {{ p.sharpe_ratio != null ? p.sharpe_ratio.toFixed(2) : '-' }} {{ p.total_trades }} ¥{{ (p.total_commission + p.total_tax).toFixed(0) }} {{ p.position_count }}
💰
尚未启动模拟,点上方"启动模拟"开始(3 年约需 5-10 分钟)
{{ strategyLabel(selectedPort.strategy_name) }} 净值曲线 vs 沪深300
绩效统计
累计收益
{{ selectedSummary.portfolio.total_return_pct }}%
年化收益
{{ selectedSummary.portfolio.annualized_pct }}%
沪深300 同期
{{ selectedSummary.portfolio.benchmark_return_pct != null ? selectedSummary.portfolio.benchmark_return_pct + '%' : '-' }}
超额收益
{{ selectedSummary.portfolio.excess_return_pct != null ? (selectedSummary.portfolio.excess_return_pct > 0 ? '+' : '') + selectedSummary.portfolio.excess_return_pct + '%' : '-' }}
夏普比
{{ selectedSummary.portfolio.sharpe_ratio != null ? selectedSummary.portfolio.sharpe_ratio : '-' }}
索提诺比
{{ selectedSummary.portfolio.sortino_ratio != null ? selectedSummary.portfolio.sortino_ratio : '-' }}
最大回撤
{{ selectedSummary.portfolio.max_drawdown_pct.toFixed(2) }}%
盈亏比
{{ selectedSummary.stats.profit_factor != null ? selectedSummary.stats.profit_factor : '-' }}
已结算胜率
{{ (selectedSummary.stats.win_rate * 100).toFixed(1) }}%
已结算交易
{{ selectedSummary.stats.closed_trades }} 笔({{ selectedSummary.stats.wins }} 赢 / {{ selectedSummary.stats.losses }} 输)
最佳一笔
{{ selectedSummary.stats.best.name }} +{{ selectedSummary.stats.best.pnl_pct }}%
最差一笔
{{ selectedSummary.stats.worst.name }} {{ selectedSummary.stats.worst.pnl_pct }}%
每周复盘日志 ({{ journals.length }})
LLM 自动生成 · 每周一 03:00 续写
{{ j.week_start }} ~ {{ j.week_end }} {{ j.sentiment || 'neutral' }}
本周 {{ j.week_return_pct > 0 ? '+' : '' }}{{ j.week_return_pct.toFixed(2) }}% vs HS300 {{ j.benchmark_return_pct != null ? (j.benchmark_return_pct > 0 ? '+' : '') + j.benchmark_return_pct.toFixed(2) + '%' : '-' }} 超额 {{ j.excess_return_pct != null ? (j.excess_return_pct > 0 ? '+' : '') + j.excess_return_pct.toFixed(2) + '%' : '-' }}
💡 {{ j.takeaways }}
当前持仓 ({{ selectedPort.holdings.length }})
股票股数成本现价市值浮动盈亏
{{ h.name }} {{ h.symbol }} {{ h.shares }} {{ h.avg_cost?.toFixed(2) }} {{ h.current_price?.toFixed(2) }} ¥{{ (h.market_value || 0).toLocaleString(undefined, {maximumFractionDigits:0}) }} {{ h.current_price && h.avg_cost ? ((h.current_price / h.avg_cost - 1) * 100).toFixed(2) : '0' }}%
每笔交易明细
日期 方向 股票 金额 盈亏
{{ t.trade_date }} {{ t.side==='buy' ? '买' : '卖' }} {{ t.name }}
{{ t.symbol }} × {{ t.shares }}
{{ t.price?.toFixed(2) }} ¥{{ (t.amount || 0).toLocaleString(undefined, {maximumFractionDigits:0}) }} -
无交易记录
🧬 Agent 训练场 — 10 个 Agent 并行进化
每个 Agent 独立 LLM 角色(巴菲特/林奇/动量等),round-robin 训练。 目标:daily_win_rate ≥ 80%(每日盈利天数比例)
{{ expStatus.running ? '🟢 训练中' : '⚪ 已停止' }} 当前 {{ agentLabel(expStatus.current_agent) }} · Gen {{ expStatus.current_generation }} · {{ expStatus.current_stage }} 本会话已跑 {{ expStatus.total_gens_run }} 代 🎯 已达标 {{ expStatus.achieved_count }} / {{ expStatus.total_agents }}
代间隔(秒)
⚙ Round-robin 训练:每代切下一个 Agent 跑 → LLM 看该 Agent 历史生成新 config → 3 年模拟 → 落库 → 继续下一 Agent。每代 ~30-60 秒。
10 个 Agent 进度
点卡片查看该 Agent 的代际细节
{{ a.emoji }} {{ a.display_name }}
{{ a.short }}
代数 {{ a.gens_done || 0 }}
日胜率 {{ a.best_daily_win_rate != null ? (a.best_daily_win_rate * 100).toFixed(1) + '%' : '-' }}
最佳收益 {{ a.best_total_return_pct != null ? a.best_total_return_pct.toFixed(1) + '%' : '-' }}
{{ selectedAgent.emoji }} {{ selectedAgent.display_name }} 的所有代 ({{ expGenerations.length }})
↑ 点上方某个 Agent 卡片查看其代际细节
Gen 日胜率🎯 收益 超额 回撤 夏普 交易 下代假设
#{{ g.generation }} {{ g.daily_win_rate != null ? (g.daily_win_rate * 100).toFixed(1) + '%' : '-' }} {{ g.total_return_pct != null ? (g.total_return_pct > 0 ? '+' : '') + g.total_return_pct.toFixed(2) + '%' : '-' }} {{ g.excess_return_pct != null ? (g.excess_return_pct > 0 ? '+' : '') + g.excess_return_pct.toFixed(2) + '%' : '-' }} {{ g.max_drawdown_pct != null ? g.max_drawdown_pct.toFixed(1) + '%' : '-' }} {{ g.sharpe_ratio != null ? g.sharpe_ratio.toFixed(2) : '-' }} {{ g.total_trades || '-' }} {{ g.next_hypothesis || '-' }}
🌱
{{ selectedAgent.display_name }} 还没跑过代,启动循环后会自动训练
👆
请先点上方的 Agent 卡片
🧠 {{ selectedAgent.display_name }} 的记忆库
evolver 会自动把这些塞进下代决策的 system prompt 里
🧬 长期信念 ({{ agentMemories.long?.length || 0 }}/5) · 每 15 代蒸馏
{{ m.title }} ·重要度 {{ m.importance?.toFixed(2) }}
{{ m.content }}
还没有长期信念(需累计 15+ 代)
📋 中期规则 ({{ agentMemories.mid?.length || 0 }}/10) · 每 5 代蒸馏
{{ m.title }} ·Gen {{ m.generation }} ·重要度 {{ m.importance?.toFixed(2) }}
{{ m.content }}
还没有中期规则
📝 短期观察 ({{ agentMemories.short?.length || 0 }}/5) · 每代蒸馏
{{ m.title }} ·Gen {{ m.generation }}
{{ m.content }}
还没有观察
🏆 全局排行榜(按 日胜率 排序)
Agent / Gen日胜率超额收益
{{['🥇','🥈','🥉'][i]}} {{ agentLabel(r.agent_name).slice(0,6) }} #{{ r.generation }} {{ r.daily_win_rate != null ? (r.daily_win_rate * 100).toFixed(1) + '%' : '-' }} {{ r.excess_return_pct != null ? (r.excess_return_pct > 0 ? '+' : '') + r.excess_return_pct.toFixed(1) + '%' : '-' }} {{ r.total_return_pct != null ? (r.total_return_pct > 0 ? '+' : '') + r.total_return_pct.toFixed(1) + '%' : '-' }}
还没有已完成的代
Gen #{{ expSelectedGen.generation }} 详情
日胜率(目标 ≥ 80%)
{{ expSelectedGen.daily_win_rate != null ? (expSelectedGen.daily_win_rate * 100).toFixed(1) + '%' : '-' }} 🎯
累计收益
{{ expSelectedGen.total_return_pct != null ? expSelectedGen.total_return_pct.toFixed(2) + '%' : '-' }}
超额收益
{{ expSelectedGen.excess_return_pct != null ? (expSelectedGen.excess_return_pct > 0 ? '+' : '') + expSelectedGen.excess_return_pct.toFixed(2) + '%' : '-' }}
最大回撤
{{ expSelectedGen.max_drawdown_pct != null ? expSelectedGen.max_drawdown_pct.toFixed(2) + '%' : '-' }}
夏普 / 交易
{{ expSelectedGen.sharpe_ratio != null ? expSelectedGen.sharpe_ratio.toFixed(2) : '-' }} / {{ expSelectedGen.total_trades || 0 }} 笔
💡 本代假设
{{ expSelectedGen.next_hypothesis }}
查看 config 全文
{{ JSON.stringify(expSelectedGen.config, null, 2) }}
📝 经验 / 复盘
3 年多策略累计收益曲线
样本 {{ summaryS.settled_records }}/{{ summaryS.total_records }} 已结算 · 日期范围 {{ summaryS.trade_date_range?.min || '-' }} ~ {{ summaryS.trade_date_range?.max || '-' }}
注:曲线为各策略当日 buy 推荐的简化日均收益累积净值,与基准沪深 300 同坐标对比。仅供研究。
策略排行榜
策略 样本 命中率 胜率 平均收益 超额收益 最大盈/亏
{{ strategyLabel(row.strategy) }} 🏆 {{ row.samples }} {{ (row.hit_rate*100).toFixed(1) }}% {{ (row.win_rate*100).toFixed(1) }}% {{ row.avg_return > 0 ? '+' : '' }}{{ row.avg_return.toFixed(2) }}% {{ row.avg_excess_return > 0 ? '+' : '' }}{{ row.avg_excess_return.toFixed(2) }}% {{ row.max_gain }}% / {{ row.max_loss }}%
尚无已结算样本,等回测跑出数据
3 年回测控制台
状态{{ btStatus.stage }} {{ btStatus.running ? '...' : '' }}
进度{{ btStatus.done_dates }}/{{ btStatus.total_dates }} 日
累计预测{{ btStatus.total_predictions }}
错误数{{ btStatus.errors }}
当前日期{{ btStatus.last_date }}
开始时间{{ btStatus.started_at }}
查看某策略每日预测
{{ r.trade_date }} {{ r.name }} ({{ r.symbol }}) {{ actionLabel(r.action) }} {{ r.actual_return == null ? '…' : (r.actual_return > 0 ? '+' : '') + r.actual_return.toFixed(2) + '%' }}
{{ r.reasoning?.slice(0, 80) }}
该策略尚无记录
最近推荐复盘
日期股票动作实际%基准%命中
{{ r.trade_date }} {{ r.name }} {{ r.symbol }} {{ actionLabel(r.action) }} {{ r.actual_return != null ? (r.actual_return > 0 ? '+' : '') + r.actual_return.toFixed(2) : '待结算' }} {{ r.benchmark_return != null ? r.benchmark_return.toFixed(2) : '-' }}
暂无推荐记录
命中率统计
{{ stats.recent_50?.hit_rate != null ? (stats.recent_50.hit_rate*100).toFixed(0) + '%' : '-' }}
最近 {{ stats.recent_50?.total || 0 }} 条已结算
{{ actionLabel(k) }} {{ v.hits }}/{{ v.total }} ({{ ((v.hit_rate||0)*100).toFixed(0) }}%) 平均 {{ v.avg_return }}%
因子权重 {{ stats?.factor_weights?.version }}
{{ factorLabel(k) }}
{{ (v*100).toFixed(0) }}%
Prompt 命中率
{{ k }} {{ v.hits }}/{{ v.total }} ({{ (v.hit_rate*100).toFixed(0) }}%)
⚠ 本站所有内容由 AI 自动生成,仅供研究参考,不构成投资建议。股市有风险,决策需谨慎。