L

LH3 策略控制台

Quantitative Strategy Lab
用户 {{ currentUser }}
系统运行中
🔬

多因子策略配置引擎

支持 固定因子策略动态因子轮动 二选一配置,样本外独立回测

配置流程
请依次配置五个阶段:标的池、因子模式、因子配置、交易风控、回测发布。
🏛️

策略广场

查看已发布策略、净值表现、最新持仓与训练参数。

1

分析标的池

{{ getCustomPoolDesc() }}

建议先用系统标的池快速验证逻辑;自定义代码适合验证熟悉的股票、ETF或小范围组合。
3

{{ customConfig.dynamic_factor_enabled ? '配置动态候选因子' : '扫描并选择固定因子' }}

{{ customConfig.dynamic_factor_enabled ? '候选' : '已选' }} {{ customConfig.dynamic_factor_enabled ? getCustomDynamicCandidateLabel() : getCustomStaticFactorLabel() }}
固定模式默认使用当前资产类型的全量可用因子;ETF 池会纳入 Alpha191 和 ETF 扩展因子。{{ customAvailableFactorsLoading ? '正在加载因子池...' : getCustomAvailableFactorSummary() }}
动态轮动与候选池

动态模式只使用候选范围做滚动评估;每期最多选出一部分当期有效因子。候选池不是固定持有的因子组合,风险仓位过滤在第四阶段统一配置。

{{ customConfig.dynamic_candidate_mode === 'all' ? '系统扫描当前资产类型所有可用因子,再按覆盖率和有效性过滤。' : customConfig.dynamic_candidate_mode === 'selected' ? '下方选择的因子只作为候选池,实际生效因子仍会按窗口重新筛选。' : '仅在输入列表中的因子里做动态轮动。' }}

必选因子会优先纳入每期动态因子池,并自动从排除列表中移除。

因子聚合

固定因子和动态因子共用;按数据相关性聚类,不按主观 family 分组。

{{ customConfig.dynamic_factor_enabled ? '动态模式在每个滚动窗口内生成复合因子,再由轮动规则选择。' : '固定模式使用回测起点前的历史窗口生成复合因子,回测期只套用已确定的聚类结构;固定聚合仅使用截面排序相关,避免未来函数。' }}

动态参数批量搜索

单次回测使用当前参数;批量搜索会在当前参数附近寻找更优组合。发布入口统一放在第五阶段。

状态:{{ dynamicSearchStatus.status }}
{{ dynamicSearchStatus.msg }}
# 评分 年化 回撤 夏普
{{ r.idx }} {{ r.pool }} {{ Number(r.score || 0).toFixed(1) }} {{ (r.annual_return * 100).toFixed(1) }}% {{ (r.max_drawdown * 100).toFixed(1) }}% {{ Number(r.sharpe_ratio || 0).toFixed(2) }}
当前最佳策略
第 {{ dynamicSearchStatus.best.idx }} 组 · {{ dynamicSearchStatus.best.pool }}
综合评分
{{ Number(dynamicSearchStatus.best.score || 0).toFixed(1) }}
{{ f.id }}{{ f.direction === -1 ? '反' : '正' }} · {{ (Number(f.weight || 0) * 100).toFixed(1) }}% · {{ f.member_count }}源
如需发布搜索最佳结果,请进入第五阶段“回测与发布”。
{{ customConfig.dynamic_factor_enabled ? '候选因子套件' : '快捷因子套件' }}

{{ customConfig.dynamic_factor_enabled ? '这里选择的是动态候选池,不代表全程固定使用;实际入选因子由滚动窗口决定。' : '建议先扫描当前标的池,按 IC、ICIR、Top-Bottom 和推荐方向选择;因子过多会增加训练时间,也可能过拟合。' }}

{{ cat.icon }} {{ cat.name }} {{ cat.factors.filter(f => isFactorSelected(f.id)).length > 0 ? cat.factors.filter(f => isFactorSelected(f.id)).length + '个已选' : '' }} 共{{ cat.factors.length }}个
{{ isCustomFactorCategoryExpanded(cat) ? '▲' : '▼' }}
{{ f.id }}
{{ customConfig.dynamic_factor_enabled ? '动态候选因子列表' : '固定因子列表' }}
{{ sf.id }} ×
2

选择因子模式

Ridge 工作原理: 第三阶段选择固定因子池,第四阶段选择训练年份和正则强度;模型在训练集中拟合 因子值 → N日后收益率, 自动学习各因子的正负系数。

对已选因子进行 横截面Rank百分位化,按权重和方向加权。正向因子取高排名,反向因子取低排名。

动态模式不会同时使用固定模型配置。下一阶段默认从全量可用因子开始筛选;回测时按历史窗口滚动评估,实际生效因子会随时间变化。

{{ customConfig.dynamic_model === 'ridge' ? '每个轮动窗口重新训练 Ridge 系数;样本不足时自动回退为加权打分。' : '每个轮动窗口先筛因子,再按有效性/ICIR/多空收益等方法加权打分。' }}

{{ customConfig.dynamic_ridge_alpha }}
4

交易与风控参数

建议与调仓频率一致

{{ customConfig.dynamic_factor_enabled ? '改动后建议重新跑动态回测' : '改动后建议重新扫描因子' }}

测试集: {{ customConfig.start_date }} 之后。训练年份尽量早于回测起点,避免信息泄露。
{{ customConfig.ridge_alpha }}

0.06 = 6%

0.05 = 5%

留空使用全局止损;负数会按绝对值处理。

可选固定止盈;不填则不启用固定止盈。

市场风险仓位过滤器

组合层动态仓位缩放:坏波动降仓,牛市环境保留仓位地板,未投资部分持现金。

5

回测与发布

当前配置:{{ getCustomPoolDesc() || customConfig.pool }} · {{ getCustomStrategyModeLabel() }} · {{ customConfig.dynamic_factor_enabled ? getCustomDynamicCandidateLabel() : getCustomStaticFactorLabel() }} · 因子聚合{{ isFactorAggregationEnabled(customConfig) ? '开' : '关' }} · 每 {{ customConfig.rebalance_days || 10 }} 交易日调仓 · Top {{ customConfig.top_n }} · 弱势过滤{{ customConfig.use_trend_filter ? '开' : '关' }} · 风险仓位过滤{{ customConfig.use_market_risk_control ? '开' : '关' }}。
发布动态搜索最佳

第 {{ dynamicSearchStatus.best.idx }} 组 · {{ dynamicSearchStatus.best.pool }} · 评分 {{ Number(dynamicSearchStatus.best.score || 0).toFixed(1) }}

{{ dynamicSearchStatus.published_strategy_id ? '已发布 #' + dynamicSearchStatus.published_strategy_id : '等待发布' }}
⚠️
{{ customResults.warning_msg }}
市场风险仓位过滤器
组合层动态仓位缩放,未投资部分持现金
{{ customResults.risk_control.extreme_risk ? '极端风险模式' : '常规动态模式' }}
{{ m.label }}
{{ (() => { const val = customResults.risk_control[m.key]; if (val === undefined || val === null || isNaN(val)) return '--'; return m.pct ? (val * 100).toFixed(2) + '%' : val.toFixed(2); })() }}
总收益率
{{ (customResults.metrics.total_return * 100).toFixed(2) }}%
年化收益率
{{ (customResults.metrics.annual_return * 100).toFixed(2) }}%
最大回撤
{{ (customResults.metrics.max_drawdown * 100).toFixed(2) }}%
夏普比率
{{ customResults.metrics.sharpe_ratio.toFixed(2) }}

分段回测表现

按自然年切分,收益和回撤在每个分段内独立计算;风险过滤开启时展示仓位与现金比例。

{{ customResults.segment_metrics.length }} 段
分段 区间 累计收益 年化收益 最大回撤 夏普 波动 交易 平均仓位 最低仓位 平均现金
{{ seg.label }} {{ seg.start_date }} ~ {{ seg.end_date }} {{ formatSegmentValue(seg.total_return, 'pct') }} {{ formatSegmentValue(seg.annual_return, 'pct') }} {{ formatSegmentValue(seg.max_drawdown, 'pct') }} {{ formatSegmentValue(seg.sharpe_ratio, 'num') }} {{ formatSegmentValue(seg.annual_volatility, 'pct') }} {{ seg.trade_count }} {{ formatSegmentValue(seg.avg_exposure, 'pct') }} {{ formatSegmentValue(seg.min_exposure, 'pct') }} {{ formatSegmentValue(seg.avg_cash_weight, 'pct') }}
🧠

Ridge 学习到的因子权重

α={{ customConfig.ridge_alpha }}
权重绝对值越大 → 预测影响越强
{{ fc.factor }}
{{ fc.coef > 0 ? '+' : '' }}{{ fc.coef.toFixed(4) }}
{{ fc.coef > 0 ? '↑多' : '↓空' }}

绿色=正向因子(预测涨)· 红色=负向因子(因子低则预测涨,反转逻辑)· 仅显示前12个影响最大的因子

🔁 动态因子池轮动

{{ customResults.dynamic_factor_summary.update_freq }}更新 · {{ customResults.dynamic_factor_summary.model === 'ridge' ? '滚动Ridge' : '加权打分' }} · 回看 {{ customResults.dynamic_factor_summary.lookback_months }} 个月 · 每期最多 {{ customResults.dynamic_factor_summary.top_factor_count }} 因子 · 候选 {{ customResults.dynamic_factor_summary.candidate_factor_count }} 个 · {{ getDynamicAggregationLabel(customConfig, customResults.dynamic_factor_summary) }}

已完成 {{ customResults.dynamic_factor_summary.rotation_count }} 次有效轮动
最新有效因子池
{{ f.id }}{{ f.direction === -1 ? '反' : '正' }} · {{ (Number(f.weight || 0) * 100).toFixed(1) }}% · {{ f.member_count }}源 暂无有效因子池,可能过滤条件过严。
更新日 训练窗口 因子数 有效性均分 入选因子
{{ r.update_date }} {{ r.train_start }} ~ {{ r.train_end }} {{ r.factor_count }} {{ Number(r.avg_effectiveness_score || 0).toFixed(1) }} {{ f.id }}{{ f.direction === -1 ? '反' : '正' }}({{ f.member_count }}) 等 {{ r.factor_count }} 个 本期无有效因子

策略净值曲线 (NAV)

基准:1.0000
回测区间: {{ customConfig.start_date }} 至 {{ customResults.latest_date }}

当前最新持仓权重

{{ customResults.risk_control && customResults.risk_control.enabled ? '已按市场风险过滤缩放,剩余资金持现金' : '按当前持仓数量等权展示' }}

风险过滤
代码 类别 权重
{{ row.code }} {{ row.type }} {{ (row.weight * 100).toFixed(2) }}%
当前无持仓信号 (空仓避险中)

最近 10 次交易动态

日期 标的 方向 价格 成交占净值 当前目标权重
{{ getTradeDate(t) }} {{ t.code }} {{ t.side }} {{ t.price != null ? t.price.toFixed(2) : '--' }} {{ formatTradeWeight(t, customResults, 'amount') }} {{ formatTradeWeight(t, customResults, 'target') }}

最新一期标的因子判断明细

展示当前选中标的的总分、排名和主要因子贡献;完整历史可导出 Excel。

本期推荐 {{ getLatestFactorDecisionRows(customResults).length }} 只标的 判断日 {{ getLatestFactorDecisionRows(customResults)[0]?.decision_date || '--' }} 因子按得分贡献绝对值排序,导出包含全部历史判断
推荐顺序 标的代码 判断日 执行日 标的排名 综合得分 因子数
{{ idx + 1 }} {{ row.code }} {{ row.decision_date || '--' }} {{ row.execution_date || '--' }} #{{ row.rank || '-' }} {{ formatFactorNumber(row.score, 4) }} {{ row.factor_count || (row.factor_details ? row.factor_details.length : 0) }}
{{ row.code }} 因子贡献明细
排名 #{{ row.rank || '-' }} · 综合得分 {{ formatFactorNumber(row.score, 4) }} · 展示贡献最高的 {{ getTopFactorDetails(row, 10).length }} 个因子
{{ row.decision_date || '--' }} -> {{ row.execution_date || '--' }}
因子名称 / ID 方向 权重 原始值 截面Rank 得分贡献 复合成员
{{ d.factor_name || d.factor_id }}
{{ d.factor_id }}
{{ d.direction === -1 ? '反向' : '正向' }} {{ formatFactorNumber(d.weight, 3) }} {{ formatFactorNumber(d.raw_value, 4) }} {{ formatFactorNumber(d.rank, 3) }} {{ formatFactorNumber(d.contribution, 4) }} {{ d.member_count ? d.member_count + ' 个' : '-' }}
当前回测结果暂无因子判断明细,请重新运行一次回测生成。
🧪

尚未运行策略回测

在左侧配置参数并点击“启动回测”开始分析

1. 标的池
默认 ETF 主池更快,适合先确认流程。
2. 因子
可直接使用 Ridge精选15因子,之后再做全量评估。
3. 结果
重点查看收益、回撤、夏普和最新持仓。
🏛️

策略广场暂无记录

{{ customSquareLoadError }}

运行回测后点击"发布到广场"即可在此查看

策略广场
{{ customSquareStrategies.length }}
已发布策略
{{ s.name }}
{{ s.metrics && s.metrics.metrics && s.metrics.metrics.total_return != null ? (s.metrics.metrics.total_return * 100).toFixed(1) + '%' : '-' }}
夏普
{{ s.metrics && s.metrics.metrics && s.metrics.metrics.sharpe_ratio != null ? s.metrics.metrics.sharpe_ratio.toFixed(2) : '-' }}
回撤
{{ s.metrics && s.metrics.metrics && s.metrics.metrics.max_drawdown != null ? (s.metrics.metrics.max_drawdown * 100).toFixed(1) + '%' : '-' }}
交易
{{ s.metrics && s.metrics.trades ? s.metrics.trades.length : 0 }}
{{ s.updated_at ? s.updated_at.split(' ')[0] : '' }} · {{ s.config && s.config.pool }} 风险过滤
Selected Strategy

{{ getSelectedSquareStrategy().name }}

创建时间: {{ getSelectedSquareStrategy().created_at }} | 用户: {{ getSelectedSquareStrategy().user_id }}

🛡️已启用市场风险仓位过滤器
⚠️
{{ getSelectedSquareStrategy().metrics.warning_msg }}

每日价差策略表

交易日: {{ getSelectedSquareStrategy().metrics.latest_date }} · 共 {{ getSelectedSquareStrategy().metrics.daily_strategy_table.length }} 条策略建议

实时汇总
覆盖策略
{{ getSelectedSquareStrategy().metrics.total_strategy_count || getSelectedSquareStrategy().metrics.daily_strategy_table.length }}
当前触发
{{ getSelectedSquareStrategy().metrics.active_signal_count || 0 }}
最新交易日
{{ getSelectedSquareStrategy().metrics.latest_date || '-' }}
数据来源
价差策略模块
策略 类别 信号 对应标的 执行日 最新值 建议 规则 风险提示
{{ row.strategy_name }}
标的:{{ row.target }}
{{ row.legs }}
{{ row.category }} {{ row.signal_type === 'BUY' ? '买入/做多' : (row.signal_type === 'SELL' ? '卖出/做空' : (row.signal_type === 'HOLD' ? '观察' : row.signal_type)) }}
{{ row.target || '-' }}
{{ row.legs }}
{{ row.execution_date || '-' }} {{ row.latest_value != null ? Number(row.latest_value).toFixed(4) : '-' }} {{ row.summary }} {{ row.rule }} {{ row.risk }}
总收益率
{{ getSelectedSquareStrategy().metrics && getSelectedSquareStrategy().metrics.metrics && getSelectedSquareStrategy().metrics.metrics.total_return != null ? (getSelectedSquareStrategy().metrics.metrics.total_return * 100).toFixed(2) + '%' : '-' }}
年化收益率
{{ getSelectedSquareStrategy().metrics && getSelectedSquareStrategy().metrics.metrics && getSelectedSquareStrategy().metrics.metrics.annual_return != null ? (getSelectedSquareStrategy().metrics.metrics.annual_return * 100).toFixed(2) + '%' : '-' }}
最大回撤
{{ getSelectedSquareStrategy().metrics && getSelectedSquareStrategy().metrics.metrics && getSelectedSquareStrategy().metrics.metrics.max_drawdown != null ? (getSelectedSquareStrategy().metrics.metrics.max_drawdown * 100).toFixed(2) + '%' : '-' }}
夏普比率
{{ getSelectedSquareStrategy().metrics && getSelectedSquareStrategy().metrics.metrics && getSelectedSquareStrategy().metrics.metrics.sharpe_ratio != null ? getSelectedSquareStrategy().metrics.metrics.sharpe_ratio.toFixed(2) : '-' }}

分段回测表现

按自然年切分,收益和回撤在每个分段内独立计算;风险过滤开启时展示仓位与现金比例。

{{ getSelectedSquareStrategy().metrics.segment_metrics.length }} 段
分段 区间 累计收益 年化收益 最大回撤 夏普 波动 交易 平均仓位 最低仓位 平均现金
{{ seg.label }} {{ seg.start_date }} ~ {{ seg.end_date }} {{ formatSegmentValue(seg.total_return, 'pct') }} {{ formatSegmentValue(seg.annual_return, 'pct') }} {{ formatSegmentValue(seg.max_drawdown, 'pct') }} {{ formatSegmentValue(seg.sharpe_ratio, 'num') }} {{ formatSegmentValue(seg.annual_volatility, 'pct') }} {{ seg.trade_count }} {{ formatSegmentValue(seg.avg_exposure, 'pct') }} {{ formatSegmentValue(seg.min_exposure, 'pct') }} {{ formatSegmentValue(seg.avg_cash_weight, 'pct') }}

策略净值曲线 (NAV)

基准:1.0000
回测区间: {{ getSelectedSquareStrategy().config && getSelectedSquareStrategy().config.start_date }} 至 {{ getSelectedSquareStrategy().metrics && getSelectedSquareStrategy().metrics.latest_date }}

最新推荐持仓权重

{{ getSelectedSquareStrategy().metrics && getSelectedSquareStrategy().metrics.risk_control && getSelectedSquareStrategy().metrics.risk_control.enabled ? '已按市场风险过滤缩放,剩余资金持现金' : '按当前持仓数量等权展示' }}

风险过滤
代码 类别 权重
{{ row.code }} {{ row.type }} {{ (row.weight * 100).toFixed(2) }}%
当前无持仓信号 (空仓避险中)

最近 10 次交易动态

日期 标的 方向 价格 成交占净值 当前目标权重
{{ getTradeDate(t) }} {{ t.code }} {{ t.side }} {{ t.price != null ? t.price.toFixed(2) : '--' }} {{ formatTradeWeight(t, getSelectedSquareStrategy().metrics, 'amount') }} {{ formatTradeWeight(t, getSelectedSquareStrategy().metrics, 'target') }}
暂无交易记录

最新一期标的因子判断明细

展示该策略最近一次判断选中的标的和主要因子贡献;历史判断可导出。

本期推荐 {{ getLatestFactorDecisionRows(getSelectedSquareStrategy().metrics).length }} 只标的 判断日 {{ getLatestFactorDecisionRows(getSelectedSquareStrategy().metrics)[0]?.decision_date || '--' }} 因子按得分贡献绝对值排序,导出包含全部历史判断
推荐顺序 标的代码 判断日 执行日 标的排名 综合得分 因子数
{{ idx + 1 }} {{ row.code }} {{ row.decision_date || '--' }} {{ row.execution_date || '--' }} #{{ row.rank || '-' }} {{ formatFactorNumber(row.score, 4) }} {{ row.factor_count || (row.factor_details ? row.factor_details.length : 0) }}
{{ row.code }} 因子贡献明细
排名 #{{ row.rank || '-' }} · 综合得分 {{ formatFactorNumber(row.score, 4) }} · 展示贡献最高的 {{ getTopFactorDetails(row, 10).length }} 个因子
{{ row.decision_date || '--' }} -> {{ row.execution_date || '--' }}
因子名称 / ID 方向 权重 原始值 截面Rank 得分贡献 复合成员
{{ d.factor_name || d.factor_id }}
{{ d.factor_id }}
{{ d.direction === -1 ? '反向' : '正向' }} {{ formatFactorNumber(d.weight, 3) }} {{ formatFactorNumber(d.raw_value, 4) }} {{ formatFactorNumber(d.rank, 3) }} {{ formatFactorNumber(d.contribution, 4) }} {{ d.member_count ? d.member_count + ' 个' : '-' }}
该策略暂无因子判断明细,点击导出会尝试按保存配置重新生成。
🔍

训练参数详情

{{ squareParamsStrategy && squareParamsStrategy.name }}

{{ item.label }}
{{ item.value }}
{{ item.hint }}
自定义代码
{{ squareParamsStrategy.config.custom_codes }}
📊 {{ squareParamsStrategy.config.dynamic_factor_enabled ? '② 动态候选因子池' : '② 固定择股因子' }} {{ squareParamsStrategy.config.dynamic_factor_enabled ? getSquareDynamicCandidateLabel(squareParamsStrategy) : ('共 ' + (squareParamsStrategy.config.selected_factors && squareParamsStrategy.config.selected_factors.length || 0) + ' 个') }}
动态模式下这里不是“全程固定使用的因子”。若配置了候选池,每次轮动会从候选池评估;若发布结果保存了最新因子池,也仅作展示,实际生效因子以下方轮动记录为准。
{{ idx + 1 }} {{ fid }} {{ getFactorShortName(fid) }}
{{ getFactorDesc(fid) || '候选因子,轮动时按近期有效性决定是否采用' }}
当前配置为全量候选或未记录候选池,实际采用因子请查看下方轮动记录。
{{ idx + 1 }} {{ f.id }} {{ getFactorShortName(f.id) }} w={{ f.weight != null ? Number(f.weight).toFixed(3) : '-' }}
{{ getFactorFullDesc(f.id) || '暂无因子说明' }}
未选择任何因子
🧩 固定因子聚合 {{ isFactorAggregationEnabled(squareParamsStrategy.config, getStrategyAggregationSummary(squareParamsStrategy)) ? '已启用' : '关闭' }}
{{ getDynamicAggregationLabel(squareParamsStrategy.config, getStrategyAggregationSummary(squareParamsStrategy)) }}。固定模式使用回测起点前历史窗口确定聚类结构,再在回测期套用复合因子。
🔁 动态因子轮动 已启用
每个更新周期只使用当时之前的历史窗口评估因子有效性,再用当期选出的因子组合给标的打分,避免全程固定同一批因子。
更新频率
{{ formatDynamicUpdateFreq(squareParamsStrategy.config.dynamic_update_freq) }}
回看窗口
{{ squareParamsStrategy.config.dynamic_lookback_months || '-' }} 个月
每期最多因子
{{ squareParamsStrategy.config.dynamic_top_factor_count || '-' }}
权重方法
{{ formatDynamicWeightMethod(squareParamsStrategy.config.dynamic_weight_method) }}
最低胜率
{{ squareParamsStrategy.config.dynamic_min_win_rate != null ? (squareParamsStrategy.config.dynamic_min_win_rate * 100).toFixed(0) + '%' : '-' }}
因子保留
{{ squareParamsStrategy.config.dynamic_enable_factor_retention ? ((squareParamsStrategy.config.dynamic_retention_ratio || 0) * 100).toFixed(0) + '%' : '关闭' }}
因子聚合
{{ isFactorAggregationEnabled(squareParamsStrategy.config, getStrategyAggregationSummary(squareParamsStrategy)) ? '开启' : '关闭' }}
{{ getDynamicAggregationLabel(squareParamsStrategy.config, getStrategyAggregationSummary(squareParamsStrategy)) }};组内权重 {{ formatAggregationWeightMethod(squareParamsStrategy.config.factor_aggregation_weight_method || squareParamsStrategy.config.dynamic_factor_aggregation_weight_method) }}。
最近因子轮动记录 有效 {{ getValidFactorRotationCount(squareParamsStrategy) }} 次
{{ r.update_date || '-' }} {{ r.factor_count || 0 }} 个因子
训练 {{ r.train_start || '-' }} 至 {{ r.train_end || '-' }}
{{ f.id }} {{ f.weight != null ? (Number(f.weight) * 100).toFixed(1) + '%' : '' }} · {{ f.member_count }}源 +{{ (r.factors || []).length - 6 }}
🧠 ③ 预测模型配置
选股逻辑模型
{{ squareParamsStrategy.config.dynamic_factor_enabled ? formatDynamicModel(squareParamsStrategy.config) : (squareParamsStrategy.config.model === 'ridge' ? '🔬 Ridge 岭回归' : '⚖️ 线性加权打分') }}
L2正则化强度 (Alpha)
{{ squareParamsStrategy.config.ridge_alpha || '-' }}
训练集年份
{{ yr }} -
预测目标
{{ squareParamsStrategy.config.forward_days || '-' }} 日后收益率
轮动评估目标
{{ squareParamsStrategy.config.forward_days || '-' }} 日后收益率
⚙️ ④ 仓位与交易管理
调仓周期
{{ squareParamsStrategy.config.rebalance_days ? ('📅 每' + squareParamsStrategy.config.rebalance_days + '交易日') : (squareParamsStrategy.config.rebalance_period === '1d' ? '📅 每日' : squareParamsStrategy.config.rebalance_period === 'W' ? '📅 每周' : squareParamsStrategy.config.rebalance_period === 'M' ? '📅 每月' : (squareParamsStrategy.config.rebalance_period || '-')) }}
目标持仓数 Top-N
{{ squareParamsStrategy.config.top_n || '-' }}
权重分配
{{ squareParamsStrategy.config.weighting_method === 'equal' ? '⚖️ 等权' : squareParamsStrategy.config.weighting_method === 'score' ? '📊 得分加权' : '-' }}
固定止损
{{ squareParamsStrategy.config.stop_loss != null ? (squareParamsStrategy.config.stop_loss * 100).toFixed(1) + '%' : '-' }}
追踪止盈
{{ squareParamsStrategy.config.trailing_stop != null ? (squareParamsStrategy.config.trailing_stop * 100).toFixed(1) + '%' : '-' }}
🛡️ ⑤ 市场风险仓位过滤器 已启用
组合层仓位缩放器:坏波动升高时降低总仓位,牛市环境下保留仓位地板;未投资资金保持现金。
风险观测池
{{ squareParamsStrategy.config.risk_observation_pool || '510300,512100,159920,513100,513030,518880,511010' }}
基础目标波动
{{ ((squareParamsStrategy.config.base_target_vol ?? 0.08) * 100).toFixed(1) }}%
波动区间
{{ ((squareParamsStrategy.config.min_target_vol ?? 0.02) * 100).toFixed(1) }}%-{{ ((squareParamsStrategy.config.max_target_vol ?? 0.12) * 100).toFixed(1) }}%
风险厌恶
{{ squareParamsStrategy.config.risk_aversion ?? 0.75 }}
牛市加成
{{ squareParamsStrategy.config.bull_bonus ?? 0.40 }}
暂无训练参数记录
📢

发布策略到广场

让全网用户见证你的策略表现

🔁

动态因子配置

旧弹窗已停用,动态因子功能已合并到第三阶段因子配置。

1. 轮动与交易参数
2. 候选因子池

这些因子会优先纳入每期动态因子池,并自动从排除列表中移除。

3. 稳健过滤
相关性聚类复合因子
4. 市场风险仓位过滤器

动态因子回测/搜索也会携带这些组合层仓位控制参数。

5. 批量搜索
{{ dynamicSearchStatus.msg }}
搜索结果 Top 10
按 年化收益、总收益、夏普、Calmar、回撤惩罚 综合评分排序
状态:{{ dynamicSearchStatus.status }}
# 评分 总收益 年化 回撤 夏普 参数
暂无搜索结果。配置后点击“启动批量搜索”。
{{ r.idx }} {{ r.pool }} {{ Number(r.score || 0).toFixed(1) }} {{ (r.total_return * 100).toFixed(1) }}% {{ (r.annual_return * 100).toFixed(1) }}% {{ (r.max_drawdown * 100).toFixed(1) }}% {{ Number(r.sharpe_ratio || 0).toFixed(2) }} fw{{ r.config.forward_days }}/rb{{ r.config.rebalance_days }}/lb{{ r.config.dynamic_lookback_months }}/F{{ r.config.dynamic_top_factor_count }}/{{ r.config.dynamic_weight_method }}
当前最佳策略
第 {{ dynamicSearchStatus.best.idx }} 组 · {{ dynamicSearchStatus.best.pool }}
综合评分
{{ Number(dynamicSearchStatus.best.score || 0).toFixed(1) }}
总收益
{{ (dynamicSearchStatus.best.total_return * 100).toFixed(1) }}%
年化
{{ (dynamicSearchStatus.best.annual_return * 100).toFixed(1) }}%
回撤
{{ (dynamicSearchStatus.best.max_drawdown * 100).toFixed(1) }}%
夏普
{{ Number(dynamicSearchStatus.best.sharpe_ratio || 0).toFixed(2) }}
{{ f.id }}{{ f.direction === -1 ? '反' : '正' }} · {{ (Number(f.weight || 0) * 100).toFixed(1) }}%
🔍

全量 191 因子效果评估与智能过滤

基于当前标的池 [{{ getCustomPoolDesc() || customConfig.pool }}] 自 {{ customConfig.start_date }} 起按 {{ customConfig.forward_days || customConfig.rebalance_days || 10 }} 日收益进行 IC / ICIR 与分组收益扫描

状态: {{ factorScanStatus.msg }}
{{ rec.name }}
{{ rec.factor_count }}因子
{{ rec.description }}
有效性均分 {{ Number(rec.avg_effectiveness_score || 0).toFixed(1) }}
{{ f.id }}{{ f.direction === -1 ? '反' : '正' }}

🎯 智能过滤与搜索

最少绝对IC值 {{ factorScanFilters.minIc }}
最少绝对ICIR值 {{ factorScanFilters.minIcir }}
当前已勾选因子: {{ Object.values(factorScanSelected).filter(Boolean).length }} 个
因子ID {{ factorScanSortDesc ? '▼' : '▲' }} 名称 / 描述 Rank IC {{ factorScanSortDesc ? '▼' : '▲' }} ICIR {{ factorScanSortDesc ? '▼' : '▲' }} 胜率 {{ factorScanSortDesc ? '▼' : '▲' }} 有效性 {{ factorScanSortDesc ? '▼' : '▲' }} 稳定性 L/S多空收益 推荐方向
暂无数据。请选择标的池并点击「启动全量扫描」开始进行因子效果评估。
没有匹配当前过滤条件的因子,请调整筛选滑块或搜索框。
{{ item.factor_name }}
{{ getFactorChineseName(item.factor_name) }}
{{ item.mean_ic.toFixed(4) }} {{ item.ic_ir.toFixed(4) }} {{ (item.win_rate * 100).toFixed(1) }}% {{ Number(item.effectiveness_score || 0).toFixed(1) }} {{ (Number(item.stability_score || 0) * 100).toFixed(0) }}% {{ item.long_short_diff_pct > 0 ? '+' : '' }}{{ item.long_short_diff_pct.toFixed(3) }}% {{ getScanRecommendation(item).label }}
显示: 共 {{ getFilteredScanResults().length }} 个因子
第 {{ factorScanPage }} / {{ getScanTotalPages() }} 页

Alpha191 因子百科

详细介绍每个因子的逻辑与计算公式,并提供全局因子数据状态展示

因子库总行数
{{ factorDbStatus ? factorDbStatus.db_rows.toLocaleString() : '-' }}
覆盖标的数
{{ factorDbStatus ? factorDbStatus.db_codes : '-' }}
有效时间跨度
{{ factorDbStatus.date_range.min }} {{ factorDbStatus.date_range.max }} -
因子库管理
后台正在执行增量更新: {{ factorDbStatus.msg }} (进度: {{ factorDbStatus.progress }}%)
{{ cat.icon }} {{ cat.name }}
{{ cat.expanded ? '▲' : '▼' }}
{{ f.shortName }} {{ f.id.toUpperCase() }}
📚 请从左侧列表选择一个因子查看详细逻辑
{{ getFactorShortName(selectedFactorId) }} ({{ selectedFactorId.toUpperCase() }}) {{ selectedFactorCategory }}

{{ getSelectedFactorName() }}

数学公式逻辑 {{ getFactorFormula() }}
逻辑释义说明

{{ getFactorInterpretation() }}

欢迎回到 LH3 量化策略实验室

选择一个功能模块开始您的量化分析工作流

Daily Update 行情 · 因子 · 分析师预期
|
{{ dailyUpdateStatus.status || 'running' }} {{ dailyUpdateStatus.progress || 0 }}%
{{ line }}
{{ factorUpdateStatus.status || 'running' }} {{ factorUpdateStatus.progress || 0 }}%
{{ line }}
📡

监控中心

多策略技术分析扫描、K线图表、实时信号监控与投资决策

进入工作区
📈

价差策略

跨期价差、跨品种套利、债券新老券利差与国债期货曲线实时监控

进入工作区
🎯

投资建议汇总

汇总价差策略触发建议与可转债放量/缩量策略增持标的

进入工作区
📊

行业研报

AI驱动的多维行业深度研究报告,涵盖科技、消费、金融等核心领域趋势分析

进入工作区
⚙️

基本面筛选

黑色系商品基本面量化分析、多因子评分与策略回测

进入工作区
🧪

多因子策略

基于趋势、动量、成交量的三因子轮动策略,支持自动化回测与持仓推荐

进入工作区
🎨

因子策略

基于因子扫描、方向确认与多因子打分构建策略,并发布到策略广场

进入工作区
🏛️

策略广场

独立查看已发布策略的净值、指标、持仓、交易记录与训练参数

进入工作区

系统配置

数据源、扫描参数、策略全局配置管理

进入工作区
🔧

常用工具

自定义量化处理脚本、数据下载与文件管理工具

进入工作区
🌐

海外联动ETF择时

半导体159516 + 通信515880 · 海外资产联动风险过滤

进入工作区
🏹

宽基择时

A1模型·上证50/沪深300/中证500/中证1000趋势择时

进入工作区
👤

用户管理

管理员后台:用户审批、权限管理与系统监控

进入工作区
{{ new Date().toLocaleDateString('zh-CN', { year: 'numeric', month: 'long', day: 'numeric', weekday: 'long' }) }}
🎯

投资建议汇总

独立汇总当前触发的价差策略投资建议,并展示低估转债推荐;建议每周更新一次。

每周更新一次 仅保留明确建议 价差策略汇总 可转债 Excel
更新频率:{{ investmentAdvice?.update_cycle_label || '每周更新一次' }};点击更新会同步刷新价差策略缓存,并重新读取可转债 Excel。
最近生成:{{ investmentAdvice?.generated_at || '-' }}
{{ investmentAdviceError }}
价差覆盖策略
{{ investmentAdvice?.spread?.total_strategy_count || 0 }}
价差触发建议
{{ investmentAdvice?.spread?.active_signal_count || 0 }}
转债增持标的
{{ investmentAdvice?.convertible_bond?.count || 0 }}
最新交易日
{{ investmentAdvice?.spread?.latest_date || '-' }}

价差策略投资建议

来自价差策略模块,已过滤观察/未触发行,仅展示有投资建议的策略。

{{ investmentAdvice?.spread?.categories?.join(' / ') || '暂无分类' }}
正在加载投资建议...
🧭
当前价差策略暂无明确投资建议

全部价差策略仍在覆盖范围内,但观望行已从汇总中隐藏。

{{ formatAdviceSignal(row.signal_type) }} {{ row.category }}

{{ row.strategy_name }}

{{ row.subtitle }}

{{ row.summary }}

触发规则
{{ row.rule }}
对应标的
{{ row.target || '-' }}
{{ row.legs }}
风险提示:{{ row.risk }}
{{ row.chart_preview.name }}
近 {{ row.chart_preview.points.length }} 点
{{ level.label }}
执行日
{{ row.execution_date || '-' }}
最新值
{{ row.latest_value != null ? Number(row.latest_value).toFixed(4) : '-' }}
Convertible Bond

低估转债推荐

自动读取 · {{ investmentAdvice.convertible_bond.latest_updated || '-' }}
{{ investmentAdvice.convertible_bond.warning_msg }}
当前可转债文件暂无推荐记录。
代码 简称 行业 成交放量 平价底价溢价率 收盘价 评级 YTM 债券余额 过去一月
{{ bond.code }} {{ bond.name }} {{ bond.industry || '-' }} {{ formatAdviceNumber(bond.volume_signal, 4) }} {{ formatAdviceNumber(bond.premium_rate, 4) }} {{ formatAdviceNumber(bond.close, 3) }} {{ bond.rating || '-' }} {{ formatAdviceNumber(bond.ytm, 4) }} {{ formatAdviceNumber(bond.balance, 4) }} {{ formatAdviceNumber(bond.month_change, 4) }}%
📈

价差策略监控

实时运行价差策略源码逻辑,生成网页动态图表;不读取历史表格或旧图片。

Choice 实时取数 动态拉伸图表 独立模块维护

策略列表

正在加载策略列表...
当前样本
起始{{ spreadData.date_range.start }}
结束{{ spreadData.date_range.end }}
生成{{ spreadData.updated_at }}
来源{{ spreadData.from_cache ? '缓存命中' : '实时生成' }}
点数{{ getSpreadPointCount() }}
{{ spreadError }}
观望

暂时无建议

当前最新数据未触发该策略预设的买入、正套或卖空阈值,建议保持观察,等待下一交易日数据更新后重新评估。

该提示仅表示规则未触发,不构成对现有持仓的止盈、止损或清仓建议。

最新日期
{{ spreadData.date_range.end }}
状态
未触发
{{ rec.type === 'WATCH' ? '关注' : rec.action }}

{{ rec.title }}

{{ rec.summary }}

风险提示:{{ rec.risk }}

信号日
{{ rec.signal_date }}
建议执行
{{ rec.execution_date }}
最新值
{{ Number(rec.latest_value).toFixed(3) }}
触发规则:{{ rec.rule }}
{{ m.label }}
{{ formatSpreadMetric(m) }}

{{ section.title }}

{{ item }}

{{ spreadData ? spreadData.name : '价差策略图表' }}

{{ spreadData ? spreadData.subtitle : '请选择左侧策略生成图表' }}

图例 已精简
{{ s.name }}
正在调用 Choice 实时取数并计算...
首次生成通常 20-60 秒;成功后 30 分钟内切换秒开。
鼠标悬浮显示日期
🔮

朝阳永续 · 分析师预期修正动量

基于事件驱动的分析师预期差模型:捕捉公告后分析师群体上修共识,输出个股综合动量评分

{{ zyyxProgress }}

已耗时 {{ zyyxElapsed }} 秒
🔮

点击上方按钮加载分析师预期数据

⚠️

加载失败

{{ zyyxError }}

信号日期
{{ zyyxSummary.latest_date }}
正向 / 总数
{{ zyyxSummary.positive_count }}/ {{ zyyxSummary.total_stocks }}
正向占比
{{ (zyyxSummary.positive_ratio * 100).toFixed(1) }}%
历史信号日
{{ zyyxSummary.available_dates?.length || 0 }} 天

Top 20 个股信号

点击股票查看近期研报摘要
# 代码 名称 得分 净上修 Z_EPS Z_NP 超预期 分析师 事件日 事件类型
🥇 🥈 🥉 {{ i + 1 }} {{ s.股票代码 }} {{ s.股票名称 || s.股票代码 }} {{ s.score?.toFixed(4) || '--' }} {{ (s.net_up_ratio * 100)?.toFixed(1) }}% {{ s.avg_z_eps?.toFixed(4) || '--' }} {{ s.avg_z_np?.toFixed(4) || '--' }} {{ (s.flip_cyq_ratio * 100)?.toFixed(1) }}% {{ s.n_valid_analyst }} {{ s.event_dt }} {{ s.event_types }}

因子体系说明

1.事件驱动:公司发布业绩预告/快报/财报时触发,回溯窗口内分析师预期变化
2.同口径对比:同一分析师、同一预测年度的前后预测对比
3.行业×分析师 Z-score:在分析师所属行业历史样本≥10次时标准化
4.多年度加权:Y0=0.6 / Y1=0.3 / Y2+=0.1
5.共识合成:净上修比例 + EPS/NP强度 + 超预期情绪
⚠ 因子数据当前不可用 (最近一次计算失败,旧数据已失效)

{{ zyyxSummary.status.last_error }}

🔮

暂无分析师预期修正动量数据

{{ zyyxSummary && zyyxSummary.error ? ('最近一次计算失败: ' + zyyxSummary.error) : '首次运行需要计算全量历史截面,请点击「加载数据」' }}

{{ zyyxReportStock.stock_name || zyyxReportStock.code }} 近 7 日研报摘要

暂无研报数据
{{ r.date }} 分析师 {{ r.analyst_id }} 超预期 首次强推

{{ r.title }}

{{ fy.year }}年 EPS {{ fy.eps }} {{ fy.np_yi }}亿

任务配置

* 支持多种分隔符,系统自动识别 (如输入 1 识别为 000001)


{{ getLogicHint() }}

执行进度

{{ index + 1 }}
{{ step.label }}
标的过滤:
请在左侧输入标的并开始执行 所选标的均未触发信号
📈 标的回测 📊 全局回测
🎯 当前投资建议 [{{ currentCode }}]
{{ getLatestDecision(currentCode).type === 'BUY' ? '建议买入' : '建议卖出' }}
建议成交时间: {{ getLatestDecision(currentCode).datetime }}
当前暂无操作建议 (持币观望或继续持筹)
判断依据
{{ getLatestDecision(currentCode)?.logic || '根据选定策略,当前未触发任何买卖信号。' }}
{{ currentCode }} 历史信号明细
📈 回测报告
成交时间 逻辑触发时点 策略 类型 执行价格 逻辑描述 操作
{{ sig.datetime }} {{ sig.trigger_time || '-' }} {{ sig.strategy.split('_')[0] }} {{ sig.type === 'BUY' ? '买' : '卖' }} {{ sig.price.toFixed(2) }} {{ sig.logic }}

图表分析 {{ currentCode }}{{ currentPeriod ? ' (' + currentPeriod + ')' : '' }}

(未选择)

策略字典

{{ strategyList.length }} 个内置策略
{{ showStrategyDict ? '收起' : '展开查看' }}
点击策略卡片查看判定逻辑与适用场景

{{ strat.name }}

{{ strat.id }}

{{ strat.desc }}

判定逻辑: {{ strat.logic }}
建议周期: {{ strat.period || '多周期适用' }}
点击展开

研报库

正在生成研报... {{ techResearchTaskStatus.progress }}%
{{ techResearchTaskStatus.logs[techResearchTaskStatus.logs.length - 1] }}
正在检索最新研报...

{{ selectedReport.title }}

发布时间: {{ selectedReport.date }}
研究机构: {{ selectedReport.author }}
热度: {{ selectedReport.heat }}
确定性: {{ selectedReport.certainty }}%

摘要 (Summary)

{{ selectedReport.summary }}

{{ section.title }}

{{ section.content }}

{{ detail }}
{{ cell }}
{{ cell }}

引用数据源 (Data Sources)

📖

选择一份研究报告

点击左侧列表查看深度产业研究与宏观分析。

⚙️

策略参数配置

全选 / 取消全选
{{ f.name }}
描述:{{ f.desc }}
公式: {{ f.formula }}
{{ metric.label }}
{{ (() => { const val = etfRotationPerformance.find(p=>p.series==='strategy')?.[metric.key]; if (val === undefined || isNaN(val)) return '--'; return metric.isPct ? (val * 100).toFixed(2) + '%' : val.toFixed(2); })() }}
执行中: {{ etfStatus.logs[etfStatus.logs.length-1] }} {{ etfStatus.progress }}%
📊

{{ etfRotationLatestHoldings.type === 'completed_cycle' ? '上一调仓周期持仓详情' : '当前持仓组合实时盈亏' }}

{{ etfRotationLatestHoldings.date }} 持仓起始: {{ etfRotationLatestHoldings.portfolio_date }}
{{ h.name }} {{ h.code }}
基准 / 最新 {{ h.entry_price.toFixed(3) }} / {{ h.latest_price ? h.latest_price.toFixed(3) : '--' }}
区间收益 {{ h.return !== null ? (h.return * 100).toFixed(2) + '%' : '--' }}

{{ etfRotationLatestHoldings.type === 'completed_cycle' ? '已完成调仓周期组合收益' : '当前组合持仓期间累计收益' }}

{{ ((etfRotationLatestHoldings.total_return !== undefined ? etfRotationLatestHoldings.total_return : calculateTotalLatestReturn()) * 100).toFixed(2) }}%

组合逻辑:等权持有 Top {{ etfRotationLatestHoldings.holdings.length }} 标的

数据周期:{{ etfRotationLatestHoldings.date }} ({{ etfRotationLatestHoldings.type === 'completed_cycle' ? '完整周期' : '进行中' }})

策略累计净值走势图

-
策略
基准指数

最近 20 次调仓记录历史

展示最新执行的调仓详情

执行日期 信号日期 标的详情 现金状态 仓位 期间收益
{{ item.exec_date }} {{ item.signal_date }}
{{ w.split(':')[0] }} {{ (parseFloat(w.split(':')[1])*100).toFixed(1) }}%
空仓/无信号
{{ (item.cash_after_open*100).toFixed(2) }}% {{ item.n_positions }} {{ item.period_return !== null ? (item.period_return * 100).toFixed(2) + '%' : '--' }}
暂无数据,请先运行回测
🌐

海外联动 · ETF择时

基于美国半导体/通信海外联动,对ETF进行风险过滤择时

🌐
半导体ETF 159516
策略年化
{{ semiData.backtest.strategy.annual_return }}%
Sharpe {{ semiData.backtest.strategy.sharpe }}
📡
通信ETF 515880
{{ commData.latest_signal.action }} {{ commData.latest_signal.risk_state === 'Risk-On' ? '风险开启' : commData.latest_signal.risk_state === 'Risk-Off' ? '风险规避' : commData.latest_signal.risk_state === 'Recovery Watch' ? '修复观察' : '修复确认' }}
策略年化
{{ commData.backtest.strategy.annual_return }}%
Sharpe {{ commData.backtest.strategy.sharpe }}
🏦
银行ETF 516310
组合总收益
{{ ((bankData.combined.stats.totalReturn || 0) * 100).toFixed(1) }}%
银行触发 {{ bankData.combined.stats.bankTradeDays }} 天

{{ semiProgress }}

已耗时 {{ semiElapsed }} 秒
🌐

点击上方按钮加载半导体信号数据

首次加载约需 3-5 秒

⚠️

加载失败

{{ semiError }}

当前信号
{{ semiData.latest_signal.action }}
强度: {{ semiData.latest_signal.signal_strength || '--' }}
风险状态
{{ semiData.latest_signal.risk_state === 'Risk-On' ? '风险开启' : semiData.latest_signal.risk_state === 'Risk-Off' ? '风险规避' : '极端规避' }}
全球压力
{{ semiData.latest_signal.global_stress.toFixed(4) }}
日韩开盘跳空
{{ semiData.latest_signal.asia_gap_mean != null ? (semiData.latest_signal.asia_gap_mean > 0 ? '+' : '') + semiData.latest_signal.asia_gap_mean + '%' : '--' }}
信号强度
{{ semiData.latest_signal.signal_strength || '--' }}
{{ semiData.latest_signal.strength_note || '' }}
💡
策略解读

{{ semiData.latest_signal.explanation }}

策略年化收益
{{ semiData.backtest.strategy.annual_return }}%
基准年化收益
{{ semiData.backtest.benchmark.annual_return }}%
策略Sharpe
{{ semiData.backtest.strategy.sharpe }}
策略最大回撤
{{ semiData.backtest.strategy.max_drawdown }}%
持仓比例
{{ semiData.backtest.long_ratio }}%
胜率
{{ semiData.backtest.strategy.win_rate }}%
索提诺比率
{{ semiData.backtest.strategy.sortino || '--' }}
回测区间
{{ semiData.backtest.period }}
{{ semiData.backtest.total_trading_days }}个交易日

海外标的监控

加载海外数据中...
美股数据源日期: {{ semiData.latest_signal.us_source_date }}
日韩数据源日期: {{ semiOverseasData.asia_latest_date }}

因子分解

US 综合压力 {{ semiData.latest_signal.factors.global_stress.toFixed(4) }}
低压力阈值: {{ semiData.latest_signal.factors.risk_threshold }}极端: {{ semiData.latest_signal.factors.extreme_threshold }}
US 方向
{{ semiData.latest_signal.factors.us_direction.toFixed(4) }}
同步下跌数
{{ semiData.latest_signal.factors.synchronous_down_count }}
亚洲跳空均值
{{ semiData.latest_signal.factors.asia_gap_mean != null ? (semiData.latest_signal.factors.asia_gap_mean * 100).toFixed(2) + '%' : '--' }}
跨市场压力
{{ semiData.latest_signal.factors.asia_cross_stress != null ? semiData.latest_signal.factors.asia_cross_stress.toFixed(4) : '--' }}

策略净值 vs 买入持有

策略 买入持有 超额(右轴)

近期信号明细 (最近60个交易日)

日期 信号 风险状态 全球压力 ETF收益% 策略收益%
{{ r.trade_date }} {{ r.signal === 1 ? '做多' : '空仓' }} {{ r.risk_state === 'Risk-On' ? '做多' : r.risk_state === 'Risk-Off' ? '空仓' : '极端空仓' }} {{ r.global_stress != null ? r.global_stress.toFixed(4) : '--' }} {{ r.etf_return > 0 ? '+' : '' }}{{ r.etf_return }}% {{ r.strategy_return > 0 ? '+' : '' }}{{ r.strategy_return }}%
数据来源: Choice/EMQuant · 海外标的: SOXX / AMAT / LRCX / 三星电子 / SK海力士 / 东京电子 · 仅用于研究,不构成投资建议 · 更新于 {{ semiData.updated_at }}

{{ commProgress }}

已耗时 {{ commElapsed }} 秒
📡

点击上方按钮加载通信ETF信号数据

首次加载约需 3-5 秒

⚠️

加载失败

{{ commError }}

当前信号
{{ commData.latest_signal.action }}
风险状态
{{ commData.latest_signal.risk_state === 'Risk-On' ? '风险开启' : commData.latest_signal.risk_state === 'Risk-Off' ? '风险规避' : commData.latest_signal.risk_state === 'Recovery Watch' ? '修复观察' : '修复确认' }}
持续压力
{{ commData.latest_signal.persistent_stress.toFixed(4) }}
同步下跌数
{{ commData.latest_signal.synchronous_down_count }}
信号强度
{{ commData.latest_signal.signal_strength || '--' }}
💡
策略解读

{{ commData.latest_signal.explanation }}

策略年化收益
{{ commData.backtest.strategy.annual_return }}%
基准年化收益
{{ commData.backtest.benchmark.annual_return }}%
策略Sharpe
{{ commData.backtest.strategy.sharpe }}
策略最大回撤
{{ commData.backtest.strategy.max_drawdown }}%
活跃持仓比例
{{ commData.backtest.active_ratio }}%
胜率
{{ commData.backtest.strategy.win_rate }}%
回测区间
{{ commData.backtest.period }}
{{ commData.backtest.total_trading_days }}个交易日
状态分布
{{ state === 'Risk-On' ? '做多' : state === 'Risk-Off' ? '空仓' : state === 'Recovery Watch' ? '观察' : '修复' }}{{ cnt }}

海外标的监控

加载海外数据中...
美股数据源日期: {{ commOverseasData.us_latest_date }}
日韩数据源日期: {{ commOverseasData.asia_latest_date }}

因子分解

US 持续压力{{ commData.latest_signal.factors.persistent_stress.toFixed(4) }}
0阈值: {{ commData.latest_signal.factors.risk_threshold }}极端: {{ commData.latest_signal.factors.extreme_threshold }}
US 方向
{{ commData.latest_signal.factors.direction.toFixed(4) }}
同步下跌数
{{ commData.latest_signal.factors.synchronous_down_count }}
修复评分
{{ commData.latest_signal.factors.recovery_score.toFixed(4) }}
无新低比例
{{ ((commData.latest_signal.factors.no_new_low || 0) * 100).toFixed(0) }}%

策略净值 vs 买入持有

策略 买入持有 超额(右轴)

近期信号明细 (最近60个交易日)

日期信号风险状态持续压力ETF收益%策略收益%
{{ r.trade_date }} {{ r.position === 1 ? '做多' : r.position > 0 ? '半仓' : '空仓' }} {{ r.state === 'Risk-On' ? '做多' : r.state === 'Risk-Off' ? '空仓' : r.state === 'Recovery Watch' ? '观察' : '修复' }} {{ r.persistent_stress_05 != null ? r.persistent_stress_05.toFixed(4) : '--' }} {{ r.etf_return > 0 ? '+' : '' }}{{ r.etf_return }}% {{ r.strategy_return > 0 ? '+' : '' }}{{ r.strategy_return }}%
数据来源: Choice/EMQuant · 海外标的: AVGO / MRVL / COHR / LITE · 四状态机模型 · 仅用于研究,不构成投资建议 · 更新于 {{ commData.updated_at }}

{{ bankProgress }}

已耗时 {{ bankElapsed }} 秒
🏦

点击上方按钮加载 通信+半导体 组合与银行ETF信号

首次加载约需 6-10 秒(需分别计算通信与半导体信号)

⚠️

加载失败

{{ bankError }}

🏦
银行ETF 516310 · 双模型Risk-Off避险切换
{{ bankData.bank.current.bankAction }} (组合继续按 通信50% + 半导体50% 运行)
{{ bankData.bank.current.bankRule }}
通信仓位
{{ (bankData.combined.current.communicationAllocation * 100).toFixed(0) }}%
{{ bankData.combined.current.communicationSignalDate }}
半导体仓位
{{ (bankData.combined.current.semiconductorAllocation * 100).toFixed(0) }}%
{{ bankData.combined.current.semiconductorSignalDate }}
银行仓位
{{ (bankData.combined.current.bankAllocation * 100).toFixed(0) }}%
{{ bankData.combined.current.signalDatesAligned ? '日期已对齐' : '日期未对齐' }}
组合总收益 (累计)
{{ ((bankData.combined.stats.totalReturn || 0) * 100).toFixed(2) }}%
{{ bankData.combined.stats.startDate }} ~ {{ bankData.combined.stats.endDate }}
最大回撤
{{ ((bankData.combined.stats.maxDrawdown || 0) * 100).toFixed(2) }}%
Sharpe / 年化波动
{{ bankData.combined.stats.sharpe != null ? bankData.combined.stats.sharpe.toFixed(2) : '--' }}
2026年至今 / 银行触发
{{ bankData.combined.stats.yearToDateReturn != null ? (bankData.combined.stats.yearToDateReturn * 100).toFixed(2) + '%' : '--' }}
全期 {{ bankData.combined.stats.bankTradeDays }} 天 · 今年 {{ bankData.combined.stats.yearToDateBankTradeDays }} 天
银行替代累计收益
{{ ((bankData.bank.stats.totalReturn || 0) * 100).toFixed(2) }}%
触发 {{ bankData.bank.stats.tradeDays }} 天 (今年 {{ bankData.bank.stats.yearToDateTradeDays }} 天)
银行日内胜率
{{ bankData.bank.stats.winRate != null ? (bankData.bank.stats.winRate * 100).toFixed(1) + '%' : '--' }}
日内均收益 {{ bankData.bank.stats.averageReturn != null ? (bankData.bank.stats.averageReturn * 100).toFixed(2) + '%' : '--' }}
银行替代回撤
{{ bankData.bank.stats.maxDrawdown ? (bankData.bank.stats.maxDrawdown * 100).toFixed(2) + '%' : '--' }}
基准对照
通 {{ bankData.combined.benchmarks.communicationNav != null ? bankData.combined.benchmarks.communicationNav.toFixed(2) : '--' }}x · 半 {{ bankData.combined.benchmarks.semiconductorNav != null ? bankData.combined.benchmarks.semiconductorNav.toFixed(2) : '--' }}x
期初归一 1.00

组合净值(通信50% + 半导体50%,双Risk-Off日切换银行ETF日内100%)

组合策略 通信买入持有 半导体买入持有

银行ETF触发明细 (近期 {{ (bankData.combined.recent || []).length }} 条)

日期 组合动作 通信 半导体 银行 组合日收益
{{ r.date }} 银行 通信+半导体 {{ r.communicationReturn != null ? (r.communicationReturn * 100).toFixed(2) + '%' : '--' }} {{ r.semiconductorReturn != null ? (r.semiconductorReturn * 100).toFixed(2) + '%' : '--' }} {{ r.bankReturn != null ? (r.bankReturn * 100).toFixed(2) + '%' : '--' }} {{ r.combinedReturn != null ? (r.combinedReturn * 100).toFixed(2) + '%' : '--' }}
组合规则: 通信515880 × 50% + 半导体159516 × 50%;两者同日Risk-Off且空仓时,切换银行ETF 516310 开盘买/收盘卖 100% · 仅用于研究,不构成投资建议 · 更新于 {{ bankData.generatedAt }}
🏹

宽基指数择时(A1模型)

基于情绪 + 资金 + 技术三维度融合,对上证50/沪深300/中证500/中证1000进行趋势择时

{{ wbtProgress }}

已耗时 {{ wbtElapsed }} 秒

首次加载需计算4个指数全量回测,约需30-60秒

🏹

点击上方按钮加载宽基择时数据

首次加载约需 30-60 秒

⚠️

加载失败

{{ wbtError }}

{{ idx.name }}

{{ idx.target_position }}
A1 得分
{{ idx.a1_score != null ? idx.a1_score.toFixed(3) : '--' }}
连续天数
{{ idx.streak_days }}天
{{ idx.bottom_alert }} {{ idx.escape_alert }} {{ idx.mid_risk }}
{{ idx.date }} {{ idx.close != null ? idx.close.toFixed(2) : '--' }}

四指数策略净值曲线(含基准与最大回撤)

策略净值 基准净值 超额(右轴) 策略回撤(右轴)
{{ idx.name }} {{ idx.date }}

{{ wbtSignalDetail.index }} 策略净值 vs 基准

收盘 {{ wbtSignalDetail.latest.close }}
策略 买入持有 策略回撤(右轴) 超额(右轴)

三大维度评分(情绪 · 资金 · 技术)

指数 情绪 资金 技术 综合
{{ d.name }} {{ d.sentiment != null ? d.sentiment.toFixed(3) : '--' }} {{ d.capital != null ? d.capital.toFixed(3) : '--' }} {{ d.technical != null ? d.technical.toFixed(3) : '--' }} {{ wbtSummary.indices?.find(i => i.name === d.name)?.a1_score?.toFixed(3) || '--' }}

样本外绩效 (3bps, walk-forward)

指数 年化收益 Sharpe 最大回撤 Calmar 胜率
{{ idx.name }} {{ idx.performance_3bps.ann_return != null ? (idx.performance_3bps.ann_return * 100).toFixed(1) + '%' : '--' }} {{ idx.performance_3bps.sharpe?.toFixed(2) || '--' }} {{ idx.performance_3bps.max_drawdown != null ? (idx.performance_3bps.max_drawdown * 100).toFixed(1) + '%' : '--' }} {{ idx.performance_3bps.calmar?.toFixed(2) || '--' }} {{ idx.performance_3bps.win_rate_active != null ? (idx.performance_3bps.win_rate_active * 100).toFixed(1) + '%' : '--' }}
A1 模型 · Walk-Forward 滚动训练 · 情绪/资金/技术三维融合 · 更新于 {{ wbtSummary.generated_at }}
V5.1 月度调仓 三档风险偏好

基于不同风险偏好的 ETF 配置策略

在同一ETF资产池中,以趋势动量决定风险预算,并按不同风险偏好形成三档可执行组合。

调仓频率
月末收盘运行 · 下一交易日开盘成交

策略摘要

从信号识别、风险预算到月度执行

01 · 定位

统一15只ETF资产池,提供收益优先、低风险与平衡三档组合。

02 · 信号

11维动量归入5组因子,并经正交化降低重复暴露。

03 · 配置

将综合评分映射为风险预算,再结合协方差确定权重。

04 · 风控

B/C控制非短融资产波动;短融承担现金缓冲,其余单资产上限30%。

执行规则

仅在完整月末形成新持仓,下一交易日生效;短融ETF不设权重上限,用于承接风险资产降杠杆后的资金。

{{ riskETFError }}
正在加载风险偏好 ETF 配置策略...

量化配置

{{ (fundamentalParams.weights[key]*100).toFixed(0) }}%
Sum: {{ Object.keys(fundamentalParams.weights).reduce((s, k) => s + (fundamentalParams.factors.includes(k) ? parseFloat(fundamentalParams.weights[k]) : 0), 0).toFixed(2) }}
计算进度 {{ fundamentalStatus?.progress || 0 }}%

{{ fundamentalStatus?.logs[fundamentalStatus.logs.length-1] || '初始化...' }}

{{ data.name }} {{ sym }}
估值: {{ data.latest.valuation }}
驱动: {{ data.latest.driver }}
建议 {{ data.latest.advice }}
占比 {{ data.latest.weight }}
等待数据更新...
策略年化收益
{{ fundamentalResults ? (fundamentalResults.summary.annual_return * 100).toFixed(2) : '0.00' }}%
历史胜率
{{ fundamentalResults ? (fundamentalResults.summary.win_rate * 100).toFixed(2) : '0.00' }}%
夏普比率
{{ fundamentalResults ? fundamentalResults.summary.sharpe.toFixed(2) : '0.00' }}
最大回撤
{{ fundamentalResults ? (fundamentalResults.summary.max_drawdown * 100).toFixed(2) : '0.00' }}%

策略整体净值模拟 (起点=1)

ANALYSIS

{{ expandedSymbol && fundamentalResults?.symbols_data ? (fundamentalResults.symbols_data[expandedSymbol]?.name || expandedSymbol) : '品种分析' }} ({{ expandedSymbol || '-' }})

{{ (fundamentalSymbols.indexOf(expandedSymbol) + 1) || 0 }}/5

☰ 策略完整买卖列表

共计 {{ fundamentalResults?.trades?.length || 0 }} 笔
品种 方向 进场 离场 进价 出价 盈亏 离场原因
{{ trade.symbol }} {{ trade.direction }} {{ trade.entry_date }} {{ trade.exit_date }} {{ trade.entry_price.toFixed(2) }} {{ trade.exit_price.toFixed(2) }} {{ (trade.pnl * 100).toFixed(2) }}% {{ trade.reason }}
📊

量化分析引擎

请在左侧配置回测参数并点击“运行”,启动黑色系基本面量化分析。

{{ sym }}
⚙️

多因子策略参数配置

{{ multiFactorParams.w_trend }}
{{ multiFactorParams.w_mom }}
{{ multiFactorParams.w_vol }}
{{ multiFactorParams.w_volatility }}
{{ f.name }}
坏波动刹车 + 牛市仓位地板,降下来的仓位持现金
计算进度 {{ multiFactorStatus?.progress || 0 }}%

{{ multiFactorStatus?.logs[multiFactorStatus.logs.length-1] || '初始化...' }}

📋 历史回测记录 {{ showMFHistory ? '▲' : '▼' }} {{ mfHistoryList.length }} 条
加载中... 暂无历史回测记录
日期 累计收益 年化 夏普 最大回撤 胜率 交易 参数 操作
{{ rec.created_at?.slice(0,10) || '--' }} {{ rec.metrics ? (rec.metrics.total_return * 100).toFixed(1) + '%' : '--' }} {{ rec.metrics ? (rec.metrics.annual_return * 100).toFixed(1) + '%' : '--' }} {{ rec.metrics ? rec.metrics.sharpe_ratio?.toFixed(2) : '--' }} {{ rec.metrics ? (rec.metrics.max_drawdown * 100).toFixed(1) + '%' : '--' }} {{ rec.metrics ? (rec.metrics.win_rate * 100).toFixed(1) + '%' : '--' }} {{ rec.metrics && rec.metrics.trade_count != null ? rec.metrics.trade_count : '--' }} Top{{ rec.params?.top_n || '?' }}/{{ rec.params?.rebalance_period || '?' }}
{{ m.label }}
{{ (() => { const val = multiFactorResults?.metrics?.[m.key]; if (val === undefined || val === null || isNaN(val)) return '--'; return m.isPct ? (val * 100).toFixed(2) + '%' : val.toFixed(2); })() }}
市场风险仓位控制
坏波动刹车 + 牛市仓位地板,未投资部分持现金
{{ multiFactorResults?.risk_control?.extreme_risk ? '极端风险模式' : '常规动态模式' }}
{{ m.label }}
{{ (() => { const val = multiFactorResults?.risk_control?.[m.key]; if (val === undefined || val === null || isNaN(val)) return '--'; return m.isPct ? (val * 100).toFixed(2) + '%' : val.toFixed(2); })() }}

策略累计净值走势

截止日期: {{ multiFactorResults?.latest_date || '--' }}
💎

最新推荐持仓权重

{{ multiFactorResults?.risk_control?.enabled ? '已按市场风险过滤缩放,剩余资金持现金' : '按当前持仓数量等权展示' }}

风险过滤
代码 类别 权重
{{ row.code }} {{ row.type }} {{ (row.weight * 100).toFixed(2) }}%
当前无持仓(可能全部止损或空仓)

最近交易记录

日期 标的 方向 价格 成交占净值 当前目标权重 盈亏 原因
{{ t.datetime?.slice(0,10) }} {{ t.code }} {{ t.side }} {{ t.price?.toFixed(4) }} {{ formatTradeWeight(t, multiFactorResults, 'amount') }} {{ formatTradeWeight(t, multiFactorResults, 'target') }} {{ t.pnl ? (t.pnl > 0 ? '+' : '') + t.pnl.toFixed(2) : '--' }} {{ t.reason }}
暂无交易记录

最新一期标的因子判断明细

展示多因子策略当前选中标的的趋势、动量、成交量等贡献。

本期推荐 {{ getLatestFactorDecisionRows(multiFactorResults).length }} 只标的 判断日 {{ getLatestFactorDecisionRows(multiFactorResults)[0]?.decision_date || '--' }} 因子按得分贡献绝对值排序,导出包含全部历史判断
推荐顺序 标的代码 判断日 执行日 标的排名 综合得分 因子数
{{ idx + 1 }} {{ row.code }} {{ row.decision_date || '--' }} {{ row.execution_date || '--' }} #{{ row.rank || '-' }} {{ formatFactorNumber(row.score, 4) }} {{ row.factor_count || (row.factor_details ? row.factor_details.length : 0) }}
{{ row.code }} 因子贡献明细
排名 #{{ row.rank || '-' }} · 综合得分 {{ formatFactorNumber(row.score, 4) }} · 展示贡献最高的 {{ getTopFactorDetails(row, 10).length }} 个因子
{{ row.decision_date || '--' }} -> {{ row.execution_date || '--' }}
因子名称 / ID 方向 权重 原始值 截面Rank 得分贡献 复合成员
{{ d.factor_name || d.factor_id }}
{{ d.factor_id }}
{{ d.direction === -1 ? '反向' : '正向' }} {{ formatFactorNumber(d.weight, 3) }} {{ formatFactorNumber(d.raw_value, 4) }} {{ formatFactorNumber(d.rank, 3) }} {{ formatFactorNumber(d.contribution, 4) }} {{ d.member_count ? d.member_count + ' 个' : '-' }}
🧪

多因子策略引擎

整合趋势、动量与成交量多维度因子,智能挖掘全市场 ETF 轮动机会。
请在顶部配置参数并点击"运行回测"开始分析。

{{ tag }}
💡 不清楚如何配置?可以参考详细说明案例
{{ showGuide ? '收起说明文档' : '点击查看配置说明与案例' }}
{{ configGuide }}

[{{ section }}] 配置区块

工具箱

执行自定义量化工具与数据处理脚本

📈 投资净值管理

CORE

查看策略组合收益率、净值曲线、持仓盈亏明细及历史快照录入。

点击进入专属管理界面 →
Portfolio Tracking

{{ tool.name }}

{{ tool.id }}

{{ tool.desc }}

脚本: {{ tool.program }}
输出: {{ tool.output_path || '终端打印' }}
📥
+
新增自定义工具

自定义工具管理

工具运行状态: {{ toolStatus.status === 'running' ? '进行中' : (toolStatus.status === 'completed' ? '已完成' : '失败') }}

{{ toolStatus.progress }}%
$ {{ log }}
日期 标的数量 买入总成本 当前总市值 累计浮盈 收益率 分析操作
{{ row.date }} {{ row.symbol_count }} ¥ {{ row.cost.toLocaleString() }} ¥ {{ row.market_value.toLocaleString() }} {{ (row.profit >= 0 ? '+' : '') + row.profit.toLocaleString() }} {{ (row.return_rate >= 0 ? '+' : '') + row.return_rate.toFixed(2) }}%

录入新快照

净值序列分析 ({{ selectedBaseDate }} 至今)

归一化 NAV

{{ portfolioForm.date }} 标的表现排名 (TOP 10)

收益降序
{{ idx + 1 }}
{{ h.code }} {{ (h.return > 0 ? '+' : '') + ((h.return || 0) * 100).toFixed(2) }}%
成本: {{ h.cost_price.toFixed(2) }} 浮盈: {{ (h.quantity * (h.latest_price - h.cost_price)).toFixed(0) }}
所有标的详细绩效矩阵 ({{ currentHoldings.length }})
{{ h.code }} {{ ((h.return || 0) * 100).toFixed(1) }}%
C: {{ h.cost_price.toFixed(2) }} L: {{ h.latest_price.toFixed(2) }}
📄

{{ outputViewer.filename }}

Result Preview

{{ outputViewer.content }}
下载该文件
🛡️

新用户注册

请填写信息提交审核,激活后开启量化权限

🔐 系统用户审核管理

用户名 手机号 状态 注册时间 操作
{{ u.username }} {{ u.phone || '-' }} {{ u.status === 'active' ? '已激活' : '待审核' }} {{ u.created_at }}
🔐

登录 / 切换身份

Status: {{ userAccountStatus }}