Skip to content
Skillpedia
Analysis & spreadsheets37k · #7502

candlestick

What it does

This skill teaches an agent to recognize well-known candlestick patterns, such as hammers and engulfing candles, in price history. It is for traders who want pattern signals checked against data.

When to use it

  • ✓When you want to find candlestick patterns such as hammers or engulfing candles in a price chart.
  • ✓When you want a composite bullish or bearish score from several patterns.
  • ✓When you want to test a pattern-based strategy on historical prices.

Skill link

https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/candlestick/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/candlestick/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Scan this stock's price history for candlestick reversal patterns and tell me where a bullish or bearish signal appears.”

5 new skills a week. 1 minute to read.

How it works

The agent runs a pattern recognition engine over the price data. It checks each candle against the pattern rules, scores bullish patterns positive and bearish patterns negative, and goes long, short or stays flat based on the total.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Candlestick Pattern Recognition

Purpose

Identifies 15 classic candlestick patterns and generates trading signals:

Single-Candle Patterns (5)

Pattern Signal Description
Hammer Bullish Long lower shadow with a small body at the top
Inverted Hammer Bullish Long upper shadow with a small body at the bottom
Shooting Star Bearish Long upper shadow with a small body at the bottom (appears after an uptrend)
Doji Neutral Open and close are nearly equal
Spinning Top Neutral Small body with roughly equal upper and lower shadows

Double-Candle Patterns (5)

Pattern Signal
Bullish Engulfing Bullish
Bearish Engulfing Bearish
Bullish Harami Bullish
Bearish Harami Bearish
Piercing Line Bullish
Dark Cloud Cover Bearish

Triple-Candle Patterns (4)

Pattern Signal
Morning Star Bullish
Evening Star Bearish
Three White Soldiers Bullish
Three Black Crows Bearish

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

Parameter Default Description
body_pct 0.1 Threshold for body-to-range ratio in a doji
shadow_ratio 2.0 Ratio of shadow length to body length

Dependencies

pip install pandas numpy requests

Signal Convention

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

How many patterns does it recognize?

Fifteen classic patterns: five single-candle, five double-candle and four triple-candle patterns, plus a trend confirmation step.

Are pattern signals always reliable?

No. Patterns are judged only by the data they are tested on, and their results should be checked on out-of-sample periods.

What does a zero score mean?

It means the bullish and bearish signals cancel out, so the strategy stays out of the market.

Details

Original description by the author

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.

repo: HKUDS/Vibe-Trading

Popularity

GitHub stars
37k
Ranking position
#7502
License
MIT
Updated
11/1/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills