technical-basic
This Claude Code skill implements a three-dimensional technical analysis engine combining trend indicators (EMA and ADX), mean-reversion signals (Bollinger Bands and RSI), and volume-price confirmation (OBV) into composite buy/sell/neutral signals. Use it to analyze OHLCV market data when you need multi-factor validation combining directional momentum, overbought/oversold conditions, and volume participation in a pure pandas framework.
git clone --depth 1 https://github.com/HKUDS/Vibe-Trading /tmp/technical-basic && cp -r /tmp/technical-basic/agent/src/skills/technical-basic ~/.claude/skills/technical-basicSKILL.md
# Core Technical Indicator Collection ## Purpose Combines three classic Western technical analysis approaches into one composite signal engine: | Dimension | Indicators | Purpose | |------|------|------| | Trend | EMA(12/26) + ADX(14) | Determine direction and trend strength | | Mean reversion | Bollinger Bands(20,2) + RSI(14) | Detect overbought and oversold conditions | | Volume-price | OBV + volume ratio | Confirm volume participation | ## Signal Logic Three-dimensional voting mechanism: - **Long**: trend is bullish + RSI is not overbought + OBV is rising - **Short**: trend is bearish + RSI is not oversold + OBV is falling - **Stand aside**: mixed signals ## Key Implementation Details - RSI and ADX use **Wilder EWM** (`ewm(alpha=1/period)`), not a rolling mean - Full ADX chain: +DM/-DM → TR → +DI/-DI → DX → ADX - OBV = `(volume * sign(close.diff())).cumsum()` ## Parameters All parameters have default values and can be overridden at instantiation time: | Parameter | Default | Description | |------|--------|------| | ema_fast | 12 | Fast EMA period | | ema_slow | 26 | Slow EMA period | | adx_period | 14 | ADX calculation period | | adx_threshold | 25.0 | ADX trend-strength threshold | | bb_window | 20 | Bollinger Band window | | bb_std | 2.0 | Bollinger Band standard deviation multiplier | | rsi_period | 14 | RSI period | | rsi_oversold | 30 | RSI oversold threshold | | rsi_overbought | 70 | RSI overbought threshold | | vol_ma_period | 20 | Volume moving-average period | | obv_ma_period | 20 | OBV moving-average period | ## Dependencies ```bash pip install pandas numpy requests ``` ## Signal Convention - `1` = long, `-1` = short, `0` = stand aside
Professional finance research toolkit — backtesting (7 engines + benchmark comparison panel), factor analysis, Alpha Zoo (452 pre-built alphas across qlib158/alpha101/gtja191/academic), options pricing, 77 finance skills, 29 multi-agent swarm teams, Trade Journal analyzer, and Shadow Account (extract → backtest → render) across 7 data sources (tushare, yfinance, okx, akshare, mootdx, ccxt, futu).
ADR/H-share/A-share cross-listing premium analysis — track pricing gaps between US-listed ADRs, HK-listed H-shares, and A-shares for arbitrage signals, dual-listing valuation, and delisting risk assessment.
AKShare financial data aggregator (18k+ stars). Free, no API key. Covers A-shares, US, HK, futures, macro, forex. Primary fallback for tushare and yfinance.
Browse and bench the bundled alpha zoos — prebuilt cross-sectional factor libraries (Kakushadze 101, GTJA 191, Qlib 158, Fama-French / Carhart). Use when the user asks "which alphas exist", wants metadata on a named alpha, or wants to run IC/IR on a whole zoo over a universe.
A 股 ST/*ST 风险预测框架 — 基于最新中报/三季报或业绩预告/快报,预测下一财年是否会因营收、利润、净资产、分红不达标而被风险警示,并将新浪监管处罚记录作为独立证据面纳入风险等级。仅适用于 A 股,不预测财务造假。
Asset allocation theory and optimizer usage — MPT / Black-Litterman / risk budgeting / all-weather strategy, including guides for 4 optimizers and rebalancing rules.
Diagnose failed or underperforming backtests, locate the root cause, and fix the issue
Behavioral finance applications: theories of overreaction and underreaction, behavioral explanations for momentum and reversal, investor sentiment cycles, cognitive-bias checklists, and debiasing quantitative strategies.