SAR Indicator Calculator for A-Shares for Openclaw

A sophisticated technical analysis tool for calculating Parabolic SAR indicators and generating multi-dimensional stock ratings for the Chinese A-share market.

haohanyang92
v1.0.0
Mar 17, 2026
0
828
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install sar-calculator

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 sar-calculator 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 SAR Indicator Calculator for A-Shares?

The SAR Indicator Calculator is a specialized technical analysis utility designed for the Openclaw Skills ecosystem. It focuses on the Parabolic Stop and Reverse (SAR) system, a popular method used by traders to determine trend direction and potential reversal points in the stock market. By integrating directly with the Baostock API, it fetches real-time and historical K-line data to provide actionable financial intelligence.

Beyond simple calculations, this tool implements a unique four-dimensional scoring algorithm. It evaluates stocks based on trend, price position relative to the SAR line, volume ratios, and price momentum. This holistic approach allows developers and traders to automate their market research and identify high-probability entry and exit signals within their AI agent workflows.

SAR Indicator Calculator for A-Shares Use Cases

  • Automating daily technical analysis for a watchlist of A-share stocks.
  • Identifying bullish or bearish reversals using Parabolic SAR crossovers.
  • Filtering stocks based on multi-dimensional performance scores (Trend, Position, Volume, Momentum).
  • Integrating financial technical indicators into larger AI-driven trading bots or research agents.

How SAR Indicator Calculator for A-Shares Works

  1. The tool initializes a connection to the Baostock financial data service to retrieve historical K-line data for specified stock symbols.
  2. It calculates the SAR (Parabolic Stop and Reverse) values based on the high/low price points and acceleration factors.
  3. It performs a price-relative analysis to determine if the current closing price is above or below the SAR curve.
  4. It calculates the Volume Ratio (today's volume vs. 5-day average) and 5-day momentum metrics.
  5. The tool aggregates these metrics into a standardized 4D score (0-100) and provides a comprehensive trading recommendation.

SAR Indicator Calculator for A-Shares Setup

To use this tool within your environment, ensure you have the necessary data science libraries installed:

pip install baostock pandas

Basic usage example for a single stock:

python ~/.openclaw/workspace/skills/sar-calculator/sar_calculator.py --stock 600519

SAR Indicator Calculator for A-Shares Data Schema & Taxonomy

The skill processes financial data and outputs a structured analysis. The scoring taxonomy is organized as follows:

Dimension Score Range Criteria
Trend Score 0-25 Bullish Trend = 25, Bearish Trend = 0
Position Score 0-25 Price above SAR = 25, Price below = 0
Volume Score 0-25 Ratio ≥1.5 = 25, ≥1.2 = 18, ≥1.0 = 12, ≥0.8 = 6, <0.8 = 0
Momentum Score 0-25 5-day gain ≥10% = 25, ≥5% = 20, ≥0% = 15, ≥-5% = 8, <-5% = 0

Total Score Interpretation:

  • ≥ 75: Strong Bullish
  • ≥ 50: Cautious Bullish
  • ≥ 25: Cautious Bearish
  • < 25: Strong Bearish

SAR Indicator Calculator for A-Shares Advanced Features

  • Multi-stock Batch Processing: Analyze multiple tickers in a single command execution.
  • Custom Timeframes: Define specific start and end dates for historical back-testing and trend analysis.
  • Quiet Mode: Optimized CLI output for better integration with other Openclaw Skills or automated logging systems.
  • Automated 4D Scoring: A proprietary weighting system that combines trend, position, volume, and momentum into a single actionable metric.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*