global-macro
它能做什么
这项技能解释利率决定和汇率变动如何影响经济与市场。适合希望在挑选具体资产之前,先对大局有所把握的投资者。
适用场景
- ✓当美联储、欧洲央行或日本央行等央行刚刚调整利率的时候。
- ✓当你想知道汇率变动可能如何影响你的投资的时候。
- ✓当你在规划未来几个月在股票、债券或现金之间各持有多少的时候。
技能链接
https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/global-macro/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“美联储最新的利率决定对我的股票和债券配置意味着什么?”
每周 5 个新技能,1 分钟读完。
工作原理
它会沿着从政策利率到债券收益率、信贷成本、公司利润和股价的传导链条进行分析。然后它会把这一图景转化为对每类主要资产的简单信号。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Global Macro Analysis
Overview
Builds a macro analysis framework from three dimensions: central-bank policy, exchange-rate regimes, and geopolitics. Outputs quantifiable macro factor signals to drive cross-asset allocation decisions. Core logic: macro cycles determine major asset direction, while micro-level timing is delegated to other skills.
Core Concepts
1. Central Bank Policy Transmission Chain
Policy-rate changes → government bond yield curve → credit spreads → financing costs for the real economy → corporate earnings → equity valuation
Monitoring framework for the three major central banks:
| Central Bank | Core Indicators | Forward Signals | Lagging Confirmation |
|---|---|---|---|
| Federal Reserve (Fed) | FFR, dot plot, SEP | CME FedWatch probabilities | nonfarm payrolls / CPI / PCE |
| European Central Bank (ECB) | Main refinancing rate | Eurozone PMI, HICP | credit growth |
| Bank of Japan (BOJ) | YCC band, policy rate | JPY exchange rate, JGB yields | core CPI |
Historical transmission of Fed hiking / cutting cycles to China A-shares (empirical):
- Late in a Fed hiking cycle (the last 1-2 hikes), China A-shares often have already priced it in, and the average drawdown of the CSI 300 narrows to -3%
- In the 3 months after the first Fed cut, the CSI 300 has averaged +8.2% (mean of the 2001 / 2007 / 2019 cycles)
- But rate cuts do not automatically mean gains. In 2008, cuts came with recession and China A-shares still fell
2. Exchange Rate Forecasting Framework
Three-layer model:
| Model | Applicable Horizon | Core Variables | Accuracy |
|---|---|---|---|
| Purchasing Power Parity (PPP) | 3-5 years | CPI gap between two countries | Long-term anchor |
| Interest Parity (UIP/CIP) | 3-12 months | rate differential + forward premium/discount | Medium-term direction |
| BEER model | 1-3 years | terms of trade + net foreign inflows + productivity | Equilibrium estimate |
USD/CNY practical checklist:
- China-US 10Y spread > 0: appreciation pressure on the RMB (capital inflows)
- China-US 10Y spread < -150bp: rising depreciation pressure on the RMB
- Net FX settlement surplus / deficit: directly reflects conversion direction of corporates and households
- PBOC fixing vs market expectation: signal that the countercyclical factor has been activated
3. Geopolitical Risk Assessment
Quantitative approach (proxy for the GPR index):
# Geopolitical risk proxy indicators
risk_indicators = {
"vix": "Fear index > 25 = high risk",
"gold_oil_ratio": "Gold / oil > 25 = rising risk aversion",
"usd_index": "DXY jump > 2% / week = capital flowing back to USD",
"credit_spread": "IG spread > 150bp = credit tightening",
"em_spread": "EMBI spread widening > 50bp / month = emerging-market stress"
}
Typical asset impacts of geopolitical events (historical averages):
- Local conflicts: gold +3-5%, oil +5-15%, equities -2-5%, with impact lasting 1-4 weeks
- Trade friction: affected sectors -10-20%, beneficiary substitute sectors +5-10%, lasting 3-6 months
- Financial sanctions: sanctioned-country currency -10-30%, commodity supply side hit
4. Global Capital Flow Tracking
Key data sources:
- EPFR fund flows: weekly net inflows into global equity / bond funds
- Northbound flows (Shanghai-Shenzhen-Hong Kong Stock Connect): daily, with net buying > 10 billion RMB in a day as a strong signal
- US Treasury TIC data: monthly, showing changes in foreign holdings of Treasuries
- FX reserve changes: quarterly, indicating central-bank asset allocation direction
Northbound flow signal rules (China A-share practice):
| Signal | Condition | Meaning |
|---|---|---|
| Strong buy | Net buying for 5 consecutive days and cumulative amount > 20 billion RMB | Foreign investors are building positions trendwise |
| Weak buy | Single-day net buying > 8 billion RMB | Short-term sentiment is bullish |
| Warning | Net selling for 5 consecutive days and cumulative amount > 15 billion RMB | Foreign investors are reducing positions trendwise |
| Neutral | Daily net flow within ±3 billion RMB | No directional signal |
5. Dollar Cycle and Emerging Markets
Four-stage dollar cycle model:
Strong-dollar phase (DXY rising) → capital outflows from emerging markets → EM currency depreciation → EM equities and bonds both sell off
Weak-dollar phase (DXY falling) → capital flows back into EM → EM curren
常见问题
它涵盖哪些央行?
涵盖美联储、欧洲央行和日本央行,以及它们的主要指标。
它会准确告诉我该买什么吗?
不会。它提供的是指导大致配置的宏观视角,精确的择时由其他工具完成。
对于投资新手有用吗?
它是为金融读者编写的,因此新手可能需要对收益率或外汇等术语做简短的解释。
详情
作者的原始描述
Global macro analysis framework (central bank policy transmission / FX forecasting / geopolitical risk / capital flows), used to build macro factor signals that drive cross-asset allocation.
repo: HKUDS/Vibe-Trading
热度
- GitHub 星标
- 37k
- 排名
- #7522
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …