FMZ Strategy Loops, Polling Intervals, and API Reference
Summary
This FMZ guide outlines a continuously running strategy loop across JavaScript, Python, Rust, and C++. It shows calling strategy logic repeatedly with a configurable sleep interval, which controls polling frequency in live trading and playback speed in backtests. It also describes checking for a newly formed bar before running bar-based logic, and cautions that an example placing repeated buy orders is unsafe for live use.
The reference catalog covers platform functions for market data, orders, account access, logging, persistence, indicators, and other tasks. Additional sections describe exchanging state between live processes through channels, basic practices such as handling missing data and monitoring communication, and JavaScript threading objects. These are implementation examples and API descriptions, not evidence that a trading strategy is profitable. Polling intervals, exchange behavior, and safe order logic still require strategy-specific judgment and validation.
Key ideas
- A strategy loop can use a sleep interval to control live polling frequency and backtest speed.
- Bar-based logic can run only when the latest candle timestamp changes.
- Repeated order examples require safeguards before live use.
- The API catalog includes market data, trading, logging, indicators, and persistence functions.
- Channel communication benefits from error handling, update identifiers, and monitoring.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.