---
title: 位置多维度解码器
category: 主力体系
tags: [位置, 多维度, 解码器, 主力阶段]
created: 2026-06-01
source: 知识库融合
---

# 位置多维度解码器

> 位置不是60日百分位一个维度。
> 一个完整的位置判断 = 价格位置 + 时间位置 + 空间位置 + 主力阶段位置。

---

## 一、四维位置模型

| 维度 | 指标 | 计算方法 | 权重 |
|:----|:-----|:---------|:----|
| **价格位置** | 60日百分位 | (current - low_60d) / (high_60d - low_60d) | 0.3 |
| **时间位置** | 波段进场天数 | 当前波段已运行天数 / 平均波段长度(≈40天) | 0.2 |
| **空间位置** | 累计涨幅% | (current - band_start) / band_start | 0.3 |
| **主力阶段位置** | 主力阶段 | 从ask_three_questions获取 | 0.2 |

### 最终位置输出

```python
def calc_position_multi(close, volume, max_dd, nianling, xipan_chuhuo):
    # 四维加权
    # 价格百分位
    pos_pct = calc_position_percentile(df)
    
    # 空间位置（波段累计涨幅）
    if band_start_idx < len(close):
        space_pct = (close[-1] - close[band_start_idx]) / close[band_start_idx] * 100
    else:
        space_pct = 0
    
    # 时间位置
    time_pct = min(100, band_days / 40 * 100)
    
    # 最终输出
    combined = pos_pct * 0.3 + space_pct * 0.3 + time_pct * 0.2
    # + 主力阶段修正
    
    if combined < 35: return "低位"
    elif combined > 65: return "高位"
    else: return "中位"
```

---

## 二、位置的正确用法

位置不是决策变量，是信号解码变量。
同一个K线在三个位置是三种解读。
正确的用法是先算位置，再看K线，最后做决策。

### 位置使用的铁律

1. **位置不能单独决定买卖** — 位置高≠不能买，位置低≠可以买
2. **位置必须和主力阶段一起看** — 高位+主力在场=主升浪，低位+主力不在=阴跌继续
3. **位置的终点不是标签，是决策输入** — "低位"不是买入信号，而是"信号可信度较高"
