hk-connect-flow
Ce qu’il fait
Cette compétence explique les flux Stock Connect, dans les deux sens, entre la Chine continentale et Hong Kong. Elle s'adresse aux investisseurs qui suivent le sentiment du marché chinois.
Quand l’utiliser
- ✓Quand vous voulez savoir si les investisseurs étrangers achètent ou vendent des actions A chinoises.
- ✓Quand vous vérifiez si les investisseurs continentaux déplacent leur argent vers les actions de Hong Kong.
- ✓Quand vous voulez voir quels secteurs attirent les capitaux Stock Connect.
Lien du skill
https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/hk-connect-flow/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Les investisseurs étrangers achètent-ils des actions chinoises via Stock Connect cette semaine ?”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
Elle suit les achats nets quotidiens par les canaux de Shanghai et de Shenzhen, et les compare au quota quotidien de chaque canal. Des flux importants ou réguliers sont interprétés comme un signe de sentiment.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis 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
Questions fréquentes
Qu'est-ce que le flux nordbound ?
Le flux nordbound est l'argent des investisseurs étrangers qui achètent des actions A de Chine continentale via Stock Connect.
Que montre le flux southbound ?
Il montre les achats d'actions cotées à Hong Kong par les investisseurs continentaux, ce qui révèle leurs préférences.
Indique-t-elle quelles actions acheter ?
Elle se concentre sur les flux globaux et les tendances sectorielles ; elle aide donc à lire le sentiment, sans proposer d'actions.
Détails
Description originale de l’auteur
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
Popularité
- Étoiles GitHub
- 37k
- Position au classement
- #7525
- Licence
- MIT
- Mis à jour
- 01/11/2026
Commentaires
- …
Autres skills de ce dépôt
vibe-trading
37kDonne à votre agent une boîte à outils complète de recherche financière : backtests, analyse factorielle, pricing d'options et données de marché sur de nombreux marchés.
adr-hshare
37kMontre à votre agent comment comparer le prix d'une entreprise chinoise cotée dans plusieurs marchés, comme un ADR américain et une action de Hong Kong.
akshare
37kPermet à votre agent de récupérer gratuitement des données de marché sur les actions chinoises et mondiales, les contrats à terme, le forex et les indicateurs économiques, sans clé d'API.
alpha-zoo
37kPermet à votre agent de parcourir une bibliothèque de facteurs boursiers prêts à l'emploi et de tester la capacité de tout un ensemble à prédire les rendements sur un marché choisi.
Skills similaires
gitcrawl
394kPermet à votre agent de chercher dans une archive de tickets et pull requests GitHub, de regrouper les doublons et de vérifier leur statut actuel.
slacrawl
394kPermet à votre agent de chercher et de compter des messages dans une archive Slack locale, de vérifier sa fraîcheur et de la rafraîchir au besoin.
goplaces
394kAide votre agent à rechercher des lieux, obtenir leurs détails et avis, et identifier des noms de lieux avec Google Places, avec une sortie JSON pour les scripts.