首页信号流归并两策略持仓

This commit is contained in:
baobao 2026-11-23 13:43:40 +08:00
parent db8ffe4580
commit 01bbfb60e1
1 changed files with 3 additions and 1 deletions

View File

@ -4573,7 +4573,9 @@ createApp({
// 「持仓票的信号 + 全场重要/警告级」。持仓票置顶; 决策系统买卖/风控卖出/择时 // 「持仓票的信号 + 全场重要/警告级」。持仓票置顶; 决策系统买卖/风控卖出/择时
// 入场三路独立信号也并进来, 免得只看告警漏了真正会动手的那几条。 ── // 入场三路独立信号也并进来, 免得只看告警漏了真正会动手的那几条。 ──
const code6 = s => (String(s || '').match(/\d{6}/) || [''])[0]; const code6 = s => (String(s || '').match(/\d{6}/) || [''])[0];
const heldCodeSet = computed(() => new Set(heldPositions.value.map(p => code6(p.ts_code)))); const heldCodeSet = computed(() => new Set([
...heldPositions.value, ...positionGroups.value.flatMap(group => group.held || []),
].filter(position => position.total_qty > 0).map(position => code6(position.ts_code)).filter(Boolean)));
// 今天选股计划里的票 (上游 /plan 主榜, 登录时随 loadPlan 加载): 速览里没持仓的 // 今天选股计划里的票 (上游 /plan 主榜, 登录时随 loadPlan 加载): 速览里没持仓的
// 信号若命中计划, 挂「计划」标 —— 交易员一眼分清哪些噪音其实是候选池的动静 (2026-08-31) // 信号若命中计划, 挂「计划」标 —— 交易员一眼分清哪些噪音其实是候选池的动静 (2026-08-31)
const planCodeSet = computed(() => new Set((planRows.value || []).map(r => code6(r.ts_code)))); const planCodeSet = computed(() => new Set((planRows.value || []).map(r => code6(r.ts_code))));