Skills

Candlestick

Candlestick pattern recognition engine, pure pandas vectorized implementation of 15...

Install

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

What it does

Candlestick 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.

Candlestick Pattern Recognition

Purpose

Identifies 15 classic candlestick patterns and generates trading signals:

Single-Candle Patterns (5)

PatternSignalDescription
HammerBullishLong lower shadow with a small body at the top
Inverted HammerBullishLong upper shadow with a small body at the bottom
Shooting StarBearishLong upper shadow with a small body at the bottom (appears after an uptrend)
DojiNeutralOpen and close are nearly equal
Spinning TopNeutralSmall body with roughly equal upper and lower shadows

Double-Candle Patterns (5)

PatternSignal
Bullish EngulfingBullish
Bearish EngulfingBearish
Bullish HaramiBullish
Bearish HaramiBearish
Piercing LineBullish
Dark Cloud CoverBearish

Triple-Candle Patterns (4)

PatternSignal
Morning StarBullish
Evening StarBearish
Three White SoldiersBullish
Three Black CrowsBearish

Signal Logic

Bullish patterns score +1, bearish patterns score -1. Go long when the total score is > 0, go short when it is < 0, and stand aside when it equals 0.

Parameters

ParameterDefaultDescription
body_pct0.1Threshold for body-to-range ratio in a doji
shadow_ratio2.0Ratio of shadow length to body length

Dependencies

pip install pandas numpy requests

Signal Convention

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

More in Data and ML