Skip to content
Skillpedia
Analysis & spreadsheets37k Β· #7525

hk-connect-flow

What it does

This skill explains northbound and southbound Stock Connect fund flows between mainland China and Hong Kong. It is for investors who follow China market sentiment.

When to use it

  • βœ“When you want to know whether foreign investors are buying or selling China A-shares.
  • βœ“When you are checking whether mainland investors are shifting money into Hong Kong stocks.
  • βœ“When you want to see which sectors are attracting Stock Connect money.

Skill link

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

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/hk-connect-flow/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œAre foreign investors buying Chinese stocks through Stock Connect this week?”

5 new skills a week. 1 minute to read.

How it works

It tracks daily net buying through the Shanghai and Shenzhen channels and compares it with each channel's daily quota. Large or steady flows are read as a sign of sentiment.

Technical content (original SKILL.md)

Original text by the author, straight from 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
FAQ

What is northbound flow?

Northbound flow is money from foreign investors buying mainland A-shares through Stock Connect.

What does southbound flow show?

It shows mainland investors buying Hong Kong listed stocks, which hints at their preferences.

Does it tell me which stocks to buy?

It focuses on overall flows and sector trends, so it helps you read sentiment rather than giving stock picks.

Details

Original description by the author

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

Popularity

GitHub stars
37k
Ranking position
#7525
License
MIT
Updated
11/1/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills