Trading_skills 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.
install
source · Clone the upstream repo
git clone https://github.com/staskh/trading_skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/staskh/trading_skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.claude/skills/technical-analysis" ~/.claude/skills/staskh-trading-skills-technical-analysis && rm -rf "$T"
manifest:
.claude/skills/technical-analysis/SKILL.mdsource content
Technical Analysis
Compute technical indicators using pandas-ta. Supports multi-symbol analysis and earnings data.
Instructions
Note: If
is not installed oruvis not found, replacepyproject.tomlwithuv run pythonin all commands below.python
uv run python scripts/technicals.py SYMBOL [--period PERIOD] [--indicators INDICATORS] [--earnings]
Arguments
- Ticker symbol or comma-separated list (e.g.,SYMBOL
orAAPL
)AAPL,MSFT,GOOGL
- Historical period: 1mo, 3mo, 6mo, 1y (default: 3mo)--period
- Comma-separated list: rsi,macd,bb,sma,ema,atr,adx (default: all)--indicators
- Include earnings data (upcoming date + history)--earnings
Output
Single symbol returns:
- Current price and recent changeprice
- Computed values for each indicatorindicators
- Volatility (annualized %) and Sharpe ratiorisk_metrics
- Buy/sell signals based on indicator levelssignals
- Upcoming date and EPS history (ifearnings
)--earnings
Multiple symbols returns:
- Array of individual symbol resultsresults
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
- Comma-separated ticker symbols (minimum 2)SYMBOLS
- Historical period: 1mo, 3mo, 6mo, 1y (default: 3mo)--period
Output
- List of symbols analyzedsymbols
- Time period usedperiod
- Nested dict with correlation values between all pairscorrelation_matrix
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