Welcome to FMZ Quant Trading Platform
Programming Languages
Key Security
Live Trading
Strategy Library
Docker
Exchange
Strategy Editor
Backtesting System
Backtesting System Modes
Impact of Backtest Data Granularity on Backtesting
Backtesting System Supports Multiple Programming Languages
Exchanges Supported by Backtesting System
Backtest System Parameter Optimization
Save Backtest Settings
Custom Data Source
Local Backtesting Engine
Backtest Page Shortcuts
Backtest Data Download
Backtest System Sharpe Ratio Algorithm
Strategy Entry Functions
Strategy Framework and API Functions
Template Library
Strategy Parameters
Interactive Controls
Options Trading
C++ Strategy Writing Guide
JavaScript Strategy Writing Guide
Web3
Built-in Libraries
Extended API Interface
MCP Service
Trading Terminal
Data Explorer
Alpha Factor Analysis Tool
General Protocol
Debugging Tool
Remote Editing
Import and Export of Complete Strategies
Multi-language Support
Live Trading and Strategy Grouping
Live Trading Display
Strategy Sharing and Renting
Live Trading Message Push
Common Causes of Live Trading Errors and Abnormal Exits
Exchange-Specific Notes
Global Functions
| Function Name | Description |
|---|---|
| Version | Returns the current system version number |
| Sleep | Sleep function, parameter is the number of milliseconds to pause |
| IsVirtual | Determines the execution environment, returns true for backtesting environment |
| Send email | |
| Mail_Go | Asynchronous version of the Mail function |
| SetErrorFilter | Filter error logs, parameter is a regular expression string, error logs matching this regex will not be uploaded to the log system |
| GetPid | Get live trading process ID |
| GetLastError | Get the most recent error message |
| GetCommand | Get strategy interaction commands, for strategy interaction control settings please refer to: Interactive Controls |
| GetMeta | Get the Meta value written when generating the strategy registration code |
| Dial | Used for raw Socket access |
| HttpQuery | Send HTTP request |
| HttpQuery_Go | Asynchronous version of the HttpQuery function |
| Encode | Data encoding function |
| UnixNano | Get nanosecond timestamp |
| Unix | Get second-level timestamp |
| GetOS | Get system information |
| MD5 | Calculate MD5 hash value |
| DBExec | Database function for executing SQL statements and performing database operations |
| UUID | Generate UUID |
| EventLoop | Listen for events, returns when any WebSocket is readable or concurrent tasks like exchange.Go, HttpQuery_Go are completed, this function is only available for live trading |
| _G | Persistently save data, this function implements a saveable global dictionary feature. The data structure is a key-value pair table, permanently saved in the docker's local database file |
| _D | Timestamp processing function, converts millisecond timestamp or Date object to time string |
| _N | Format floating-point numbers, for example _N(3.1415, 2) will remove digits after the second decimal place of 3.1415, the function returns 3.14 |
| _C | Retry function for interface fault tolerance. Note that for fault tolerance of exchange.GetTicker function, use _C(exchange.GetTicker) instead of _C(exchange.GetTicker()) |
| _Cross | Crossover detection function, _Cross() returns a positive number indicating the number of periods since upward crossover, negative number for downward crossover, 0 means current prices are equal |
| JSONParse | Parse JSON, can correctly parse JSON strings containing large numeric values, parsing large numbers as string type. The backtesting system does not support the JSONParse() function |
| SetChannelData | Publish latest status data on a channel for inter-bot communication |
| GetChannelData | Subscribe to channel data from specified live trading bot for inter-bot communication |