Building and Referencing Reusable FMZ Strategy Libraries
Summary
This guide explains how FMZ’s template library feature lets users package reusable functions for strategies. It describes creating a library in JavaScript, Python, C++, or Blockly Visual mode, and shows how exported functions can be called from a strategy that references the library. Blockly strategies can use JavaScript template libraries to provide custom blocks and functions.
Libraries can also expose parameters through shared variables and setter and getter functions, allowing a strategy to read or change configured values. To use a library, the account must have access to it, and the user selects it from the strategy editor’s template section. The examples demonstrate function and parameter wiring; they do not describe trading signals, market behavior, or strategy performance. The guide also notes that choosing the template library category when creating a strategy cannot be reversed to a regular strategy, so the initial setup choice matters.
Key ideas
- FMZ template libraries package reusable functions that strategies can call.
- The guide covers support for JavaScript, Python, C++, and Blockly Visual workflows.
- Exported functions provide the interface between a library and its referencing strategy.
- Libraries can expose parameters through functions that read or update shared values.
- A strategy references an available library through its editor, and the library category cannot later be changed back.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.