FMZ My Language: Syntax, Market Data, and Strategy Integration
Summary
This reference explains FMZ’s My Language, a trading language compatible with and extended from Mai Language. It introduces variables and data types, assignment and comparison operators, logic and arithmetic, function arguments and return values, and conventions for naming variables. Examples describe price series, moving averages, and how plotted output differs from internal variables. It also covers futures contract names and global variables, including how historical bars affect their values during a backtest.
Later sections describe embedding JavaScript in My Language, accessing bars, order book depth, symbols, and trade eligibility, and importing data across minute-based timeframes. The reference lists built-in indicators and tick data fields, plus system functions for logging, contract details, and external data. These are language and platform instructions rather than evidence for a profitable trading strategy; users must verify syntax, data availability, and contract settings in their own environment.
Key ideas
- My Language uses distinct assignment operators to control whether values are plotted or shown in chart labels.
- Boolean expressions operate on price series across bars, while functions such as moving averages take series and parameters.
- Embedded JavaScript can access bar data, order book depth, symbols, and selected My Language variables.
- Imported formulas can provide data from other minute-based timeframes.
- Backtests may initialize global variables across historical bars before live trading begins.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.