Detect chart patterns from swing points
technical-analysis_chart-patternsFind swing highs and lows, then detect double tops and bottoms, head and shoulders (and inverse), triangles and rectangles with necklines, targets and confirmation. Price $0.05 USDC. POST /api/v1/technical-analysis/chart-patterns. 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_chart-patterns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bars | Yes | bars, array. Required. | |
| tolerance | No | tolerance, number, from any to 1. Required. | |
| swingWindow | No | swingWindow, integer, from 1 to 500. Required. | |
| minBarsBetween | No | minBarsBetween, integer, from 1 to 5000. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | params. Object. | |
| swings | No | swings. Array. | |
| warmup | No | warmup. Object. | |
| sources | No | sources. Array. | |
| patterns | No | patterns. Array. | |
| limitations | No | limitations. Array. |