본문으로 건너뛰기
Skillpedia
분석 및 스프레드시트37k · #7566

volatility

하는 일

이 스킬은 변동성이 정상 수준으로 되돌아온다는 데 베팅하는 전략을 시험합니다. 조용한 시기와 격한 시기가 번갈아 나타나는 방식을 연구하는 트레이더를 위한 스킬입니다.

사용하는 경우

  • ✓조용한 저변동성 시기 뒤에 더 큰 움직임이 올 수 있다고 생각할 때.
  • ✓주식의 변동성이 비정상적으로 높아서 청산 규칙을 시험하고 싶을 때.
  • ✓암호화폐나 주식 가격 데이터에서 변동성 국면을 비교하고 싶은 경우.

스킬 링크

https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/volatility/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/volatility/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 주식에 대해 변동성이 과거 하위 20퍼센트일 때 매수하는 변동성 전략을 시험해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 롤링 창으로 역사적 변동성을 계산하고, 이를 최근 과거와 비교해 순위를 매깁니다. 변동성이 낮으면 롱에 들어가고, 높으면 청산하거나 숏을 잡으며, 그 사이에는 현재 포지션을 유지합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Volatility Strategy

Purpose

Uses percentile ranking of historical volatility (HV) to capture volatility mean reversion: build positions in low-volatility regimes while waiting for volatility expansion, and exit or short in high-volatility regimes to capture contraction.

Signal Logic

  1. Compute HV: annualized standard deviation of returns over the past hv_window days
  2. Percentile ranking: percentile position of HV within the past lookback days (0-100)
  3. Signal generation:
    • Percentile < low_pct → go long (volatility is low, waiting for expansion)
    • Percentile > high_pct → exit / go short (volatility is high, waiting for contraction)
    • Middle region → keep the current position

Key Implementation Details

  • HV = returns.rolling(hv_window).std() * sqrt(252) (annualized)
  • Percentile = hv.rolling(lookback).rank(pct=True) * 100
  • For cryptocurrencies, use 365 instead of 252 as the annualization factor

Parameters

Parameter Default Description
hv_window 20 Historical volatility calculation window
lookback 120 Lookback period for percentile ranking
low_pct 20.0 Low-volatility threshold (percentile)
high_pct 80.0 High-volatility threshold (percentile)
annualize 252 Annualization factor (252 for China A-shares, 365 for crypto)

Common Pitfalls

  • Before the lookback window is filled, there is not enough data to compute percentiles, so the signal should be 0 (fillna)
  • Volatility is not direction. Going long in low-volatility regimes does not guarantee price appreciation; it only means volatility expansion is statistically more likely
  • Cryptocurrencies trade 7x24, so annualize should be set to 365

Dependencies

pip install pandas numpy

Signal Convention

  • 1 = long (low-volatility regime), -1 = short (high-volatility regime), 0 = stand aside
자주 묻는 질문

역사적 변동성이란 무엇인가요?

최근 수익률의 연율화된 표준편차로, 가격이 얼마나 움직였는지를 측정합니다.

암호화폐에는 왜 365를 쓰나요?

암호화폐는 매일 거래되므로, 스킬은 변동성 연율화에 252 대신 365를 씁니다.

이 전략은 항상 통하나요?

아닙니다. 변동성은 평균으로 되돌아가는 경향이 있지만 보장은 없으므로 먼저 시험해야 합니다.

상세 정보

작성자의 원본 설명

Volatility strategy. Trades mean reversion based on percentile ranking of historical volatility (HV). Suitable for any OHLCV data.

repo: HKUDS/Vibe-Trading

인기도

GitHub 스타
37k
순위
#7566
라이선스
MIT
업데이트
2026. 11. 1.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬