FMZ Built-In Variables for Orders, Positions, Exchanges, and Bar Periods
Summary
This FMZ reference explains built-in objects and constants used to write trading strategies. It describes the first exchange object and the array of configured exchanges, then lists order status and side values, conditional order types such as OCO, take profit, and stop loss, position directions, and open or close offsets. It also enumerates bar-period constants spanning minute, hour, day, and week intervals, alongside log categories for buys, sells, and cancellations.
The entries define what each value represents and give its numeric value; several include short examples showing how to inspect exchange names or iterate over exchanges in multiple supported languages. This is implementation documentation rather than a trading method, and it provides no strategy, market analysis, or performance evidence. The notes explain the platform’s representations, but actual order behavior may depend on exchange support, especially for generic conditional orders and unknown statuses, which the reference says require further inspection of exchange-provided details.
Key ideas
- The exchange object represents the first configured exchange, while the exchanges array contains all configured exchange objects.
- Order status, side, position direction, and open or close offset are represented by numeric constants.
- Conditional order types include OCO, take profit, stop loss, and a generic exchange-dependent condition.
- Bar-period constants cover intraday, daily, multi-day, and weekly intervals.
- The reference documents platform values and usage but provides no trading strategy or performance evidence.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.