Agent skill

Candlestick Pattern Signals

by HKUDS in HKUDS/Vibe-Trading

Detects 15 classic candlestick patterns with vectorized pandas code and combines bullish and bearish scores into a long, short or flat trading signal.

MITAuto-check passedBusiness, Finance & HR

Install Candlestick Pattern Signals

skills CLI
$ npx skills add HKUDS/Vibe-Trading --skill candlestick -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install HKUDS/Vibe-Trading candlestick --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/HKUDS/Vibe-Trading.git skills-src && mkdir -p .claude/skills && cp -r skills-src/agent/src/skills/candlestick .claude/skills/candlestick && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
candlestick
GitHub stars
35k
Token cost
~468 tokens
SKILL.md length
187 words
Files
2
Skills in repo
89
Repo updated
First seen
Licence
MIT

At a glance

Detects 15 classic candlestick patterns with vectorized pandas code and combines bullish and bearish scores into a long, short or flat trading signal.

  • Flagging hammer, engulfing or star patterns in OHLC price data
  • SKILL.md covers Purpose, Signal Logic, Parameters and Dependencies, plus 1 more section
  • Runs Python scripts from its folder; calls pip
  • Building a long, short or flat signal from candlestick patterns for a backtest

What it does

A pandas-based engine recognizes 15 classic candlestick patterns: single-candle shapes such as hammer, shooting star and doji, two-candle patterns such as engulfing, harami, piercing line and dark cloud cover, three-candle patterns such as morning star and three white soldiers, and a trend confirmation. Each pattern is tagged bullish, bearish or neutral.

Signals come from a simple score: bullish patterns add 1, bearish patterns subtract 1, and the total decides between long when positive, short when negative and standing aside at zero, encoded as 1, -1 and 0. Thresholds such as the doji body ratio (default 0.1) and the shadow-to-body ratio (default 2.0) can be adjusted. An example_signal_engine.py file is included, and the code needs pandas, numpy and requests.

When your agent uses it

  • Flagging hammer, engulfing or star patterns in OHLC price data
  • Building a long, short or flat signal from candlestick patterns for a backtest
  • Adjusting the doji and shadow thresholds of a pattern detector

Example prompts

  • “Run candlestick pattern detection on this daily OHLC CSV and show the signal column.”
  • “Tell me which dates show a morning star or an evening star in the data.”
  • “Make the doji detection stricter by lowering the body ratio threshold.”

Requirements

  • Python with pandas, numpy and requests
  • OHLC price data

What it can do on your machine

Read from SKILL.md and the folder at commit 14cabaf. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • pip

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Candlestick Pattern Signals loads about 468 tokens when it runs. Until then it costs about 67 tokens; SKILL.md has 187 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~67
When it runs · the whole SKILL.md, loaded when a task matches
~468

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from HKUDS/Vibe-Trading at commit 14cabaf, republished under its MIT licence (© HKUDS). 187 words, ~468 tokens.

Download SKILL.mdSave it as .claude/skills/candlestick/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
candlestick
description
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.
category
strategy

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

bash
pip install pandas numpy requests

Signal Convention

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

© HKUDS, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in agent/src/skills/candlestick of HKUDS/Vibe-Trading.

  • SKILL.md
  • example_signal_engine.py

Open the folder on GitHubat commit 14cabaf

Compare with similar skills

Candlestick Pattern Signals next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Candlestick Pattern Signals compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Candlestick Pattern Signals this skillHKUDS/Vibe-Trading35k—~468Automated safety check: PassMIT
Tushare Datazillionare/zillionare3192 repos~2.3kAutomated safety check: PassNone
Quant Analystmajiayu000/claude-skill-registry6661 repos~964Automated safety check: PassMIT
Quant Blog Writingzillionare/zillionare319—~895Automated safety check: PassNone
Vectorbtagiprolabs/claude-trading-skills410—~2.6kAutomated safety check: PassMIT
Python Executorcortega26/chile-hub1132 repos~1.5kAutomated safety check: PassMIT

Similar skills

  • Tushare Data

    zillionare/zillionare

    面向中文自然语言的 Tushare 数据研究技能。用于把“看看这只股票最近怎么样”“帮我查财报趋势”“最近哪个板块最强”“北向资金在买什么”“给我导出一份行情数据”这类请求,转成可执行的数据获取、清洗、对比、筛选、导出与简要分析流程。适用于 A 股、指数、ETF/基金、财务、估值、资金流、公告新闻、板块概念与宏观数据等研究场景。

    319 GitHub starsUsed in 2 repos~2.3k tokens
    Business, Finance & HRAuto-check passed
  • Quant Analyst

    majiayu000/claude-skill-registry

    Expert in quantitative finance, algorithmic trading, and financial data analysis using Python (Pandas/NumPy), statistical modeling, and machine learning.

    666 GitHub starsUsed in 1 repo~964 tokens
    Data & AnalyticsAuto-check passed
  • Quant Blog Writing

    zillionare/zillionare

    撰写文笔精炼、富有深度的量化交易博文,论点清晰、证据确凿、叙事层次更加丰富。适用于量化交易博文、因子研究、回测复盘、数据源排查、市场微观结构、策略原理、风险控制、职业观察、量化人物故事等选题。文章将聚焦具体角度,提供详实的大纲、证据规划及成稿,力求内容兼具思想深度与诚实性,而非单纯口号式宣传;同时,通过人物经历、引言、贡献及行业背景的融入,让文章更具可读性和吸引力。

    319 GitHub stars~895 tokensUpdated today
    Business, Finance & HRAuto-check passed
  • Vectorbt

    agiprolabs/claude-trading-skills

    High-performance vectorized backtesting with parameter optimization, portfolio simulation, and rich performance metrics

    410 GitHub stars~2.6k tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check passed
  • Python Executor

    cortega26/chile-hub

    Execute Python code in a safe sandboxed environment via [inference.sh](https://inference.sh).

    113 GitHub starsUsed in 2 repos~1.5k tokens
    Data & AnalyticsAuto-check passed
  • Vaex Out-of-Core DataFrames

    davila7/claude-code-templates

    Processes tabular datasets too large for RAM with Vaex: lazy DataFrames, fast aggregations, big-data plots and ML pipelines over CSV, HDF5, Arrow and Parquet.

    32k GitHub starsUsed in 12 repos~1.6k tokens
    Data & AnalyticsAuto-check passed

More from HKUDS/Vibe-Trading

All 89 skills in this repo
  • Eastmoney Market Data

    HKUDS/Vibe-Trading

    Index of Eastmoney's free, no-token market data interfaces for China A-shares and Hong Kong stocks: fund flows, dragon-tiger lists, margin trading, reports and news.

    35k GitHub stars~1k tokensUpdated today
    Auto-check passed
  • OKX Market Data

    HKUDS/Vibe-Trading

    Retrieves public OKX cryptocurrency market data such as spot prices, candlesticks, funding rates and open interest through the OKX V5 REST API, with no authentication.

    35k GitHub stars~1.3k tokensUpdated today
    Auto-check passed
  • SEC EDGAR Filings Fetcher

    HKUDS/Vibe-Trading

    Fetches U.S. SEC EDGAR data: resolves tickers to CIK numbers, lists recent 10-K, 10-Q and 8-K filings with document URLs, and pulls XBRL financial series.

    35k GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • A-Share ST Risk Screener

    HKUDS/Vibe-Trading

    Predicts whether a mainland China A-share company risks an ST or *ST warning after its next annual report, using financial thresholds and Sina penalty records.

    35k GitHub stars~4.9k tokensUpdated today
    Auto-check passed
  • Breaks a structural trend such as AI infrastructure into its physical supply chain and ranks lesser-known listed companies sitting on each bottleneck.

    35k GitHub stars~2.7k tokensUpdated today
    Auto-check passed
  • Plans and drafts an eight-part, roughly 120k-word investigative series on one company, built around a strict fact-check pass rather than fast drafting.

    35k GitHub stars~2.4k tokensUpdated today
    Auto-check passed

Questions about Candlestick Pattern Signals

What does Candlestick Pattern Signals do?

Detects 15 classic candlestick patterns with vectorized pandas code and combines bullish and bearish scores into a long, short or flat trading signal. A pandas-based engine recognizes 15 classic candlestick patterns: single-candle shapes such as hammer, shooting star and doji, two-candle patterns such as engulfing, harami, piercing line and dark cloud cover, three-candle patterns such as morning star and three white soldiers, and a trend confirmation. Each pattern is tagged bullish, bearish or neutral.

When should I use Candlestick Pattern Signals?

Candlestick Pattern Signals fits situations like: flagging hammer, engulfing or star patterns in OHLC price data; building a long, short or flat signal from candlestick patterns for a backtest; adjusting the doji and shadow thresholds of a pattern detector.

How do I install Candlestick Pattern Signals in Claude Code?

Run `npx skills add HKUDS/Vibe-Trading --skill candlestick -a claude-code`. Or copy the skill folder (agent/src/skills/candlestick in HKUDS/Vibe-Trading) into .claude/skills/candlestick in your project. Claude Code loads it when a task matches its description.

How do I install Candlestick Pattern Signals in Codex?

Run `npx skills add HKUDS/Vibe-Trading --skill candlestick -a codex`. Or copy the skill folder (agent/src/skills/candlestick in HKUDS/Vibe-Trading) into .agents/skills/candlestick in your project. Codex loads it when a task matches its description.

Can I use Candlestick Pattern Signals in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add HKUDS/Vibe-Trading --skill candlestick -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/candlestick, .gemini/skills/candlestick, .github/skills/candlestick and .opencode/skills/candlestick in your project.

What does Candlestick Pattern Signals need to run?

Going by SKILL.md and its folder, Candlestick Pattern Signals needs Python for the scripts in its folder and the command-line tools its instructions call (pip). Our summary lists: Python with pandas, numpy and requests; OHLC price data.

Does Candlestick Pattern Signals access the network?

SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Candlestick Pattern Signals safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Candlestick Pattern Signals use?

Candlestick Pattern Signals is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Candlestick Pattern Signals use?

About 468 tokens (SKILL.md is roughly 1.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Candlestick Pattern Signals?

Skills that share tags, products or a category with Candlestick Pattern Signals: Tushare Data (zillionare/zillionare, 319 stars), Quant Analyst (majiayu000/claude-skill-registry, 666 stars), Quant Blog Writing (zillionare/zillionare, 319 stars) and Vectorbt (agiprolabs/claude-trading-skills, 410 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Candlestick Pattern Signals?

HKUDS (a GitHub organization) maintains it in HKUDS/Vibe-Trading, which has 34,949 GitHub stars. The repository holds 89 skills in this directory. The repository was last updated on October 8, 2026.

Source: HKUDS/Vibe-Trading on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.