ashares_technical_indicators
Pack: china-stocks · Endpoint: https://gateway.pipeworx.io/china-stocks/mcp
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/ashares_technical_indicators for the schema, then POST the same URL with its arguments for the data.
Moving averages, Bollinger Bands, MACD and KDJ for a China A-share stock or ETF, computed from daily OHLCV history.
Tool description as the model sees it
Technical indicators for Chinese A-share stocks and ETFs (均线/布林/MACD/KDJ) — MA (moving averages, any windows, default MA5/MA10/MA20/MA60), BOLL (Bollinger Bands, default 20-period ×2 std dev), MACD (DIF/DEA/柱, default 12/26/9), and KDJ (K/D/J, default 9/3/3), computed from this pack’s own daily OHLCV history (same source and codes as ashares_daily_history — ETF codes like 515050/588170/561980 work the same as stock codes). Answers ‘515050通信ETF华夏最近20个交易日MA5/MA10/MA20/BOLL/MACD/KDJ’, ‘603986兆易创新周线MACD是否死叉’, ‘MA20 and BOLL for an A-share ETF’, ‘布林带’, ‘均线’, ‘金叉死叉’. Internally fetches extra lookback history before start so the indicators are warmed up (MA60/MACD need ~60+ trading days of prior data) — only the requested [start, end] range is returned. MACD histogram uses the common Chinese charting convention 柱=2×(DIF−DEA); KDJ smoothing is the standard 3/3 recursive form seeded at 50. Up to 5 comma-separated codes per call (indicator math is heavier than a plain OHLCV pull). Source: Tencent/gtimg fqkline (keyless), same as ashares_daily_history.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
codes | string | yes | One 6-digit code or a comma-separated list, up to 5, e.g. “515050” or “600519,300750”. sh/sz/bj prefixes accepted but optional. ETF codes work the same as stock codes. |
start | string | yes | Start date for the RETURNED indicator range, YYYY-MM-DD or YYYYMMDD (inclusive). Extra history before this date is fetched automatically to warm up the indicators. |
end | string | no | End date, YYYY-MM-DD or YYYYMMDD (inclusive). Default: today. |
adjust | string | no | Price adjustment for splits/dividends: qfq = forward-adjusted (default), hfq = backward-adjusted, none = raw. |
indicators | array | no | Which indicator families to compute. Default: all four. |
items | string | no | |
ma_windows | array | no | MA window lengths in trading days. Default [5, 10, 20, 60]. |
items | number | no | |
boll_period | number | no | BOLL period, default 20. |
boll_mult | number | no | BOLL standard-deviation multiplier, default 2. |
macd_fast | number | no | MACD fast EMA period, default 12. |
macd_slow | number | no | MACD slow EMA period, default 26. |
macd_signal | number | no | MACD signal (DEA) EMA period, default 9. |
kdj_n | number | no | KDJ RSV lookback period, default 9. |
kdj_m1 | number | no | KDJ K smoothing factor, default 3. |
kdj_m2 | number | no | KDJ D smoothing factor, default 3. |
Example call
Arguments
{
"codes": "515050",
"start": "2026-09-01",
"end": "2026-09-22",
"indicators": [
"ma",
"boll",
"macd",
"kdj"
]
}
curl
curl -X POST https://gateway.pipeworx.io/china-stocks/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"ashares_technical_indicators","arguments":{"codes":"515050","start":"2026-09-01","end":"2026-09-22","indicators":["ma","boll","macd","kdj"]}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('ashares_technical_indicators', {
"codes": "515050",
"start": "2026-09-01",
"end": "2026-09-22",
"indicators": [
"ma",
"boll",
"macd",
"kdj"
]
});
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"china-stocks": {
"url": "https://gateway.pipeworx.io/china-stocks/mcp"
}
}
}
See Getting Started for client-specific install steps.