indicator_macd
Calculates the Moving Average Convergence Divergence (MACD) indicator from price data, supporting customizable fast, slow, signal periods and smoothing types (EMA, RMA, SMA, WMA, WSMA).
Instructions
指数平滑异同移动平均线 (MACD)。需要至少 slow+signal 个数据点(默认 35 个)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| values | Yes | 价格数组 | |
| fast | No | 快线 | |
| slow | No | 慢线 | |
| signal | No | 信号线 | |
| indicatorType | No | 平滑类型 |