behavioral-finance
它能做什么
这项技能把基于心理学的市场理论与可衡量的信号联系起来。适合希望理解动量或反转形态为何出现、并想测试它们的投资者和分析师。
适用场景
- ✓当你想解释为什么某个市场会出现动量或反转效应的时候。
- ✓当你想基于极端的市场情绪构建逆向信号的时候。
- ✓当你想对量化策略应用去偏规则的时候。
技能链接
https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/behavioral-finance/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请解释为什么盈利大幅超预期的股票会持续上涨一段时间,并为此提出一个可测试的信号。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会解释这种形态背后的偏差,例如对新信息的反应缓慢,或对近期趋势的外推。然后它会提出一个可以在历史数据上衡量和测试的信号,以及应采用的风险控制措施。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Behavioral Finance Applications
Overview
Translate behavioral-finance theory into quantifiable trading signals and risk-control rules. Core assumption: market participants systematically deviate from rational decision-making, and these biases can be predicted and exploited.
Applicable scenarios:
- Behavioral interpretation and parameter optimization for momentum / reversal strategies
- Contrarian signals when market sentiment becomes extreme
- Debiasing mechanisms in portfolio construction
- Capturing behavior patterns specific to retail-driven China A-share markets
Core Concepts
Overreaction and Underreaction
Underreaction → momentum effect:
Mechanism: anchoring bias + conservatism
Investors anchor on old information and update insufficiently to new information
After an earnings beat, the stock price digests it gradually rather than all at once
China A-share evidence:
- Earnings-guidance beats still produce 3-5% excess return over the following 20 days
- After analyst rating upgrades, momentum often persists for 1-3 months
Quant signal:
SUE (standardized unexpected earnings) > 2σ -> buy and hold for 60 days
Top 10% 20-day return -> continue holding for 20 days (China A-share momentum cycles are shorter)
Overreaction → reversal effect:
Mechanism: representativeness heuristic + availability bias
Investors extrapolate recent trends too aggressively and ignore mean reversion
Panic / euphoria drives reactions beyond what fundamentals support
China A-share evidence:
- Rebounds after consecutive limit-downs (after 3 limit-downs, the average 20-day rebound is 8%)
- Big annual losers often earn 5-10% excess return the next year
Quant signal:
Bottom 10% of 250-day return -> buy and hold for 250 days
RSI(5) < 10 -> short-term rebound signal (5-10 days)
Key distinction:
| Dimension | Underreaction (Momentum) | Overreaction (Reversal) |
|---|---|---|
| Time scale | 1-12 months | <1 week or >12 months |
| Information type | Clear events (earnings / announcements) | Ambiguous information (sentiment / trend) |
| Best China A-share window | 20-60 days | 5-10 days (short term) / 1 year (long term) |
Cognitive Bias Checklist
Individual decision biases:
| Bias | Manifestation | Quant Detection | Debiasing Strategy |
|---|---|---|---|
| Loss aversion | Hold losing stocks, sell winners too early | Holding period: losing positions > winning positions by 2-3x | Pre-set stop-loss line and execute mechanically |
| Overconfidence | Overtrading, concentrated positions | Monthly turnover > 100%, single-stock weight > 30% | Limit the number of trades per month |
| Anchoring effect | Anchoring to entry price / historical highs | Abnormal volume expansion near the entry price | Use relative valuation instead of absolute price |
| Confirmation bias | Focus only on information that supports the existing view | Single-source information, ignoring bearish news | Force reading the opposing view |
| Recency bias | Overweight recent events | Recent gains/losses have too much influence on position size | Lengthen the evaluation window (≥60 days) |
| Framing effect | Same information framed differently leads to different decisions | Decision differences between return format and absolute-PnL format | Evaluate consistently in return space |
Group behavior biases:
| Bias | Manifestation | China A-share Characteristics | Quant Indicator |
|---|---|---|---|
| Herding | Chasing rallies and panic-selling together | Extremely fast sector rotation (3-5 days) | Intra-sector stock correlation > 0.8 |
| Information cascades | Ignoring private information and following public signals | Sector follow-through after a leader stock hits limit-up | Sector return on the day after leader-stock limit-up |
| Attention effect | Buying stocks that attract attention | Explosive turnover in limit-up / news-driven stocks | Abnormal turnover > 3x average |
Investor Sentiment Cycle
Fear -> Caution -> Optimism -> Excitement -> Euphoria -> Denial -> Panic -> Fear
| | | | | | |
Bottom Recovery Mid-uptrend Pre-top Top Early selloff Pre-bottom
Quant sentiment indicators:
1. Closed-end fund discount: discount > 15% -> extreme fear -> buy signal
2. Margin-financing growth: monthly growth > 20% -> euphoria -> reduce position
3. New account openings: weekly openings
常见问题
这能保证盈利吗?
不能。它把理论转化为可测试的信号,结果必须在历史数据和样本外数据上进行检验。
过度反应和反应不足有什么区别?
反应不足是对新闻消化得慢,暗示动量;过度反应则反应过头,暗示反转。
它涵盖中国市场吗?
涵盖。它包含对中国 A 股市场中常见的、由散户主导的行为模式的说明。
详情
作者的原始描述
Behavioral finance applications: theories of overreaction and underreaction, behavioral explanations for momentum and reversal, investor sentiment cycles, cognitive-bias checklists, and debiasing quantitative strategies.
repo: HKUDS/Vibe-Trading
热度
- GitHub 星标
- 37k
- 排名
- #7500
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …