# Market Sentiment Timing

> 市场情绪择时策略，基于投资者情绪指标和主成分分析构建情绪指数。适用于需要利用市场情绪进行大盘择时的场景。

- **Type:** Skill
- **Install:** `agentstack add skill-feicoder-skill-factory-market-sentiment-timing`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [FeiCoder](https://agentstack.voostack.com/s/feicoder)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [FeiCoder](https://github.com/FeiCoder)
- **Source:** https://github.com/FeiCoder/Skill-Factory/tree/main/produced_skill/timing/market-sentiment-timing

## Install

```sh
agentstack add skill-feicoder-skill-factory-market-sentiment-timing
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 市场情绪择时

## 基本概念

市场情绪是指投资者的心理和情绪状态，反映对市场的乐观或悲观程度。

### 核心观点

> 心理情绪造就90%的行情：T(趋势) = G(资金) + P(心理)

### A股市场特点

- 个人投资者众多
- 羊群效应显著
- 情绪波动大

## 情绪指标类型

### 1. 直接调查类

- 投资者信心指数
- 投资意愿指数

### 2. 折溢价率类

- 封闭式基金折价率
- 可转债转股溢价率
- 权证的溢价率

### 3. 新股指标

- IPO首日涨跌幅
- IPO发行PE
- 新股发行数量

### 4. 市场指标

- 上涨家数百分比
- 创新高/低股票数
- 涨停家数

### 5. 投资者行为

- 新增开户数
- 基金仓位
- 保证金交易
- 资金出入

## 情绪指数构建

### 主成分分析法

选取7个核心指标：
1. 封闭式基金折价率
2. 转股溢价率
3. IPO首日涨跌幅
4. IPO发行PE
5. 上涨家数百分比
6. 混合型基金平均仓位
7. 股票型基金平均仓位

### 情绪指数公式

```
情绪指数 = 0.111×封闭式基金折价率
         - 0.242×转股溢价率
         + 0.489×IPO首日涨跌幅
         + 0.437×IPO发行PE
         + 0.207×上涨家数百分比
         + 0.470×混合型基金仓位
         + 0.483×股票型基金仓位
```

### 情绪变化指数

反映情绪的月度变化：
- 高情绪区域 → 继续上涨概率高
- 低情绪区域 → 继续下跌概率高
- 极端低情绪 → 可能反转

## 择时策略

### 1. 长期看区域

**核心理念**：均值回归
- 情绪低迷 → 股市被低估 → 买入
- 情绪高涨 → 股市被高估 → 卖出

**操作方法**：
- 以1倍标准差(σ)为分界线
- σ以上：高风险区，谨慎
- -σ以下：安全区，大胆介入

### 2. 短期看变化

**核心理念**：情绪变化
- 情绪变化指数区域2：收益率最差
- 剔除最差月份，选择其他区域

**操作方法**：
- 观察情绪变化指数
- 避开情绪变化不利的月份
- 顺势操作

## 实证数据

### 当期收益统计

**情绪指数区域**：
| 区域 | 月均收益 | 正收益占比 |
|------|----------|------------|
| 高区(1) | 最高 | 最高 |
| 次高区(2) | 较高 | 较高 |
| 次低区(3) | 较低 | 较低 |
| 低区(4) | 最低 | 28.57% |

### 下期收益统计

**情绪指数**：
- 高区 → 继续表现好
- 低区 → 极端时可能反转

**情绪变化指数**：
- 区域4 → 下期收益最好
- 区域2 → 下期收益最差

### 策略效果

2005-2010年：
- 长期区域策略：显著超额收益
- 短期变化策略：显著超额收益
- 沪深300基准：129.45%

## 实践要点

### 数据获取

- 封闭式基金折价率：天天基金网
- 可转债溢价率：东方财富
- 基金仓位：基金公司公开数据
- 上涨家数：交易所行情数据

### 策略参数

- 区域划分：1倍标准差
- 再平衡周期：月度
- 调仓：月初或月末

## 注意事项

1. **数据质量**：部分指标可能存在估计误差
2. **时效性**：情绪指标受当期影响大
3. **极端情况**：极端情绪可能预示反转
4. **综合判断**：结合多种指标

## 适用场景

- 大盘择时
- 仓位管理
- 风险预警
- 市场情绪监控

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [FeiCoder](https://github.com/FeiCoder)
- **Source:** [FeiCoder/Skill-Factory](https://github.com/FeiCoder/Skill-Factory)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-feicoder-skill-factory-market-sentiment-timing
- Seller: https://agentstack.voostack.com/s/feicoder
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
