hk-connect-flow

Analyze Stock Connect fund flows to generate Northbound and Southbound signals.

Updated Apr 14, 2026
One-click install
npx skills add https://github.com/Liangwei-zhang/six-stock --skill hk-connect-flow-liangwei-zhang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hk-connect-flow
Source: https://github.com/Liangwei-zhang/six-stock/tree/main/Vibe-Trading/agent/src/skills/hk-connect-flow
Command: npx skills add https://github.com/Liangwei-zhang/six-stock --skill hk-connect-flow-liangwei-zhang

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Stock Connect fund flow analysis — track Northbound flows into A-shares and Southbound flows into HK, including sector allocation and cross-border arbitrage signals. This tool helps traders and researchers gauge cross-border capital positioning and market sentiment in real time.

Core Features & Use Cases

  • Northbound flow analysis: detect foreign inflows/outflows into A-shares and monitor sector weights to inform defensible or growth-oriented positioning.
  • Southbound flow analysis: monitor mainland capital into HK equities and AH premium dynamics to guide dual-listed name arbitrage decisions.
  • Cross-border signal composition: synthesize NB/SB/AH/fx indicators into a single risk-on/risk-off view and actionable trading signals.

Quick Start

Run hk-connect-flow on the latest trading day to produce Northbound and Southbound signals, AH premium context, and a composite score.

Frequently Asked Questions about hk-connect-flow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I track Stock Connect fund flows for Northbound and Southbound signals?

To track Stock Connect fund flows, you analyze Northbound inflows into A-shares and Southbound flows into HK equities. This process synthesizes daily flow data, sector rotation context, and AH premium dynamics into actionable trading signals.

What is an AH premium signal and how does it guide dual-listed stock arbitrage?

An AH premium signal measures the price disparity between dual-listed A-shares and HK equities. By monitoring Southbound flows into HK stocks alongside this premium, traders can identify and execute defensible cross-border arbitrage opportunities.

How do I calculate a composite cross-border risk-on score for trading decisions?

You calculate a composite cross-border risk-on score by synthesizing Northbound, Southbound, AH premium, and FX indicators. This single risk-on/risk-off view provides clear scoring across multiple dimensions to support research and trading decisions.

Can I use Tushare and HKEX data sources for cross-border capital positioning analysis?

Yes, this cross-border capital positioning analysis integrates directly with Tushare and HKEX data sources. It determines deterministic data access to gauge mainland and foreign market sentiment in real time for daily flow tracking.

Does this tool support sector rotation analysis for Northbound flows into A-shares?

Yes, the Northbound flow analysis detects foreign inflows and outflows into A-shares while monitoring sector weights. This sector rotation context helps traders inform defensible or growth-oriented positioning strategies based on foreign capital allocation.