Preface¶
TDX (TongDaXin) indicators, stock selection formulas, trading systems, and colorful K-line charts all rely on a proprietary formula language. Official documentation and function libraries are often scattered, and the syntax, plotting, and stock screening logic differ significantly from common programming languages. When manually writing or modifying formulas, users frequently need to repeatedly check function meanings, parameter order, and whether a function is compatible with stock screening.
By installing the “TDX Formula Programming Assistant” into a Skill-capable Agent, you can describe your requirements directly in the conversation. The skill organizes answers according to TDX scenarios, covering formula writing, modification, and explanation, thereby reducing the need to switch back and forth between documentation and old formulas.
What is this¶
The TDX Formula Programming Assistant is a community Skill on SkillHub (Coordinate @user_b009b942/tdx-formula-assistant, version 1.0.0, category dev-programming). It is published by user_b009b942, and the page attributes the authorship to “Duo La Mo Zhu”. The skill tag is requires_api_key=false, meaning no separate API Key configuration is required after installation.
Positioning: It is used when users need to write, modify, or explain TDX indicator formulas, stock selection formulas, trading system formulas, or colorful K-line formulas. It covers scenarios including formula syntax, function libraries, plotting, stock selection logic, capital analysis, chip distribution (holder structure), and main force (institutional investor) monitoring. It caters to needs ranging from zero-based learning to the writing of relatively complex strategies.
Official Page: https://www.skillhub.cn/skills/user_b009b942/tdx-formula-assistant
API Entry: https://api.skillhub.cn/user_b009b942/tdx-formula-assistant
Core Features¶
The following capabilities are derived from the SkillHub introduction and page descriptions. Unless implementation details are verified separately, the actual skill output in the conversation shall prevail.
- Indicator Formulas: Main chart and sub-chart indicators (e.g., writing and rewriting common indicators such as Moving Averages, MACD, KDJ, Bollinger Bands, etc.).
- Stock Selection Formulas: Screening targets based on combined conditions, involving logic related to triggers such as price-volume relationships, limit-up (price ceiling), turnover rate, golden crosses, and death crosses.
- Trading System Formulas: Explanation and writing assistance for formula structures related to buying, selling, and alerts.
- Colorful K-line: Formulas for coloring K-lines based on specific rules.
- Explanation and Modification: Explaining existing formulas segment by segment, or modifying parameters and conditions based on natural language requests.
- Extended Topics: Scenarios listed in the introduction such as capital analysis, chip distribution, main force monitoring, swing trading, takeoff signals, and alert formulas.
Common trigger phrases include: TDX formulas, write indicators, stock selection formulas, sub-chart indicators, main chart indicators, TDX formula, MACD formula, KDJ formula, Bollinger Bands, moving averages, limit-up, main force capital, chips, turnover rate, price-volume relationship, golden cross/death cross, swing trading, takeoff, alert formulas, etc.
Installation and Enablement¶
The installation prompt provided on the SkillHub page is: Ask the AI to install this coordinate based on the general installation documentation. The general process is as follows:
1. Install SkillHub CLI (if not already installed)¶
First, check if the CLI is already present:
command -v skillhub && skillhub --version
If not installed, you can execute the full installation (including CLI and default Skills):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
To install only the CLI:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
2. Install this Skill to the current Agent’s skills directory¶
When installing, you must use --dir to point to the skills directory recognized by your current Agent; otherwise, it defaults to ./skills/ which may not be loaded. Common path examples in SkillHub documentation:
| Environment | skills Directory (Example) |
|---|---|
| Cursor | ~/.cursor/skills/ |
| Claude Code | ~/.claude/skills/ |
| Codex | ~/.codex/skills/ or .agents/skills/ under the project |
Installation command format:
skillhub install @user_b009b942/tdx-formula-assistant --dir <your skills directory>
Alternatively, you can send the following line to an AI that has integrated SkillHub installation capabilities and let it execute according to https://skillhub.cn/install/skillhub.md:
Please install @user_b009b942/tdx-formula-assistant based on https://skillhub.cn/install/skillhub.md.
After installation is complete, restart or refresh the Agent as required by your client to activate the new Skill.
Typical Usage¶
The skill does not publish fixed CLI subcommands separately; usage involves describing TDX tasks in natural language within the conversation, ideally including the formula type and constraints. The examples below correspond to scenarios and trigger words found in the official introduction and can be reproduced after installation.
Create a new sub-chart MACD indicator
Write a sub-chart MACD using TDX formulas, with DIFF/DEA/MACD bars using common parameters, and comment on the function of each line.
Stock Selection: Price-Volume and Limit-Up related
Write a TDX stock selection formula: turnover rate gradually increases over the last 5 days, today closes at limit-up, exclude ST stocks, and explain which functions were used.
Explain existing formulas
Explain the meaning of each sentence in the following TDX main chart formula, and mark any parts that might be incompatible with stock selection:
[Paste your formula]
Modification and Alerts
Based on the existing KDJ golden cross formula, add an alert condition: output 1 when J crosses above 80, provide the complete formula.
Through the steps above, when the Agent matches the relevant intent, it should load this Skill and organize the answer according to TDX syntax and function conventions. Specific code still needs to be pasted, compiled, and backtested in the TDX Formula Manager for verification.
Use Cases and Notes¶
Who is it for
- Individual investors or quantitative enthusiasts who frequently write or modify indicators, stock selection formulas, trading systems, or colorful K-line formulas in TDX.
- Users who need to quickly look up function usage, plotting statements, or stock selection logic without wanting to翻阅 (flip through) the complete manual every time.
- Developers or researchers working in environments that support Skills (such as Cursor, Claude Code, Codex) who wish to consolidate formula questions into a single conversation window.
Limitations and Notes
- The source is community-based. Formula logic and real-world trading effectiveness must be compiled and tested by yourself within TDX; the skill output does not constitute investment advice.
- Page statistics (as of data capture): Rating 100000, Downloads 8039; installation counts etc. are subject to the real-time SkillHub page.
- Different TDX versions and broker-customized versions may have slight differences in function support. If a generated formula reports an error, you should fine-tune it according to your local software’s help documentation.
- No API Key is required, but the Agent itself still relies on the networking and conversation capabilities of the model you are using.
Conclusion¶
The TDX Formula Programming Assistant consolidates TDX formula writing, modification, explanation, stock selection, capital/chips, and other common topics into a single Skill. By installing via the SkillHub coordinate @user_b009b942/tdx-formula-assistant, it can be used directly within your conversation. For details and version information, please refer to the official page: https://www.skillhub.cn/skills/user_b009b942/tdx-formula-assistant