volatility
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "volatility" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-839334d6ca411e3665fe8065b1793102f47fcf221ac4f54747adce28437918be. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/memory-forensics-volatility-lr-v0xl before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
A dedicated skill for memory forensics and Volatility designed to help an AI Agent more efficiently complete tasks related to memory forensics.
Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Volatility strategy. Trades mean reversion based on percentile ranking of historical volatility (HV). Suitable for any OHLCV data.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: volatility
description: Volatility strategy. Trades mean reversion based on percentile ranking of historical volatility (HV). Suitable for any OHLCV data.
category: strategyVolatility 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
- Compute HV: annualized standard deviation of returns over the past
hv_windowdays - Percentile ranking: percentile position of HV within the past
lookbackdays (0-100) - 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
- Percentile <
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
annualizeshould be set to 365
Dependencies
pip install pandas numpy
Signal Convention
1= long (low-volatility regime),-1= short (high-volatility regime),0= stand aside
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Areas to improve
-
受众范围较窄 Reported severity: Minor
该策略主要面向量化交易和金融分析专业用户,普通用户可能难以理解和使用
Recommendation: 可考虑增加更多使用场景说明或简化版本以适应更广泛的用户群体
Highlights
- 提供了清晰的波动率均值回归策略逻辑
- 包含详细的参数说明和实现细节
- 指出了常见陷阱和注意事项
Highlights
- description 内容完整且精准
- 清晰描述了策略核心功能和适用场景
- 触发词边界清晰,不易产生歧义
Areas to improve
-
缺少端到端使用示例 Reported severity: Minor
文档缺少具体的使用示例或代码调用演示
Recommendation: 建议添加一个完整的使用示例,展示如何调用该策略并解读结果
Highlights
- 文档结构清晰,章节划分合理
- frontmatter 完整规范
- 参数表格详细易懂
Areas to improve
-
缺少风险提示和实盘适用性说明 Reported severity: Minor
作为金融交易策略,缺少对实盘风险和适用条件的充分说明
Recommendation: 建议增加更多关于策略风险、回测要求和实盘注意事项的说明
Highlights
- 依赖项明确且常见
- 指出了关键的技术陷阱和解决方案
- 信号约定清晰统一
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 46
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.