kline-volume-review

Render stock K-line candlesticks with volume and quarterly t1/t2/t3 boundaries into PNG reports.

Updated Jan 12, 2026
One-click install
npx skills add https://github.com/chinawrj/agent-skills-stock --skill kline-volume-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kline-volume-review
Source: https://github.com/chinawrj/agent-skills-stock/tree/main/.github/skills/kline-volume-review
Command: npx skills add https://github.com/chinawrj/agent-skills-stock --skill kline-volume-review

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires duckdb, matplotlib, mplfinance, pandas, and includes scripts (resource) components.

What problem does it solve?

This skill renders daily stock K-line candles with volume, overlays a 250-day moving average, and marks t1/t2/t3 quarterly boundaries to help human analysts verify if buy/sell decisions are corroborated by price action and volume. It outputs per-candidate PNG figures embedded in Markdown reports to enable offline review with visual evidence.

Core Features & Use Cases

  • Render daily K-line candlesticks (OHLC) with a 250-day moving average and a volume panel.
  • Annotate t1/t2/t3 quarterly boundaries with vertical lines and labels for context.
  • Produce one PNG per candidate and integrate with render_rat_report to embed images in markdown reports.
  • Gracefully skip data-missing stocks with warnings and continue processing the batch.
  • Read inputs from parquet and diagnostic JSON, querying DuckDB kline_daily for consistent data.

Quick Start

Run the render_kline.py script with the provided parquet, diag, and DuckDB data to generate per-stock PNG reports.

Frequently Asked Questions about kline-volume-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I render stock K-line candlesticks with volume charts using Python?

You can render stock K-line candlesticks with volume charts by using mplfinance in Python to plot OHLC data and volume panels. This skill processes DuckDB kline_daily data and outputs per-stock PNG reports with moving averages.

How do I add moving averages and quarterly boundary lines to a mplfinance candlestick chart?

To add moving averages and quarterly boundaries to a mplfinance candlestick chart, overlay a 250-day moving average and annotate t1, t2, and t3 boundaries with vertical lines. This provides quarterly context for buy and sell decisions.

Can I generate offline stock analysis PNG reports from DuckDB and parquet files?

Yes, you can generate offline stock analysis PNG reports from DuckDB and parquet files without network access. This skill intersects parquet hits and diagnostic triples with DuckDB data to export visual evidence to a reports directory.

How do I handle missing stock data when batch generating K-line charts?

When batch generating K-line charts, missing stock data is handled gracefully by skipping the affected stocks with warnings. The processing continues for the rest of the batch, ensuring uninterrupted generation of visual PNG reports.

Does mplfinance work with DuckDB for visualizing daily stock data?

mplfinance works with DuckDB for visualizing daily stock data by querying kline_daily tables for consistent OHLC information. The retrieved data is then processed with pandas and matplotlib to produce candlestick and volume charts.

What is the best way to visually verify stock trading decisions against price action?

The best way to visually verify stock trading decisions is to render daily K-line candles with volume and quarterly boundary annotations. This allows human analysts to confirm if buy and sell decisions are corroborated by actual price action.