TDX Formula Assistant for Openclaw

A specialized AI assistant designed to write, check, and optimize TongDaXin (TDX) stock selection and indicator formulas based on official function manuals.

g1776933879
v1.0.0
Jun 27, 2026
0
467
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install tdx-formula

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 tdx-formula 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 TDX Formula Assistant?

The TDX Formula Assistant is a highly specialized developer utility engineered for quantitative traders, financial analysts, and programmers utilizing the TongDaXin (TDX) trading platform. Writing precise stock selection formulas, backtesting rules, and visual technical indicators can be incredibly error-prone. By deploying this tool inside your environment using Openclaw Skills, you can effortlessly convert plain-text strategy ideas into syntactically valid TDX formula code.

This system integrates an extensive knowledge database of core TDX components. This includes basic quotation attributes, real-time DYNAINFO indicators, fundamental FINANCE records, mathematical operators, and statistical helpers. It guides the model to avoid common compiler syntax errors (such as case issues or mixing up assignment vs output declarations) and actively detects high-risk look-ahead bias patterns that compromise live-trading systems.

TDX Formula Assistant Use Cases

  • Creating custom multi-factor stock selection formulas based on combined criteria like moving average golden crosses, volume spikes, and pricing breakouts.
  • Building advanced chart visualization indicators featuring customized line styles, dynamic colors, and real-time textual alert tags.
  • Debugging and optimizing complex legacy TDX scripts to eliminate variable namespace collisions and correct invalid operator usage.
  • Auditing trading signals to guarantee they are free from dangerous future functions (such as ZIG, PEAK, or BACKSET) prior to deploying them in live retail accounts.

How TDX Formula Assistant Works

  1. Analyze Requirements: The assistant listens to the user's trading logic or indicator concept and breaks it down into individual, quantitative conditions (e.g., price action, volume parameters, financial health factors).
  2. Function Selection: It queries its local knowledge index of TDX system libraries to choose the ideal quotation, statistical, temporal, and sector-oriented functions.
  3. Code Assembly: The utility formats the parameters, structures the assignment directives (:=) versus output metrics (:), and constructs the final script body according to strict parser specifications.
  4. Safety & Compliance Audit: The engine parses the finished code through a validation checklist, verifying symbol balances, evaluating variable assignments, and flagging look-ahead future functions with explicit risks warnings.

TDX Formula Assistant Setup

Prerequisites

Make sure your Openclaw installation is updated and configured properly.

Installing the Skill

Add the skill configuration files to your agent's directory structure:

# Navigate to your workspace's skill subdirectory
mkdir -p ~/.openclaw/skills/tdx-formula

# Download the SKILL.md definition to register the environment capabilities
curl -s -o ~/.openclaw/skills/tdx-formula/SKILL.md "https://raw.githubusercontent.com/openclaw/skills/main/tdx-formula/SKILL.md"

Usage Verification

Confirm that your system recognizes the newly imported skill:

openclaw skills list | grep tdx-formula

TDX Formula Assistant Data Schema & Taxonomy

Category Functions Supported Data Elements Provided
Market Basics OPEN, HIGH, LOW, CLOSE, VOL, AMOUNT Real-time OHLCV and volume tracking
Real-time Stats DYNAINFO(3) through DYNAINFO(23) Pre-close price, current yield, turnover ratio, bid-ask spread
Corporate Financials FINANCE(1) to FINANCE(40), CAPITAL Total shares, cash flow, debt-to-equity ratios, net income
Time Series REF, HHV, LLV, MA, EMA, SMA, CROSS, COUNT Historical price references, sliding window averages, intersection crossovers
Look-Ahead Functions BACKSET, REFX, XMA, ZIG, PEAK, TROUGH Flagged as dangerous "Future Functions" requiring warning tags

TDX Formula Assistant Advanced Features

  • Future Function Guardrail: Automated linting engine that warns the user when non-causal or look-ahead functions (like ZIG or PEAK) are injected into a live stock selector.
  • Fundamental Finance Overlays: Combines raw historical candlestick charts with corporate financial fundamentals (debt ratio, net assets, outstanding capital) for multi-dimensional stock filtering.
  • Sector and Theme Isolation: Integrates specialized sector filter functions (INBLOCK, NAMELIKE, GNBLOCK) to programmatically narrow strategy calculations down to high-priority concepts or custom industries.
  • Seamless Openclaw Skills Integration: Ready-to-use within larger automated multi-agent workflows, enabling automated code generation, compilation checks, and strategy backtesting pipelines.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*