# BlazeScript — Cipher AI by TestAlgo BlazeScript is the trading strategy scripting language used in Cipher AI by TestAlgo. Use it to define entry signals, exit rules, indicators and chart visuals. It uses Python-like syntax and platform-provided functions and data. This reference publishes all entries and examples in the current website documentation. It is not a compiler specification or a promise of runtime compatibility. Example snippets may depend on platform-provided instruments, data or other variables; configure those in Cipher AI before running them. ## Documentation - [BlazeScript — Complete Documentation](https://www.testalgo.com/blaze-script/): Complete BlazeScript reference for Cipher AI: functions, parameters, indicators, built-in variables and examples. Available without JavaScript. - [Getting Started with BlazeScript](https://www.testalgo.com/blaze-script/getting-started): Entry, exit and canvas files in a BlazeScript strategy project. - [BlazeScript Syntax](https://www.testalgo.com/blaze-script/syntax): Assignments, comments, arguments and conditions shown in the BlazeScript reference. - [BlazeScript Function Reference](https://www.testalgo.com/blaze-script/functions): All documented BlazeScript function signatures, parameters and examples. - [BlazeScript Indicators](https://www.testalgo.com/blaze-script/indicators): Documented technical indicators and their BlazeScript examples. - [BlazeScript Strategy Structure](https://www.testalgo.com/blaze-script/strategies): Entry and exit calls and the three-file BlazeScript strategy project. - [BlazeScript Code Examples](https://www.testalgo.com/blaze-script/examples): Every documented BlazeScript example, including parameters and strategy demonstrations. - [BlazeScript Troubleshooting](https://www.testalgo.com/blaze-script/errors): Common code generation mistakes, setup requirements and known documentation ambiguities. ## Complete machine-readable reference - [Markdown](https://www.testalgo.com/blaze-script/reference.md): All entries, parameters and examples in one document. - [Plain text](https://www.testalgo.com/blaze-script/reference.txt) - [JSON](https://www.testalgo.com/blaze-script/reference.json): Structured categories, parameters and source examples. ## Code generation For code generation, read the relevant function signatures, mandatory and optional parameters, built-in variables and example context. Keep entry, exit and canvas files distinct. Do not invent missing APIs, timeframe formats, instrument bindings or results. If the reference is ambiguous, state the ambiguity and request the runtime details needed to resolve it.