CtrlK
BlogDocsLog inGet started
Tessl Logo

candlestick

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.

The canonical home for this skill is candlestick in HKUDS/Vibe-Trading

SKILL.md
Quality
Evals
Security

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
Repository
charliedream1/ai_quant_trade
Last updated
First committed

Canonical home

HKUDS/Vibe-Trading
In sync

since Jul 24, 2026

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.