get_indicators
Calculate comprehensive technical indicators for a single stock (MA, RSI, MACD, Bollinger, Stochastic, OBV, volume profile, support/resistance) and return results as JSON for numeric comparison.
Instructions
기술지표 — 단일 종목의 이평선·RSI·MACD·볼린저·스토캐스틱 등 종합 판정.
⚠️ 스크리닝·판정 전용 도구. 차트 시각화용 아님.
시각화(아티팩트/플롯)는 get_chart로 캔들+거래량만 그리고, 지지·저항은
캔들 위에서 눈으로 판단하면 됩니다. 이 도구는 플레이북 조건 필터·상태 판정처럼
숫자 비교가 필요할 때만 호출하세요.
OHLCV 원본 대신 계산·판정 결과만 JSON으로 반환해 토큰을 절약합니다. 가격 출력은 KRX 호가단위로 라운딩됩니다.
Args: code: 종목코드 (예: "005930") days: 조회 일수 (기본 260, 최소 30, 최대 500) include: 계산할 지표 키 리스트. 기본 ["ma", "ma_phase", "volume", "candle"]. 스냅샷 지표: ma / ma_phase / ma_slope / ma_cross / rsi / macd / bollinger / stochastic / obv / volume / position / candle 구조 분석: support_resistance / volume_profile / price_channel (구조 분석은 days=500~750 등 긴 lookback 권장) timeframe: "day"(일봉) / "week"(주봉) / "month"(월봉). 분봉은 현재 미지원. params: 지표별 파라미터 오버라이드 dict. 사용자가 명시적으로 비표준 설정값을 요청할 때만 사용. 미지정 시 표준 default 사용. 형식: {"<지표키>": {"<파라미터명>": <값>}} 예시: {"rsi": {"period": 21}} # RSI 21일 {"bollinger": {"period": 20, "std": 2.5}} # BB(20, 2.5) {"stochastic": {"k_period": 5, "slow_k_period": 3, "d_period": 3}} # Fast(5,3,3) {"macd": {"fast": 5, "slow": 35, "signal": 5}} # MACD 커스텀
기본 default (대다수 차트 표준):
rsi: period=14 (Wilder's smoothing)
bollinger: period=20, std=2.0 (population std)
stochastic: k=12, slow_k=5, d=3 (네이버 Slow 기본)
macd: fast=12, slow=26, signal=9
ma_phase 값:
0 완전역배열 / 1 단기상승꼬임 / 2 꼬임 / 3 단기하락꼬임 / 4 완전정배열
⚠️ 반환값의 phase_label 필드를 그대로 사용. 직접 "꼬임"을 타이핑하지 말 것 (토크나이저 오류 위험).
ma_cross/macd.cross도 type_label 필드(골든크로스/데드크로스) 그대로 사용.
bollinger는 position 필드 (상단 돌파/상단 근접/밴드 내/하단 근접/하단 이탈)
support_resistance 반환: 피벗 자동 추출 + 클러스터링 + 터치 횟수·일자·강도(weak/medium/strong). 2~3년치 일봉 권장. 근거 없는 S/R 추정 제거 목적.
volume_profile 반환: 가격대별 누적 거래량, POC(최대 매물 집중), Value Area(70% 구간).
price_channel 반환: Donchian 채널. Upper=N봉 고가, Lower=N봉 저가, 현재 위치 %.
반환: JSON 문자열.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| days | No | ||
| include | No | ||
| timeframe | No | day | |
| params | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |