Writing Strategies
Covers strategy structure (lifecycle, main loop, event-driven), notes for each programming language, strategy parameters, interactive controls, template libraries, built-in libraries, Chinese/English text in the strategy UI, and a categorized quick reference of all API functions.
In this sectionRead the whole section
| Name | Description |
| Strategy Structure (5) | Strategies in JavaScript, Python and Rust consist of a few functions with agreed names, which the docker calls at fixed points. |
| Programming Languages (6) | Strategies can be written in JavaScript, Python, Rust, PINE, My Language (MyLanguage) and the Workflow visual editor. |
| Strategy Parameters (3) | Set in the strategy interface; they appear in the strategy code as global variables with the same names (global constants in Rust), accessed by name. |
| Interactive Controls (2) | Strategies in JavaScript, Python, Rust and MyLanguage can have interactive controls, which send interaction commands to the strategy while it is running live. |
| Template Library (3) | A reusable code module on the FMZ Quant Trading Platform and a category of strategy code. |
| Built-in Libraries | Strategies can use the platform's built-in TA and talib indicator libraries and each language's JSON support without importing anything. |
| UI Text Localization | Text in the strategy interface can be written in both Chinese and English; the web page shows the one matching the current language (refresh the page after swit… |
| API Quick Reference | Every function, structure and constant of the API reference, grouped by its category, with a one-line description; click a name for the full page. |