跳到正文
Skillpedia
分析与电子表格37k · #7525

hk-connect-flow

它能做什么

这项技能说明内地与香港之间沪深港通的北向与南向资金流动。适合关注中国市场情绪的投资者。

适用场景

  • ✓当你想知道外国投资者是否在买入或卖出中国 A 股的时候。
  • ✓当你想查看内地投资者是否在把资金转向香港股票的时候。
  • ✓当你想查看哪些行业正在吸引沪深港通资金的时候。

技能链接

https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/hk-connect-flow/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/hk-connect-flow/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“本周外国投资者是否在通过沪深港通买入中国股票?”

每周 5 个新技能,1 分钟读完。

工作原理

它会跟踪通过上海和深圳渠道的每日净买入额,并与每个渠道的每日额度进行比较。规模较大或持续稳定的资金流被解读为市场情绪的信号。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Stock Connect Fund Flow Analysis

Overview

Analyze capital flows through the Shanghai-Hong Kong and Shenzhen-Hong Kong Stock Connect programs. Northbound flows (foreign capital into A-shares) are a key institutional sentiment indicator for the China market; Southbound flows (mainland capital into Hong Kong) reveal mainland investor preference for HK-listed assets. Together they provide a real-time cross-border capital positioning signal.

Core Concepts

1. Stock Connect Architecture

Channel Direction What It Measures
Shanghai Connect Northbound Foreign → A-shares (SSE) Foreign institutional A-share appetite
Shenzhen Connect Northbound Foreign → A-shares (SZSE) Foreign institutional A-share appetite (growth bias)
Shanghai Connect Southbound Mainland → HK (HKEX) Mainland capital HK allocation
Shenzhen Connect Southbound Mainland → HK (HKEX) Mainland capital HK allocation

Daily quota: Each channel has a daily net buy quota (~RMB 52B / HKD 42B). Quota utilization >50% = strong directional signal.

2. Northbound Flow Analysis (Foreign into A-shares)

Why Northbound matters:

  • Foreign institutions (global funds, sovereign wealth funds, hedge funds) are considered "smart money" in A-shares
  • Northbound holdings represent ~4-5% of A-share free-float market cap — small but marginal price-setters
  • Northbound flow correlates with MSCI China index rebalancing and global EM allocation decisions

Northbound signal framework:

# Daily Northbound net buy signals
def northbound_signal(daily_net_buy_rmb_billion):
    if daily_net_buy_rmb_billion > 10:
        return "strong_foreign_buying"    # Very large single-day inflow
    elif daily_net_buy_rmb_billion > 5:
        return "moderate_foreign_buying"
    elif daily_net_buy_rmb_billion > 0:
        return "mild_foreign_buying"
    elif daily_net_buy_rmb_billion > -5:
        return "mild_foreign_selling"
    elif daily_net_buy_rmb_billion > -10:
        return "moderate_foreign_selling"
    else:
        return "strong_foreign_selling"   # Panic outflow

# Cumulative flow trend (more important than single-day)
def northbound_trend(flows_20d, flows_5d):
    cum_20d = sum(flows_20d)
    cum_5d = sum(flows_5d)

    if cum_20d > 30 and cum_5d > 10:
        return "sustained_accumulation"   # Strong bullish for A-shares
    elif cum_20d < -30 and cum_5d < -10:
        return "sustained_distribution"   # Bearish for A-shares
    elif cum_20d > 0 and cum_5d < 0:
        return "accumulation_pausing"     # Watch for reversal
    elif cum_20d < 0 and cum_5d > 0:
        return "distribution_pausing"     # Possible bottom formation

Northbound sector allocation patterns:

Sector Preference Typical Holdings Signal
Consumer staples (Moutai, dairy) 30-35% of holdings Core allocation, low turnover
Financials (banks, insurance) 15-20% Cyclical allocation, rate-sensitive
Technology (semiconductors, software) 10-15% Growth allocation, high turnover
Healthcare (CXO, innovative pharma) 8-12% Structural growth bet
New energy (EV, solar) 5-10% Thematic, high volatility

Sector rotation signal:

  • When Northbound increases consumer staples weight → defensive positioning
  • When Northbound increases tech/new energy weight → risk-on, growth chasing
  • When Northbound reduces across all sectors → broad risk-off, usually FX-driven (CNY weakening)

3. Southbound Flow Analysis (Mainland into HK)

Why Southbound matters:

  • Mainland investors are the marginal buyer for many HK mid/small caps
  • Southbound flows are driven by: AH premium (A vs H discount arbitrage), dividend yield hunting, and tech platform allocation (Tencent, Alibaba, Meituan)
  • Insurance and pension funds increasingly use Southbound for international diversification

Southbound signal framework:

# Southbound focus areas
southbound_targets = {
    "tech_platforms": ["0700.HK", "9988.HK", "3690.HK", "9618.HK"],
    "high_dividend": ["0939.HK", "1398.HK", "0883.HK", "2628.HK"],
    "ah_discount": [],  # Dynamically calculated based on AH premium index
}

def southbound_signal(daily_net_buy_hkd_billion):
    if daily_net_buy_hkd_billion > 5:
        return "strong_mainland_buying"
    elif daily_net_buy_hkd_billion > 2:
        return "moderate_mainland_buying"
    elif daily_net_buy_hkd_billion < -2
常见问题

什么是北向资金?

北向资金是外国投资者通过沪深港通买入内地 A 股的资金。

南向资金显示什么?

它显示内地投资者买入香港上市股票的情况,从中可以看出他们的偏好。

它会告诉我该买哪些股票吗?

它关注整体资金流和行业趋势,因此帮助你解读市场情绪,而不是给出具体的选股建议。

详情

作者的原始描述

Stock Connect (Shanghai/Shenzhen-Hong Kong) fund flow analysis — Northbound (foreign into A-shares), Southbound (mainland into HK), sector allocation tracking, and cross-border arbitrage signals.

repo: HKUDS/Vibe-Trading

热度

GitHub 星标
37k
排名
#7525
许可证
MIT
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能