hk-connect-flow
O que ela faz
Esta skill explica os fluxos de fundos do Stock Connect no sentido norte e no sentido sul entre a China continental e Hong Kong. É para investidores que acompanham o sentimento do mercado chinês.
Quando usar
- ✓Quando você quer saber se investidores estrangeiros estão comprando ou vendendo ações A da China.
- ✓Quando você está verificando se investidores da China continental estão transferindo dinheiro para ações de Hong Kong.
- ✓Quando você quer ver quais setores estão atraindo dinheiro do Stock Connect.
Link da skill
https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/hk-connect-flow/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Investidores estrangeiros estão comprando ações chinesas pelo Stock Connect nesta semana?”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
Ela acompanha as compras líquidas diárias pelos canais de Xangai e Shenzhen e as compara com a cota diária de cada canal. Fluxos grandes ou constantes são lidos como um sinal de sentimento.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
O que é o fluxo no sentido norte?
É o dinheiro de investidores estrangeiros que compram ações A da China continental pelo Stock Connect.
O que o fluxo no sentido sul mostra?
Mostra investidores da China continental comprando ações listadas em Hong Kong, o que indica suas preferências.
Ela me diz quais ações comprar?
Ela foca nos fluxos gerais e nas tendências setoriais, então ajuda a ler o sentimento, e não a escolher ações.
Detalhes
Descrição original do autor
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
Popularidade
- Estrelas no GitHub
- 37 mil
- Posição no ranking
- #7525
- Licença
- MIT
- Atualizada em
- 01/11/2026
Comentários
- …
Mais skills deste repositório
vibe-trading
37 milOferece ao seu agente um kit completo de pesquisa financeira, cobrindo backtests, análise de fatores, precificação de opções e dados de mercado em muitos mercados.
adr-hshare
37 milMostra ao seu agente como comparar o preço de uma empresa chinesa listada em vários mercados, como um ADR nos EUA e uma ação de Hong Kong.
akshare
37 milPermite que seu agente obtenha dados de mercado gratuitos de ações chinesas e globais, futuros, câmbio e indicadores econômicos, sem precisar de chave de API.
alpha-zoo
37 milPermite que seu agente navegue por uma biblioteca de fatores de ações prontos e teste o quanto um conjunto inteiro deles prevê retornos em um mercado escolhido.
Skills parecidas
gitcrawl
394 milPermite que seu agente pesquise um arquivo salvo de issues e pull requests do GitHub, agrupe os duplicados e verifique o status atual deles no GitHub.
slacrawl
394 milPermite que seu agente pesquise e conte mensagens em um arquivo local do Slack, verifique quão atualizado ele está e o atualize quando necessário.
goplaces
394 milAjuda seu agente a buscar lugares, obter detalhes e avaliações e identificar nomes de lugares usando o Google Places, com saída em JSON para scripts.