Compute MACD with signal line and crossovers
technical-analysis_macdCompute the MACD line, signal line and histogram on caller-supplied closes and list the bars where the histogram changes sign. Price $0.02 USDC. POST /api/v1/technical-analysis/macd. An unpaid call returns the x402 payment terms and does not run.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"bars": "<bars>"
},
"name": "technical-analysis_macd"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bars | Yes | bars, array. Required. | |
| fast | No | fast, integer, from 1 to 20000. Required. | |
| slow | No | slow, integer, from 1 to 20000. Required. | |
| signal | No | signal, integer, from 1 to 20000. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| macd | No | macd. Array. | |
| params | No | params. Object. | |
| signal | No | signal. Array. | |
| warmup | No | warmup. Object. | |
| sources | No | sources. Array. | |
| histogram | No | histogram. Array. | |
| crossovers | No | crossovers. Array. | |
| limitations | No | limitations. Array. |