staskh/technical-analysis
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.
npx skills add https://github.com/staskh/trading_skills --skill technical-analysis
Compute technical indicators using pandas-ta. Supports multi-symbol analysis and earnings data.
> Note: If uv is not installed or pyproject.toml is not found, replace uv run python with python in all commands below.
uv run python scripts/technicals.py SYMBOL [--period PERIOD] [--indicators INDICATORS] [--earnings]
SYMBOL - Ticker symbol or comma-separated list (e.g., AAPL or AAPL,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)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 resultsindicators.macd.crossover - Most recent MACD line/signal crossover, or null:direction - "up" (MACD crossed above signal = bullish) or "down" (crossed below = bearish)days_ago - Trading bars since the crossover (0 = happened on the most recent bar)indicators.ema.crossover - Most recent EMA9/EMA21 crossover (same shape; null if none).indicators.ema also reports ema9 and ema21 alongside ema12/ema26.
crossover.days_ago of 0-5 = fresh signal# 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
Compute price correlation matrix between multiple symbols for diversification analysis.
uv run python scripts/correlation.py SYMBOLS [--period PERIOD]
SYMBOLS - Comma-separated ticker symbols (minimum 2)--period - Historical period: 1mo, 3mo, 6mo, 1y (default: 3mo)symbols - List of symbols analyzedperiod - Time period usedcorrelation_matrix - Nested dict with correlation values between all pairs# 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
numpypandaspandas-tayfinanceAll 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.
Take staskh/technical-analysis from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.