跳到正文
cccskills
免费在 GitHub 公开

tb-syntax

Use when explaining or writing TBQ3 language syntax, including Params, Vars, Events, data types, variables, sequence variables, arrays, Map variables, control flow, operators, assignment, functions, and formula execution rules.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(2)

  • SKILL.md1.6 KB
  • references/syntax-map.md2.1 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

TBQ3 语法基础

本 skill 只提供写 TB 代码所需的最小语法规则。详细文档入口见 references/syntax-map.md。

代码组织

  • 常见结构为 Params、Vars、Events。
  • 参数用于可配置输入,变量用于公式内部状态。
  • 事件函数放在 Events 下,Bar 策略通常至少包含 OnBar(ArrayRef<Integer> indexs)。

命名和注释

  • 变量、参数、函数名使用简短英文业务名。
  • 给用户生成的 TB 代码注释使用中文,简明说明交易意图或关键边界。
  • 不确定语法时,先查 docs/TB语言基础 或函数文档,不要发明语法。

常用类型

  • 数值:Numeric
  • 整数:Integer
  • 布尔:Bool
  • 字符串:String
  • 数组引用常见于事件参数:ArrayRef<Integer>

控制结构

  • 条件判断使用 If(...) { ... } Else If(...) { ... } Else { ... }。
  • 循环和复杂容器用法应查对应文档后再写,避免凭通用 C++ 习惯生成错误语法。

序列和历史引用

  • Bar 序列常见历史引用形式如 High[1]、Low[1]。
  • 当前 Bar 和历史 Bar 在回测/实时中的语义不同;交易策略中涉及触发时机时,应结合 tb-bar-strategy。

查证规则

  • 变量、参数、控制结构:读 references/syntax-map.md 后打开对应原文。
  • 函数名或返回值不确定:使用 tb-doc-index 的函数索引或 rg 搜索。

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Use after installing tradeblazer_skills to collect user preferences for TBQ3/TB language work, including task focus, strategy type, document output location, and review expectations.

中文简介正在准备中。当前显示原文说明。

itsadrianxv/tradeblazer_skills82026年5月8日 更新

Use when generating, modifying, explaining, or reviewing TBQ3 Bar-based trading strategies with OnBar, OnInit, OnReady, entries, exits, MarketPosition, stop profit/loss, sizing, slippage, commission, multi-symbol, or cross-period logic.

中文简介正在准备中。当前显示原文说明。

itsadrianxv/tradeblazer_skills82026年5月8日 更新

tb-core

免费

Use when working with TBQ3 or TB language code, including strategy generation, syntax questions, trading functions, Bar strategies, event-driven trading, Plot drawing, examples, or TB-specific code review.

中文简介正在准备中。当前显示原文说明。

itsadrianxv/tradeblazer_skills82026年5月8日 更新

Use when locating TBQ3 documentation, function references, examples, or source docs under docs without loading the full corpus; supports rg-based search and curated topic/function indexes.

中文简介正在准备中。当前显示原文说明。

itsadrianxv/tradeblazer_skills82026年5月8日 更新

tb-review

免费

Use when reviewing, debugging, or improving TBQ3/TB language code for trading correctness, Bar strategy behavior, order direction, position state, sizing, costs, backtest realism, event timing, multi-symbol logic, or function documentation consistency.

中文简介正在准备中。当前显示原文说明。

itsadrianxv/tradeblazer_skills82026年5月8日 更新

查看 itsadrianxv 的全部技能

报告此技能的问题