scaffold_strategy
Generate a starter FLOX strategy class that compiles and passes validation. Select language (python, node, codon, quickjs) and strategy shape (bar-driven, trade-driven, hybrid).
Instructions
Return a starter FLOX strategy class that compiles and passes validate_strategy. Use this as the first thing you write when the user asks to 'build a new strategy' — start from this canonical shell, then edit the indicator + signal logic, instead of writing the FLOX bookkeeping (constructor, hook names, signal builder) from memory. language is required — FLOX is polyglot and picking the binding for the user is wrong; ask which language they want first. Supported: python, node, codon, quickjs. Three kinds: bar-driven (TA on bar close), trade-driven (tick-by-tick), hybrid (both). The result includes a Next steps section with docs_search queries for the recording / backtest / layout follow-ups; follow them in order.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | Yes | Target language. Required. FLOX is polyglot — ask the user which binding they want before calling this tool. | |
| kind | No | Strategy shape. One of: bar-driven, trade-driven, hybrid. Default: bar-driven. | |
| name | No | Class name for the generated strategy. Must be a valid identifier. Default: MyStrategy. |