Skip to content
All library documents

Building Interactive Strategy Buttons in the FMZ Status Bar

Article FMZ digest · Author: 发明者量化-小小梦

Summary

The document shows how to add interactive buttons to an FMZ strategy’s status bar by rendering button objects through the status display function. A button’s command value can be read by the strategy’s command polling function, allowing an operator to trigger actions such as a position operation or pass a value. The examples place buttons inside a table and also show a standalone button, with optional styling attributes.

A further example recognizes a command prefix and evaluates the remainder as JavaScript, with exception handling around execution. The article reports that numeric command values were initially unsupported and later made compatible by returning them as strings. This is interface plumbing rather than a trading method, and executing supplied JavaScript has obvious operational implications; the example does not describe access controls or validation. Its contribution is showing how status-bar controls connect an operator’s click to strategy-side command handling.

Key ideas

  • Status-bar buttons can be created by including button objects in rendered status data.
  • A button command is received by polling the strategy’s interaction command function.
  • Buttons can appear in table rows or as standalone controls and can have customized styles.
  • The example supports command handling for actions, values, and JavaScript snippets.
  • The document describes interface behavior and does not provide a trading strategy.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.