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.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
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
Comments
- …
More skills from this repository
vibe-trading
37kGives your agent a full finance research toolkit, covering backtests, factor analysis, options pricing and market data across many markets.
adr-hshare
37kShows your agent how to compare the price of a Chinese company listed in several markets, such as a US ADR and a Hong Kong share.
akshare
37kLets your agent pull free market data for Chinese and global stocks, futures, forex and economic indicators, with no API key needed.
alpha-zoo
37kLets your agent browse a library of ready-made stock factors and test how well a whole set of them predicts returns on a chosen market.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.