hedgehog-finance/hogagent/tech-indicators
Claude Code and agent skill by hedgehog-finance/hogagent
- community
Checking that the SKILL.md file is still in the repository.
Calculate technical analysis indicators and candlestick patterns from OHLCV data locally. Triggers: technical indicator, RSI, MACD, SMA, EMA, Bollinger, stochastic, KDJ, ATR, ADX, SuperTrend, candlestick pattern, doji, hammer, engulfing, K-line pattern, 技术指标, K线形态. Blocking: fetching live market data, backtesting, portfolio management, chart rendering.
Install
npx vskill@latest install hedgehog-finance/hogagent/tech-indicatorsSKILL.md
Tech-Indicators — Local Technical Indicator Calculation Engine
Computes 74 technical indicators and candlestick patterns entirely offline, powered by fast-technical-indicators. No network requests required. Renko is intentionally excluded because its variable-length brick series cannot be aligned truthfully to this CLI's one-row-per-candle output.
Scripts
Input OHLCV JSON may be an existing source artifact. If the Agent creates a custom indicator-parameter object, write it as a unique UTF-8 workspace file named tmp-tech-indicators-<id>.json, pass its path through --params-file, and remove it after the call. Do not inline or shell-assemble JSON. The old --params <file> spelling remains a compatibility alias.
calc.mjs — Main calculation script
Options
| Option | Default | Description | |
|---|---|---|---|
--indicators | sma,ema,rsi,macd,bollingerbands | Comma-separated indicator names; use all for all 74 | |
--params-file | none | UTF-8 JSON file path for custom indicator parameters (--params is a compatibility alias) | |
--format | json | Output format: json or markdown | |
--list | — | List all supported indicator names (no input/output needed) |
Input Format
JSON array; each record must contain OHLCV fields:
Field name aliases: date/trade_date/time/timestamp/datetime, open/Open, high/High, low/Low, close/Close, volume/Volume/vol
Auto-processing:
- Date normalization to ISO 8601 (
20240102,2024/1/2→2024-01-02), directly usable for chart temporal axis - When date field is missing, generates index sequence (1, 2, 3...) as the
datecolumn; downstream charts should use ordinal/quantitative axis - Detects descending date order (newest first, e.g. tushare format) and auto-reverses to ascending before calculation — EMA/MACD and other recursive indicators depend on ascending time order
Supported Indicators
Trend
SMA, EMA, WMA, WEMA, MACD, PSAR, SuperTrend, Aroon, AroonOscillator, IchimokuCloud, Trix, DPO, LinearRegression, MAEnvelope
Oscillators
RSI, StochasticRSI, CCI, WilliamsR, ROC, PPO, KST, UltimateOscillator, PriceOscillator, Stochastic, KDJ
Channels
BollingerBands, DonchianChannels, KeltnerChannels, ChandelierExit
Volume
OBV, VWAP, ADL, MFI, ForceIndex
Volatility
ATR, SD (Standard Deviation), VolatilityIndex
Candlestick Patterns (35 types)
Doji, Hammer, SpinningTop, Marubozu, ShootingStar, BullishEngulfing, BearishEngulfing, BullishHarami, BearishHarami, MorningStar, EveningStar, ThreeWhiteSoldiers, ThreeBlackCrows, PiercingLine, DarkCloudCover, DragonflyDoji, GravestoneDoji, HangingMan, TweezerTop, TweezerBottom, AbandonedBaby, DownsideTasukiGap, etc.
Custom Params Format
JSON object; keys are indicator names, values are parameter overrides:
Workflow
- Prepare data — Save OHLCV data as a JSON file (use
table-convertskill to convert from CSV/Excel) - Run calculation —
node <this_skill_dir>/scripts/calc.mjs data.json result.json --indicators=sma,rsi,macd - Inspect results — Output file contains original data plus computed indicator columns
Examples
Resolve./scripts/*to absolute paths using this SKILL.md's directory (shown in system promptavailable_skills).Use absolute paths for input/output files. Write output to session task dir.
Dependencies
Pre-installed in <hogagent_root>/node_modules/: fast-technical-indicators, markdown-table
The official HogAgent package includes these dependencies. Before using a source checkout or an independently copied Skill, install its declared runtime dependencies with npm install --omit=dev --prefix '<skill_dir>'. A package.json declaration alone does not install the modules.
Execution safety
Market-data inputs are limited to 100 MiB, custom parameter files to 10 MiB, and records to 1,000,000. Empty/non-finite numeric values, invalid OHLC relationships, negative volume, nested indicator parameters, and unsafe periods are rejected. Serialized output atomically replaces the target only after a complete calculation.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/tech-indicators/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hedgehog-finance/hogagent/tech-indicators)