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.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
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.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
설치 방법 보기설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.
使用本 skill 写 TBQ3 Bar 策略。目标是生成能被交易语义约束的 TB 代码,而不是只拼接指标条件。
OnBar、Buy、Sell、SellShort、BuyToCover、MarketPosition。Params、Vars、Events。OnInit 或 OnReady:初始资金、保证金、手续费、滑点、委托偏移、委托映射。OnBar(ArrayRef<Integer> indexs) 中计算信号和交易动作。MarketPosition<>1 或 MarketPosition<>-1 避免连续条件重复发单。Sell,空仓用 BuyToCover。BarsSinceEntry >= 1,并处理开盘跳空价格。references/bar-patterns.md;若涉及失败模式,读取 references/bar-pitfalls.md。tb-doc-index 查 references/function-index.md 或 docs/TB语言函数文档 原文。Params
Numeric initCapital(100);
Vars
Numeric lots(1);
Events
OnInit()
{
// 设置交易环境
SetInitCapital(initCapital * 10000);
}
OnBar(ArrayRef<Integer> indexs)
{
// 计算信号并执行交易
}
MarketPosition 或等价状态限制,避免信号连续满足时重复开仓。AvgEntryPrice 或明确入场价,且避免处理开仓 Bar。docs/TB语言编程技巧/236-策略代码说明.mddocs/TB语言编程技巧/2842-止盈止损.mddocs/TB语言编程技巧/2844-加仓减仓.mddocs/TB语言编程技巧/2847-平仓延迟反手.mddocs/TB语言编程技巧/2845-多品种交易.mddocs/TB语言编程技巧/2846-跨周期.md아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.
로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.
아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.
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.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
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.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
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.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
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.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
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.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.