volatility

Rank historical volatility and generate mean-reversion signals from OHLCV data.

6.1k|1.2k|Updated Jun 9, 2022
One-click install
npx skills add https://github.com/charliedream1/ai_quant_trade --skill volatility-charliedream1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: volatility
Source: https://github.com/charliedream1/ai_quant_trade/tree/main/a_%E5%85%A8%E7%BD%91%E4%BC%98%E7%A7%80%E8%B5%84%E6%BA%90/10_%E5%A4%A7%E6%A8%A1%E5%9E%8B/07_skill%E5%8C%85/vibe_trading_skills/volatility
Command: npx skills add https://github.com/charliedream1/ai_quant_trade --skill volatility-charliedream1

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill identifies trading opportunities by ranking historical volatility and generating mean-reversion signals.

Core Features & Use Cases

  • HV computation: annualized standard deviation of returns over a configurable window.
  • Percentile signaling: ranks HV across a lookback period to define low and high volatility regimes.
  • Use Case: apply to any OHLCV data (stocks, crypto, futures) to build long positions in low-volatility regimes and exit or short in high-volatility regimes.

Quick Start

Apply the volatility strategy to your OHLCV data to generate long/short/neutral signals based on HV percentile thresholds.

Frequently Asked Questions about volatility

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate trading signals from historical volatility percentiles?

To generate historical volatility percentile signals, you apply a deterministic pipeline to OHLCV data that computes annualized standard deviation, ranks it across a lookback period, and outputs long, short, or neutral positions based on configurable low and high percentile thresholds.

What is volatility mean-reversion and how does it work with OHLCV data?

Volatility mean-reversion is a strategy that assumes volatility fluctuations will return to an average level. It works by ranking historical volatility from OHLCV data over a lookback period to identify low-volatility regimes for long positions and high-volatility regimes for short or neutral positions.

Can I use this volatility strategy for crypto and futures markets?

Yes, you can apply this volatility strategy to crypto and futures markets. The pipeline processes any OHLCV data format across assets and markets to produce mean-reversion signals using adjustable historical volatility windows and percentile thresholds.

How do I configure the lookback period and HV window for mean-reversion signals?

You configure mean-reversion signals by adjusting the hv_window for standard deviation calculation, the lookback period for percentile ranking, and low_pct and high_pct thresholds to define volatility regimes and determine long, short, or neutral position outputs.

What is the best way to identify low and high volatility regimes for trading?

The best way to identify volatility regimes is ranking annualized historical volatility across a configurable lookback period. This percentile-based ranking establishes deterministic thresholds that trigger long positions in low-volatility regimes and short or neutral positions in high-volatility regimes.

Why does my historical volatility calculation require annualization?

Historical volatility calculation requires annualization to standardize the standard deviation of returns over a specific window, allowing accurate percentile ranking and threshold-based signal comparison across different assets, markets, and timeframes.