Skip to content
All library documents

Visual Trading Modules for Orders, Open Orders, and Futures Controls

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

Summary

This tutorial demonstrates how to assemble visual blocks for common trading operations. It covers reading the number and names of configured exchange objects, retrieving the current trading pair, submitting an order using a price derived from a market tick, and querying open orders. A further example loops through open orders to cancel them, while another retrieves the details of an individual order by its identifier.

The tutorial also introduces futures-specific controls: checking a commodity futures connection, selecting a contract, and setting an explicit trade direction to distinguish opening or closing long and short positions. It lists contract selection and leverage controls for crypto futures, noting that the leverage setting is unsupported in the described backtest. The examples are educational demonstrations using FMZ’s visual programming interface and backtest logs; they do not present a trading signal, assess execution quality, or establish strategy performance. Results depend on the configured exchange objects, instrument, and backtesting environment.

Key ideas

  • Visual blocks can query configured exchange objects, trading pairs, and open orders.
  • A loop over open orders can be combined with cancellation blocks to cancel each listed order.
  • A futures order needs a direction setting to clarify whether it opens or closes a position.
  • The tutorial demonstrates contract selection and notes that its leverage control is not supported in backtesting.
  • The examples show platform operations rather than a strategy with evidence of profitability.

Tags

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