technical-basic
$
npx mdskill add HKUDS/Vibe-Trading/technical-basicCalculate composite buy/sell signals from OHLCV data using three technical indicators.
- Generates trading recommendations by combining trend, mean reversion, and volume signals.
- Requires OHLCV data inputs processed with pure pandas implementations.
- Decides signals through a voting system requiring bullish trend, neutral RSI, and rising OBV.
- Outputs clear long, short, or stand aside recommendations based on indicator alignment.
SKILL.md
.github/skills/technical-basicView on GitHub ↗
--- name: technical-basic description: 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. category: strategy --- # 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
More from HKUDS/Vibe-Trading
- adr-hshareADR/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.
- akshareAKShare financial data aggregator (18k+ stars). Free, no API key. Covers A-shares, US, HK, futures, macro, forex. Primary fallback for tushare and yfinance.
- asset-allocationAsset allocation theory and optimizer usage — MPT / Black-Litterman / risk budgeting / all-weather strategy, including guides for 4 optimizers and rebalancing rules.
- backtest-diagnoseDiagnose failed or underperforming backtests, locate the root cause, and fix the issue
- behavioral-financeBehavioral finance applications: theories of overreaction and underreaction, behavioral explanations for momentum and reversal, investor sentiment cycles, cognitive-bias checklists, and debiasing quantitative strategies.
- candlestickCandlestick pattern recognition engine, pure pandas vectorized implementation of 15 classic candlestick patterns (5 single-candle + 5 double-candle + 4 triple-candle + 1 trend confirmation), generating a composite signal from bullish/bearish pattern scores.
- ccxtCCXT unified crypto exchange library (100+ exchanges). Free public market data. Fallback when OKX is unavailable.
- chanlun基于缠论(缠中说禅)的形态识别引擎,使用czsc库自动检测K线分型、笔、中枢,并生成一买/一卖/二买/二卖/三买/三卖等买卖点信号。支持多周期分析和形态分类(3/5/7/9/11笔形态)。
- commodity-analysisCommodity analysis (oil supply-demand balance / gold pricing / copper as an economic predictor / inventory cycles / futures premium-discount structure / seasonality), generating directional commodity signals.
- convertible-bondA股可转债分析——转股/纯债/期权三维估值、下修/强赎/回售博弈、双低策略与转债轮动选债框架