indicator_macd
Computes MACD indicator from price data. Returns MACD line, signal line, and histogram. Supports customizable periods and EMA/DEMA smoothing.
Instructions
MACD 指数平滑异同移动平均线。返回 { macd, signal, histogram }。默认参数 12/26/9
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| values | Yes | 价格序列(收盘价) | |
| fast | No | 快线周期 | |
| slow | No | 慢线周期 | |
| signal | No | 信号线周期 | |
| indicatorType | No | 平滑类型 | EMA |