itsadrianxv/tradeblazer_skills / skills/tb-doc-index
tb-doc-index
VerifiedUse 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.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 1.4 KB |
| references/function-index.md | markdown | 4.2 KB |
| references/topic-index.md | markdown | 3.8 KB |
references/function-index.md
View on GitHub# TBQ3 常用函数索引
路径均相对仓库根目录。此索引优先覆盖一期 Bar 交易策略。
## Bar 交易函数
- `Buy`:`docs/TB语言函数文档/849-buy-产生一个多头建仓操作.md`
- `Sell`:`docs/TB语言函数文档/850-sell-产生一个多头平仓操作.md`
- `SellShort`:`docs/TB语言函数文档/851-sellshort-产生一个空头建仓操作.md`
- `BuyToCover`:`docs/TB语言函数文档/852-buytocover-产生一个空头平仓操作.md`
## 持仓和信号状态
- `MarketPosition`:`docs/TB语言函数文档/889-marketposition-获得当前净持仓状态.md`
- `EntryPrice`:`docs/TB语言函数文档/864-entryprice-获得当前持仓的第一个建仓价格.md`
- `LastEntryPrice`:`docs/TB语言函数文档/874-lastentryprice-获得当前持仓的最后一个建仓价格.md`
- `AvgEntryPrice`:`docs/TB语言函数文档/878-avgentryprice-获得当前持仓的平均建仓价格.md`
- `BarsSinceEntry`:`docs/TB语言函数文档/865-barssinceentry-获得当前持仓的第一个建仓位置到当前位置的bar计数.md`
- `BarsSinceExit`:`docs/TB语言函数文档/887-barssinceexit-获得最近平仓位置到当前位置的bar计数.md`
- `CurrentBar`:`docs/TB语言函数文档/794-currentbar-当前策略应用商品在当前bar的索引值.md`
- `BarStatus`:`docs/TB语言函数文档/795-barstatus-当前策略应用商品当前bar的状态值.md`
## 价格、合约和手数
- `Open`:使用 `rg -n "Open-当前策略应用商品|# Open" docs/TB语言函数文档`
- `High`:`docs/TB语言函数文档/826-high-当前策略应用商品在当前bar的最高价.md`
- `Low`:`docs/TB语言函数文档/828-low-当前策略应用商品在当前bar的最低价.md`
- `Close`:`docs/TB语言函数文档/830-close-当前策略应用商品在当前bar的收盘价.md`
- `MinMove`:`docs/TB语言函数文档/990-minmove-当前策略应用商品的最小变动量.md`
- `PriceScale`:`docs/TB语言函数文档/989-pricescale-当前策略应用商品的计数单位.md`
- `BigPointValue`:`docs/TB语言函数文档/985-bigpointvalue-当前策略应用商品数据的一个整数点的价值.md`
- `ContractUnit`:`docs/TB语言函数文档/984-contractunit-当前策略应用商品的每张合约包含的基本单位数量.md`
- `ContractSize`:`docs/TB语言函数文档/983-contractsize-当前商品的合约大小.md`
## 交易环境设置
- `SetInitCapital`:`docs/TB语言函数文档/1039-setinitcapital-设置初始资金-仅支持在oninit中使用.md`
- `SetMarginRate`:`docs/TB语言函数文档/1041-setmarginrate-设置保证金率.md`
- `SetCommissionRate`:`docs/TB语言函数文档/1043-setcommissionrate-设置手续费率.md`
- `SetSlippage`:`docs/TB语言函数文档/1045-setslippage-设置滑点.md`
- `SetOrderPriceOffset`:使用 `rg -n "SetOrderPriceOffset|委托价格.*偏移" docs`
- `SetOrderMap`:使用 `rg -n "SetOrderMap|委托映射" docs`
## 账户和委托函数
- `A_SendOrder`:`docs/TB语言函数文档/776-a_sendorder-账户下单操作.md`
- `A_SendOrderEx` 当前合约:`docs/TB语言函数文档/778-a_sendorderex-当前合约账户下单操作.md`
- `A_SendOrderEx` 指定合约:`docs/TB语言函数文档/779-a_sendorderex-指定合约账户下单操作.md`
- `A_DeleteOrder`:`docs/TB语言函数文档/781-a_deleteorder-账户撤单操作.md`
- `A_DeleteOrderV2`:`docs/TB语言函数文档/783-a_deleteorderv2-撤指定报单索引的委托单.md`
- `A_GetMarginRate`:`docs/TB语言函数文档/769-a_getmarginrate-获取账户对应合约的保证金率.md`
- `A_GetCommissionRate`:`docs/TB语言函数文档/768-a_getcommissionrate-获取账户对应合约的手续费率.md`
## 技术指标和条件
- `Highest`:使用 `rg -n "Highest" docs/TB语言函数文档 docs/TB语言编程技巧`
- `Lowest`:使用 `rg -n "Lowest" docs/TB语言函数文档 docs/TB语言编程技巧`
- `Average`:使用 `rg -n "Average|求.*平均" docs/TB语言函数文档`
- `CrossOver`:`docs/TB语言函数文档/949-crossover-求是否上穿.md`
- `TrueRange`:`docs/TB语言函数文档/939-truerange-求真实范围.md`
- `AvgTrueRange`:`docs/TB语言函数文档/940-avgtruerange-求平均真实范围.md`
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-changelog-updatemorluto/reaPrepare or rewrite REA release changelogs and GitHub release notes from pinned Git history, with verified contributor thanks and Release Please synchronization. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| academy-guideanthropics/skillsStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product — not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial — a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| claude-apianthropics/skillsReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing/model choice/limits/caching) — never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens). SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hits (run this grep FIRST if no provider named — don't Read the file). | Stars: 198k | Updated | Claude CodeCodex | Unverified | Install |
| doc-coauthoringanthropics/skillsGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |