---
title: 支持的指标
description: MobiusQuant 内置 56 个技术指标,按类别索引,均带 TradingView 对齐的数学定义和语义化绘图协议
---

# 支持的指标

引擎内置 **56** 个技术指标(涵盖经典公开指标 + 少量 MobiusQuant 复合指标),所有数学定义对齐 TradingView Pine Script,在 7 个语义类别下组织。每个指标除了原始数值外,还附带:

- 自描述参数表(`GET /api/indicators/registry`)
- 绘图协议(`GET /api/indicators/catalog`,主图/副图、值域、配色 role)
- 知识库说明(中文,LLM 解读用)

## 不只是数值 —— 每个响应都自带"怎么读"

这是搭 **AI Agent** 时最大的差异点。调 `/api/indicators?explain=true`,响应除了数值序列,还会带一个 `knowledge` 块,直接告诉 LLM **该看什么、信号怎么判、有什么坑**。

```bash
POST https://api.mobiusquant.ai/api/indicators?explain=true
  body: {"exchange":"binance","market":"perp","symbol":"BTCUSDT",
         "interval":"5m","limit":100,
         "calc":[{"name":"cvd"}]}
```

响应结构:

```json
{
  "data": {
    "cvd_hist":  [-12, -8, -3, 5, 11, ...],
    "bear_div":  [false, false, true, ...],
    "bear_div_strength": [0, 0, 2, ...]
  },
  "knowledge": {
    "summary_focus": [
      "当前 cvd_hist 为正还是为负,反映买/卖力量主导",
      "最近是否触发了牛/熊背离,强度等级(Normal/Good/Strong)",
      "三个周期的背离信号是否存在共振"
    ],
    "signals": {
      "bear_divergence": "价格创新高但 cvd_hist 高点降低,多头量能不足,潜在空头反转",
      "strong_signal":   "强度=3(Strong),反转概率显著提升"
    },
    "caveats": "背离需要 fractal 确认延迟;单边趋势中信号较少;是反转预警而非即时信号"
  }
}
```

### 这对 LLM 有什么用

| 字段 | 来源 | LLM 用它做什么 |
| --- | --- | --- |
| `summary_focus` | DB `engine_indicator_knowledge.summary_focus` | "按这几点看" —— 给 LLM 结构化的走查清单,而不是放任它自由发挥 |
| `signals` | `.signals` | 精确阈值定义(例如 RSI 超买 = 70,不是 LLM 自己猜) —— 杜绝幻觉规则 |
| `caveats` | `.caveats` | 作者写入的坑(fractal 确认延迟、单边趋势中信号少…) —— 防止过度自信解读 |
| `guide_desc` | `.guide_desc` | 应用语境 —— 这指标在什么情况下最有意义 |

**效果**:LLM 不再凭训练记忆猜行业标准规则,而是「读眼前数据 + 按 rubric 走步骤」,产出 grounded 分析。幻觉显著下降,输出结构跨次稳定。

::: tip Skill 接入推荐做法
把响应里的 `data` 和 `knowledge` 一起喂给下游 LLM,**不要为了省 token 把 knowledge 丢了** —— 这部分才是让分析"靠谱"的关键。详见 [Skill 运行时查询指南](/zh/lookup-guide)。
:::

---

## 类别分布

| 类别 | 数量 | 用途 |
| --- | --- | --- |
| `base` | 1 | 价格/成交量等基础列 |
| `momentum` | 18 | 动量类(MACD、RSI 家族、TSI…) |
| `oscillator` | 4 | 振荡器(RSI、Fisher、RVI…) |
| `trend` | 12 | 趋势线(EMA、SuperTrend、PSAR…) |
| `trend_strength` | 4 | 趋势强度(ADX、Aroon、Vortex…) |
| `volatility` | 10 | 波动率(ATR、Bollinger、Keltner…) |
| `volume` | 7 | 量价(OBV、CMF、CVD、KVO、VWAP…) |

::: tip 注册表与目录的区别
- `/api/indicators/registry` → 完整自描述(参数、输出列、类型),给程序消费
- `/api/indicators/catalog` → 可绘图的子集 + 配色/面板元信息,给 chart 客户端用
- `/api/indicators` → POST 计算端点,返回 K 线 + 指标值
:::

---

## 完整列表

### base(1)

| ID | 说明 |
| --- | --- |
| [`price`](./price) | OHLCV 价格/成交量基础列 |

### momentum(18)

| ID | 中文名 |
| --- | --- |
| [`accelerator_oscillator`](./accelerator_oscillator) | 加速振荡器 |
| [`awesome_oscillator`](./awesome_oscillator) | 鳄鱼振荡器(AO) |
| [`cci`](./cci) | 顺势指标(CCI) |
| [`chande_mo`](./chande_mo) | 钱德动量摆动指标 |
| [`connors_rsi`](./connors_rsi) | Connors RSI |
| [`coppock_curve`](./coppock_curve) | 科波克曲线 |
| [`dpo`](./dpo) | 去趋势价格振荡器 |
| [`kst`](./kst) | 确知动量指标(KST) |
| [`macd`](./macd) | MACD |
| [`momentum`](./momentum) | 动量(MOM) |
| [`ppo`](./ppo) | 价格振荡百分比(PPO) |
| [`roc`](./roc) | 变动率(ROC) |
| [`smi_ergodic`](./smi_ergodic) | SMI 遍历指标 |
| [`stoch_rsi`](./stoch_rsi) | 随机 RSI(StochRSI) |
| [`trix`](./trix) | TRIX 三重指数平滑 |
| [`tsi`](./tsi) | 真实强弱指数(TSI) |
| [`ultimate_oscillator`](./ultimate_oscillator) | 终极振荡器(UO) |
| [`williams_r`](./williams_r) | 威廉指标(%R) |

### oscillator(4)

| ID | 中文名 |
| --- | --- |
| [`fisher_transform`](./fisher_transform) | Fisher 变换 |
| [`rci_ribbon`](./rci_ribbon) | RCI 排列指数带 |
| [`rsi`](./rsi) | 相对强弱指数(RSI) |
| [`rvi`](./rvi) | 相对活力指数(RVI) |

### trend(12)

| ID | 中文名 |
| --- | --- |
| [`alligator`](./alligator) | 比尔威廉姆斯鳄鱼线 |
| [`alma`](./alma) | 阿尔诺移动平均(ALMA) |
| [`ema`](./ema) | 指数移动平均(EMA) |
| [`hma`](./hma) | 赫尔移动平均(HMA) |
| [`lsma`](./lsma) | 最小二乘移动平均 |
| [`mcginley_dynamic`](./mcginley_dynamic) | 麦吉利动态指标 |
| [`mobius_trend`](./mobius_trend) | MobiusQuant 复合趋势线 |
| [`parabolic_sar`](./parabolic_sar) | 抛物线 SAR |
| [`supertrend`](./supertrend) | SuperTrend |
| [`tema`](./tema) | 三重指数移动平均(TEMA) |
| [`vwma`](./vwma) | 成交量加权移动平均(VWMA) |
| [`williams_stops`](./williams_stops) | 威廉止损线 |

### trend_strength(4)

| ID | 中文名 |
| --- | --- |
| [`adx`](./adx) | 平均趋向指数(ADX) |
| [`aroon_oscillator`](./aroon_oscillator) | Aroon 振荡器 |
| [`choppiness_index`](./choppiness_index) | 震荡指数(CHOP) |
| [`vortex`](./vortex) | 涡旋指标(Vortex) |

### volatility(10)

| ID | 中文名 |
| --- | --- |
| [`atr`](./atr) | 平均真实波幅(ATR) |
| [`bollinger`](./bollinger) | 布林带 |
| [`chande_kroll_stop`](./chande_kroll_stop) | Chande Kroll 止损 |
| [`donchian_channels`](./donchian_channels) | 唐奇安通道 |
| [`fibonacci_bollinger_bands`](./fibonacci_bollinger_bands) | 斐波那契布林带 |
| [`historical_volatility`](./historical_volatility) | 历史波动率 |
| [`keltner_channels`](./keltner_channels) | 肯特纳通道 |
| [`linear_regression_channel`](./linear_regression_channel) | 线性回归通道 |
| [`mass_index`](./mass_index) | 梅斯线 |
| [`stdev`](./stdev) | 标准差 |

### volume(7)

| ID | 中文名 |
| --- | --- |
| [`chaikin_oscillator`](./chaikin_oscillator) | 蔡金振荡器 |
| [`cmf`](./cmf) | 蔡金资金流量(CMF) |
| [`cvd`](./cvd) | 累计成交量差(CVD) |
| [`kvo`](./kvo) | 克林格成交量振荡器(KVO) |
| [`obv`](./obv) | 能量潮(OBV) |
| [`pvo`](./pvo) | 成交量振荡百分比(PVO) |
| [`vwap`](./vwap) | 成交量加权均价(VWAP) |

---

## 用法示例

### 单指标:BTC 5m 的 EMA(20)

```bash
curl -X POST -H "Authorization: Bearer mq_xxx" \
  -H "Content-Type: application/json" \
  -d '{
    "exchange": "binance",
    "market":   "perp",
    "symbol":   "BTCUSDT",
    "interval": "5m",
    "limit":    100,
    "calc":     [{"name": "ema", "params": {"period": 20}}]
  }' \
  https://api.mobiusquant.ai/api/indicators
```

### 多指标:RSI(14) + MACD + Bollinger

```bash
curl -X POST -H "Authorization: Bearer mq_xxx" \
  -H "Content-Type: application/json" \
  -d '{
    "exchange": "binance",
    "market":   "perp",
    "symbol":   "BTCUSDT",
    "interval": "1h",
    "limit":    200,
    "calc": [
      {"name": "rsi",       "params": {"period": 14}},
      {"name": "macd",      "params": {"fast": 12, "slow": 26, "signal": 9}},
      {"name": "bollinger", "params": {"period": 20, "stdev": 2}}
    ]
  }' \
  https://api.mobiusquant.ai/api/indicators
```

### 同名指标多参数(用 `id` 区分)

```json
{
  "calc": [
    {"id": "ema_fast", "name": "ema", "params": {"period": 12}},
    {"id": "ema_slow", "name": "ema", "params": {"period": 26}}
  ]
}
```

无 `id` 时引擎用 `name` 当 key,因此**同名重复且参数不同**必须显式传 `id`。

### 带绘图协议(给 chart 客户端用)

```bash
curl -X POST -H "Authorization: Bearer mq_xxx" \
  -H "Content-Type: application/json" \
  -d '{
    "exchange": "binance", "market": "perp", "symbol": "BTCUSDT",
    "interval": "5m", "limit": 100,
    "calc": [{"name": "supertrend"}, {"name": "rsi"}]
  }' \
  https://api.mobiusquant.ai/api/chart
```

返回会带 `items: [...]`,描述每个指标的面板归属(主图 `main` / 副图 `sub`)、值域、配色 `role`(`primary` / `oversold` / `overbought` / ...,由 chart 客户端按主题映射成具体颜色)。

---

## 配套接口

| Method | Path | 说明 |
| --- | --- | --- |
| GET | `/api/indicators/registry` | 所有指标的参数 / 输出列签名(完整自描述) |
| GET | `/api/indicators/catalog` | 可绘图子集 + 配色/面板元信息 |
| POST | `/api/indicators` | 计算端点,返回 K 线 + 指标值 |
| POST | `/api/chart` | 同上,但带绘图协议(给 lightweight-charts 等) |

实时获取最新列表(包括我们后来增加的指标):

```bash
curl -H "Authorization: Bearer mq_xxx" \
     https://api.mobiusquant.ai/api/indicators/registry | jq '.[] | .name'
```

---

## 缺哪个指标?

我们持续在加新指标。如果你想要的 TradingView 经典指标当前没有,可以:

1. 在 [GitHub Issue](https://github.com/MobiusQuant/OpenMobius-skill/issues) 提 feature request,附上 Pine Script 源码
2. 我们会评估并按 Pine→Python 流程实现,通常 1-3 天上线
