alice-analysis
하는 일
이 스킬은 과거 가격으로 거래 지표를 계산하는 짧은 수식을 실행하는 방법을 설명합니다. 시장을 분석하면서 계산은 에이전트에게 맡기고 싶은 사람을 위한 스킬입니다.
사용하는 경우
- ✓주식의 50일 이동평균 같은 지표가 필요할 때.
- ✓특정 종목에 어떤 가격 데이터 소스를 쓸지 골라야 할 때.
- ✓주가가 어떻게 움직여 왔는지 간단히 보고 싶을 때.
스킬 링크
https://github.com/TraderAlice/OpenAlice/blob/master/default/skills/alice-analysis/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“애플 주식의 50일 이동평균을 계산해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 ID로 맞는 가격 시리즈를 찾고, 과거 가격에 짧은 수식을 실행한 뒤 결과를 돌려줍니다. 이 수식은 다른 데이터를 바꿀 수 없습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
alice analysis — Quant Calculator (v2)
A bounded, side-effect-free expression language for technical analysis. You write
a short script; it fetches K-lines by barId and returns a value (or a panel
of values). Get barIds from alice analysis search-bars first.
Example
alice market search-bars --query AAPL
alice analysis quant --script $'s = bars("alpaca-paper|AAPL", "1d", count=250)\nsma(s.close, 50)'
Choosing a source
search-bars federates broker and vendor bars. Choose a source by the asset,
coverage and entitlement needed for the task. A broker feed is not necessarily
realtime or complete; metadata reports its advertised capability. Different
sources for the same asset remain separate barIds.
For custom processing, alice market bars ... --output bars.json returns raw
OHLCV and metadata for local scripts. The calculator is an optional shortcut.
Vendor barIds infer the asset class from an exact catalog match. If lookup is
unavailable or ambiguous, the calculator accepts an explicit asset= hint.
Keyless exchange data sources such as binance-readonly are opt-in in
Trading settings, so do not assume they exist before search-bars returns them.
No candidates for a non-US symbol? search-bars only fans out over the
vendors that are on. A Taiwan or CN A-share searched by its native name can
come back empty just because its vendor is off — alice market vendors to see
what's available, alice market vendor-set --vendor twse --enabled true to add
it (live immediately), then re-run search-bars. See the alice skill.
Language
A script is zero or more name = ... bindings, then a final result expression:
s = bars("alpaca-paper|AAPL", "1d", count=250)
sma(s.close, 50) - sma(s.close, 200) # +ve = 50 above 200 (uptrend)
bars(barId, interval, count=, asOf=, start=, end=, asset=)
barId:"{source}|{symbol}"from search-bars. Broker (alpaca-paper|AAPL) or opt-in keyless exchange data (binance-readonly|BTC/USDT) needs NOasset=. Vendor sources resolve exact catalog matches; passasset="equity"|"crypto"|"currency"|"commodity"when an explicit hint is needed.interval:1m 5m 15m 30m 1h 4h 1d 1w.- Window:
count=N(most-recent N bars — the natural window for indicators), ORstart=/end=(YYYY-MM-DD date range), ORend=+count=(point-in-time backtest).
Columns of a bars() series: s.open / s.high / s.low / s.close / s.volume.
Indexing: raw columns are series — index them: s.close[-1] (latest),
s.close[-2] (one back). Indicators already return the latest scalar — do NOT
index them (sma(s.close, 50), not sma(...)[-1]).
Arithmetic: + - * /, parentheses, unary minus.
Panels — batch many computations in one call
The result can be a labeled dict or a positional list (each entry a single value, max 200). Use this instead of calling the tool N times:
h1 = bars("yfinance|BTC-USD", "1h", count=250, asset="crypto")
h4 = bars("yfinance|BTC-USD", "4h", count=250, asset="crypto")
d1 = bars("yfinance|BTC-USD", "1d", count=250, asset="crypto")
{ "1h": rsi(h1.close, 14), "4h": rsi(h4.close, 14), "1d": rsi(d1.close, 14) }
→ { "1h": 53.2, "4h": 48.9, "1d": 61.4 }
Sibling verbs — dated reads
quant returns latest scalars with no dates. When you need the time axis or a
dated research input, reach for these instead (see the retrospective skill for
the full workflow):
alice analysis snapshot --query XLE [--asOf YYYY-MM-DD]— the honest as-of read: DATED bars (never pastasOf— no lookahead), the latest print (close + vs-prevClose + day high/low + amplitude), compact levels, and a freshness contract (isLatestActual/staleTradingDays). Use this for "what does/did X look like", not a hand-rolled quant dump.alice analysis quant … --dates— opt-in date axis on a quant result (dates[barId]for one interval;dates["barId@interval"]when the same barId is used at multiple intervals), to map a dumped series back to days.
Function catalog
| Group | Functions |
|---|---|
| Trend | sma(s, n) ema(s, n) macd(s, fast, slow, signal) slope(s, n) (signed, rankable trend) |
| Momentum | rsi(s, n=14) roc(s, n) (% change over n) |
| Volatility | stdev(s) atr(high, low, close, n) bbands(s, n, std) zscore(s, n?) (how extended vs window) |
| Volume | rvol(volume, n=20) obv(close, volume) mfi(high, low, close, volume, n=14) ` |
자주 묻는 질문
프로그래밍을 알아야 하나요?
아닙니다. 원하는 결과를 요청하면 에이전트가 짧은 수식을 작성하고 실행합니다.
이 스킬은 항상 실시간 가격을 주나요?
항상 그렇지는 않습니다. 브로커 데이터는 실시간이 아니거나 불완전할 수 있으므로 데이터의 최신성을 확인해야 한다고 스킬이 설명합니다.
원본 가격 데이터를 직접 받을 수 있나요?
네. 스킬은 직접 분석할 수 있도록 원본 가격 봉을 파일로 저장하는 방법도 설명합니다.
상세 정보
작성자의 원본 설명
Optional technical-analysis formulas and snapshots through alice analysis. Documents the bounded expression language, barId source selection and panels. Raw K-lines for local scripts are available through alice market bars.
repo: TraderAlice/OpenAlice
인기도
- GitHub 스타
- 7.4k
- 순위
- #13259
- 라이선스
- AGPL-3.0
- 업데이트
- 2026. 10. 23.
댓글
- …
이 저장소의 다른 스킬
alice-uta
7.4k에이전트가 연결된 증권 계좌의 보유 종목, 시세, 주문 내역을 확인하고, 거래를 매우 신중하게 관리하도록 돕습니다.
alice
7.4k에이전트가 alice 도구로 주식을 검색하고 리서치 데이터를 가져오며, 팀의 인박스와 이슈를 함께 다루도록 돕습니다.
build-thesis
7.4k에이전트가 한 종목에 대해 수치와 시장 흐름을 함께 검토하고, 틀릴 수 있는 지점을 분명히 밝힌 균형 잡힌 투자 논리를 세우도록 돕습니다.
delegate-autoquant
7.4k에이전트가 정량 리서치 질문을 전담 AutoQuant 데스크에 맡기고, 근거가 담긴 답변을 돌려받도록 돕습니다.
비슷한 스킬
gitcrawl
394k에이전트가 저장된 GitHub 이슈와 풀 리퀘스트 보관본을 검색하고, 중복 항목을 묶고, GitHub에서 현재 상태를 확인하도록 돕습니다.
slacrawl
394k에이전트가 로컬 Slack 보관본에서 메시지를 검색하고 개수를 세며, 보관본이 얼마나 최신인지 확인하고 필요할 때 새로 고치도록 돕습니다.
goplaces
394k에이전트가 Google Places로 장소를 검색하고, 세부 정보와 리뷰를 가져오고, 장소 이름을 확인하며, 스크립트용 JSON을 출력하도록 돕습니다.