Skills

Technical Basic

Core technical indicator collection (trend EMA/ADX + mean-reversion BB/RSI +...

Install

npx skills add HKUDS/Vibe-Trading --skill technical-basic -g -a claude-code -y
Repository
HKUDS/Vibe-Trading37.4k
Category
Data and ML
Updated
3d ago
License
MIT
Context cost
Lightabout 423 tokens
Runs scripts
Yes, review before use

What it does

Core technical indicator collection (trend EMA/ADX + mean-reversion BB/RSI + volume-price OBV/volume ratio), generates a composite signal via three-dimensional voting. Pure pandas implementation for any OHLCV data.

Core Technical Indicator Collection

Purpose

Combines three classic Western technical analysis approaches into one composite signal engine:

DimensionIndicatorsPurpose
TrendEMA(12/26) + ADX(14)Determine direction and trend strength
Mean reversionBollinger Bands(20,2) + RSI(14)Detect overbought and oversold conditions
Volume-priceOBV + volume ratioConfirm 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:

ParameterDefaultDescription
ema_fast12Fast EMA period
ema_slow26Slow EMA period
adx_period14ADX calculation period
adx_threshold25.0ADX trend-strength threshold
bb_window20Bollinger Band window
bb_std2.0Bollinger Band standard deviation multiplier
rsi_period14RSI period
rsi_oversold30RSI oversold threshold
rsi_overbought70RSI overbought threshold
vol_ma_period20Volume moving-average period
obv_ma_period20OBV moving-average period

Dependencies

pip install pandas numpy requests

Signal Convention

  • 1 = long, -1 = short, 0 = stand aside

More in Data and ML