get_technical_indicators
Calculates technical indicators for Chinese A-share stocks from K-line data, including MA, MACD, KDJ, RSI, and BOLL, to support realtime technical analysis.
Instructions
Calculates technical indicators for a Chinese A-share stock.
This tool fetches K-line data using Ashare and calculates indicators using MyTT library.
Combines realtime data with technical analysis.
Args:
code: The stock code. Supports multiple formats (same as get_realtime_kline).
frequency: K-line frequency. Valid options:
'1m', '5m', '15m', '30m', '60m', '1d', '1w', '1M'.
Defaults to '1d'.
count: Number of K-line bars to fetch. Defaults to 120 for accurate indicator calculation.
indicators: List of indicators to calculate. Valid options:
- 'MA': Moving Average (5, 10, 20日均线)
- 'EMA': Exponential Moving Average (12, 26日)
- 'MACD': Moving Average Convergence Divergence
- 'KDJ': Stochastic Oscillator
- 'RSI': Relative Strength Index
- 'WR': Williams %R
- 'BOLL': Bollinger Bands
- 'BIAS': Bias Ratio
- 'CCI': Commodity Channel Index
- 'ATR': Average True Range
- 'DMI': Directional Movement Index
- 'TAQ': Donchian Channel (唐安奇通道)
Defaults to ['MA', 'MACD', 'KDJ', 'BOLL', 'RSI'] if not specified.
format: Output format: 'markdown' | 'json' | 'csv'. Defaults to 'markdown'.
Returns:
K-line data with calculated technical indicators.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| count | No | ||
| format | No | markdown | |
| frequency | No | 1d | |
| indicators | No |