Skip to content
All library documents

Building Trading Workflows with Visual Modules

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

Summary

This tutorial shows how to assemble trading workflows with a visual programming interface. Examples cover counting configured exchange objects, iterating through them to retrieve names, reading a trading pair, placing orders, listing open orders, looking up an order by ID, and canceling pending orders. The examples connect each visual operation to its equivalent JavaScript behavior, and use backtest logs to show what the modules return.

The later sections demonstrate futures-specific setup: checking a commodity futures connection, selecting a contract, setting an unambiguous order direction, and choosing digital asset futures contracts. The article also notes that its leverage setting module is not supported in backtesting. These are instructional examples of platform mechanics, not evidence that any trading approach is profitable. Order behavior depends on the configured market and backtest, while the futures examples use particular platform conventions and sample contracts.

Key ideas

  • Visual modules can access exchange counts, names, and trading pairs, and can iterate over configured exchanges.
  • Order workflows can place orders, inspect pending orders, retrieve order details, and cancel orders.
  • A buy order’s price and quantity are supplied as inputs to the order module.
  • Futures workflows require contract selection and explicit direction settings for opening or closing positions.
  • The demonstrated leverage setting is not available in backtests.

Tags

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