technical-analysis
@staskh · 收录于 1 周前
Compute technical indicators like RSI, MACD, Bollinger Bands, SMA, EMA for a stock. Use when user asks about technical analysis, indicators, RSI, MACD, moving averages, overbought/oversold, or chart analysis.
适合你,如果你需要快速计算股票的技术指标来分析走势
/ 下载安装
用别的 agent?下载 .zip 解压,把文件夹放进它的技能目录
Claude Code
~/.claude/skills/(项目级 .claude/skills/)Codex CLI
~/.codex/skills/Cursor自动读取上面两处目录
其他工具见其文档的「skills」目录;两个下载是同一份文件,只是名字不同
/ 通过 npx 安装 校验哈希
npx oh-my-skill add staskh/trading_skills/technical-analysis/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- staskh/trading_skills/technical-analysis/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify staskh/trading_skills/technical-analysis安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
288GitHub stars
~681最小装载
~1.1K含声明引用
~1.1K文本包总量
镜像托管
怎么用
技能原文 SKILL.md
Technical Analysis
Compute technical indicators using pandas-ta. Supports multi-symbol analysis and earnings data.
Instructions
Note: Ifuvis not installed orpyproject.tomlis not found, replaceuv run pythonwithpythonin all commands below.
uv run python scripts/technicals.py SYMBOL [--period PERIOD] [--indicators INDICATORS] [--earnings]
Arguments
SYMBOL- Ticker symbol or comma-separated list (e.g.,AAPLorAAPL,MSFT,GOOGL)--period- Historical period: 1mo, 3mo, 6mo, 1y (default: 3mo)--indicators- Comma-separated list: rsi,macd,bb,sma,ema,atr,adx (default: all)--earnings- Include earnings data (upcoming date + history)
Output
Single symbol returns:
price- Current price and recent changeindicators- Computed values for each indicatorrisk_metrics- Volatility (annualized %) and Sharpe ratiosignals- Buy/sell signals based on indicator levelsearnings- Upcoming date and EPS history (if--earnings)
Multiple symbols returns:
results- Array of individual symbol results
Interpretation
- RSI > 70 = overbought, RSI < 30 = oversold
- MACD crossover = momentum shift
- Price near Bollinger Band = potential reversal
- Golden cross (SMA20 > SMA50) = bullish
- ADX > 25 = strong trend
- Sharpe ratio > 1 = good risk-adjusted returns, > 2 = excellent
- Volatility (annualized) = standard deviation of returns scaled to annual basis
Examples
# Single symbol with all indicators uv run python scripts/technicals.py AAPL # Multiple symbols uv run python scripts/technicals.py AAPL,MSFT,GOOGL # With earnings data uv run python scripts/technicals.py NVDA --earnings # Specific indicators only uv run python scripts/technicals.py TSLA --indicators rsi,macd
Correlation Analysis
Compute price correlation matrix between multiple symbols for diversification analysis.
Instructions
uv run python scripts/correlation.py SYMBOLS [--period PERIOD]
Arguments
SYMBOLS- Comma-separated ticker symbols (minimum 2)--period- Historical period: 1mo, 3mo, 6mo, 1y (default: 3mo)
Output
symbols- List of symbols analyzedperiod- Time period usedcorrelation_matrix- Nested dict with correlation values between all pairs
Interpretation
- Correlation near 1.0 = highly correlated (move together)
- Correlation near -1.0 = negatively correlated (move opposite)
- Correlation near 0 = uncorrelated (independent movement)
- For diversification, prefer low/negative correlations
Examples
# Portfolio correlation uv run python scripts/correlation.py AAPL,MSFT,GOOGL,AMZN # Sector comparison uv run python scripts/correlation.py XLF,XLK,XLE,XLV --period 6mo # Check hedge effectiveness uv run python scripts/correlation.py SPY,GLD,TLT
Dependencies
numpypandaspandas-tayfinance
Timezone
All timestamps and time-based calculations must use the America/New_York timezone. All JSON output must include generated_at (NY time string) and data_delay fields.
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →
评论
登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。
…