Stock K-Line Analysis & Technical Indicator Agent for Openclaw

A comprehensive financial analysis tool that automates stock data fetching, technical indicator computation, and visual charting for A-share, HK, and US markets.

iideas18
v1.0.0
Mar 13, 2026
0
2k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install stock-kline-analysis

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install stock-kline-analysis using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Stock K-Line Analysis & Technical Indicator Agent?

The stock-kline-analysis skill is a specialized tool for Openclaw Skills designed to provide developers and traders with instant, high-fidelity market insights. By simply providing a stock name or ticker, the skill triggers a complex workflow that auto-detects the relevant exchange and retrieves multi-timeframe K-line data. It synthesizes technical price action with fundamental valuation metrics to deliver a professional-grade summary.

Built for the Openclaw Skills ecosystem, this skill leverages the AkShare API to process daily, weekly, and monthly data. It doesn't just show prices; it interprets momentum, identifies support and resistance levels, and overlays macro-economic risks, making it an essential asset for anyone building AI-driven financial agents or automated trading research pipelines.

Stock K-Line Analysis & Technical Indicator Agent Use Cases

  • Perform automated technical analysis for specific stocks like AAPL or 600519 using Openclaw Skills.
  • Compare multiple securities side-by-side using relative strength ranking and volatility-adjusted returns.
  • Generate 4-panel technical charts including Bollinger Bands, MACD, and RSI for visual trend confirmation.
  • Calculate precise ATR-based stop-loss levels and position sizing for risk management.
  • Screen for Bollinger Band squeezes and potential volatility breakouts in individual stocks.

How Stock K-Line Analysis & Technical Indicator Agent Works

  1. Identifier Resolution: The agent analyzes the input string to auto-detect the market (Shanghai, Shenzhen, HK, or US) using regex patterns.
  2. Multi-Timeframe Fetching: It retrieves 6 months of daily data, 1 year of weekly data, and 3 years of monthly data to ensure trend alignment.
  3. Technical Computation: The skill calculates core indicators including Moving Averages (5/20/60), Bollinger Bands, MACD, RSI-14, and ATR-14.
  4. Visualization: A 4-panel matplotlib chart is generated, plotting price action alongside volume and momentum oscillators.
  5. Fundamental Integration: It fetches valuation data such as EPS, ROE, and PE (TTM) to provide context beyond the chart.
  6. Risk & Event Mapping: The skill overlays upcoming earnings dates and macro-economic events to highlight potential volatility triggers.

Stock K-Line Analysis & Technical Indicator Agent Setup

To use this skill within your Openclaw Skills environment, ensure you have the necessary dependencies installed and run the orchestrator script:

# Run a full analysis for a specific stock (e.g., Kweichow Moutai)
python .github/skills/stock-kline-analysis/scripts/run_analysis.py 600519

# Analyze a US stock and save the report to a specific directory
python .github/skills/stock-kline-analysis/scripts/run_analysis.py TSLA --out-dir ./output/finance

Stock K-Line Analysis & Technical Indicator Agent Data Schema & Taxonomy

The skill produces a structured data output and generates visual assets organized as follows:

Component Data Points Captured
K-Line Metrics Open, High, Low, Close, Volume (OHLCV) with qfq adjustment.
Technical Indicators MA5/20/60, Bollinger Band Width, MACD Histogram, RSI-14, ATR-14.
Valuation Suite PE (TTM), PB, ROE, Net Profit Margin, Revenue YoY Growth.
Risk Metadata Support/Resistance levels, Trailing Stops, and Industry PE medians.
Visual Output PNG chart file containing 4 panels (Price/BB, Volume, MACD, RSI).

Stock K-Line Analysis & Technical Indicator Agent Advanced Features

  • Multi-Timeframe Confirmation: Automatically cross-references daily, weekly, and monthly trends to identify high-confidence setups.
  • Portfolio Relative Strength: Ranks multiple tickers by Sharpe-proxy and return when provided with a list of symbols.
  • Event-Aware Risk Overlay: Integrates a macro-economic calendar to flag policy announcements or earnings windows near the current date.
  • Automated Stop-Loss Logic: Uses ATR (Average True Range) to calculate mathematical trailing stops and suggest position sizing.
  • Market Auto-Detection: Intelligently routes queries to the correct exchange based on ticker length and character type.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0